Specifications

  • Posts: 12
  • Thank you received: 0
9 years 11 months ago #156929

- 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.

  • Posts: 13201
  • Thank you received: 2322
9 years 11 months ago #156934

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:

	$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.070 seconds
Powered by Kunena Forum