Skip to main content

Specifications

More
12 years 4 months ago #156929 by applidata
Specifications was created by applidata
- url of the page with the problem -- : puces-couturieres.com/site
-- HikaShop version -- : Essential 2.3.1
-- Joomla version -- : 3.3.0
-- PHP version -- :5.4.26
-- Browser(s) name and version -- : Tous

Bonjour
Dans le détail des produits, apparait un onglet "spécifications"
A quoi correspond il ? et comment le supprimer ?

Merci d'avance et bonne journée.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #156934 by Xavier
Replied by Xavier on topic Specifications
Bonjour,

Spécifications permet d'afficher les informations si vous avez des champs personnalisés de type "produit" attachée au produit.
Si vous n'avez pas de champs personnalisés comme cela, et pas défini de poids, taille à votre produit alors cela ne devrait pas s'afficher.

Pour forcer le retrait de cela, vous pouvez éditer la vue "Product / show_tabular" et forcer la variable php "$hide_specs" à 1 en l'ajoutant comme cela:
Code:
$hide_specs = 1; if($this->element->product_weight != 0 || $this->element->product_width != 0 || $this->element->product_height != 0 || $this->element->product_length != 0 || @$this->element->main->product_weight != 0 || @$this->element->main->product_width != 0 || @$this->element->main->product_height != 0 || @$this->element->main->product_length != 0) $hide_specs = 0; foreach ($this->fields as $fieldName => $oneExtraField) { $value = ''; if(empty($this->element->$fieldName) && !empty($this->element->main->$fieldName))$this->element->$fieldName = $this->element->main->$fieldName; if(isset($this->element->$fieldName)) $value = trim($this->element->$fieldName); if(!empty($value)) $hide_specs = 0; } // ICI : $hide_specs = 1;

Please Log in or Create an account to join the conversation.

Time to create page: 0.186 seconds
Powered by Kunena Forum