[ASTUCE] Champs "quantité" en trop dans le panier

  • Posts: 15
  • Thank you received: 0
13 years 1 month ago #8807

Bonjour,
Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com_hikashop/helpers/cart.php

/*$html = '<input id="hikashop_product_quantity_field_'.$i.'" type="text" value="'.JRequest::getInt('quantity',$min_quantity).'" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange(\'hikashop_product_quantity_field_'.$i.'\','.$max_quantity.','.$min_quantity.');" />'.$html;*/

Celui-ci est situé devant le bouton "Terminer ma commande".
Enjoy :cheer:

Last edit: 13 years 1 month ago by spameur.

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

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
13 years 1 month ago #8809

Il faut aller dans le menu Affichage->Vues et éditer le fichier cart de la vue product et changer la ligne:
$this->params->set('show_quantity_field', -1);

en:
$this->params->set('show_quantity_field', 0);

Ce sera corriger avec la prochaine version.

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

  • Posts: 15
  • Thank you received: 0
13 years 1 month ago #8844

Peux-tu préciser s'il faut réactiver la ligne 155 ?

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

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
13 years 1 month ago #8845

Oui. Elle sert à afficher le champ de quantité dans la page des produits.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum