PrestaShop Forums: [Résolu] "Quantité" de produits numériques - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Résolu] "Quantité" de produits numériques


[Résolu] "Quantité" de produits numériques

#1 starter

    PrestaShop Newbie

  • 23 Jul 2010
  • Members
  • Pip
  • 12 posts

Posted 29 July 2010 - 12:22 PM

Bonjour à toutes et à tous,

Quand il s'agit de produits numériques (case à cocher dans le produit à vendre), la notion de "quantité" ne me semble pas applicable. Une infinité d'acheteurs peuvent télécharger le même produit...

Peut-on désactiver quelque part quelque chose qui évite l'affichage de la quantité dans le cas des produits numériques ?

D'avance merci pour votre expérience/ connaissance de cette question

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 03:35 PM

Bonjour
Tu peux faire si cela te gène vraiment. Tu vas dans ton dossier thème suivi de ton template ensuite tu édite ton fichier product.tpl et à la ligne 269 tu dois avoir ceci
<!-- number of item in stock -->

quantity == 0} style="display:none;"{/if}>
{$product->quantity|intval}
quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}
quantity == 1} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}



tu fais cela

<!-- number of item in stock 

quantity == 0} style="display:none;"{/if}>
{$product->quantity|intval}
quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}
quantity == 1} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}

-->


Normalement il disparait de ta fiche article et si un jour tu en as besoin tu as juste à supprimer --> que tu as mis après la balise

et le remettre là ou il était avant
<!-- number of item in stock -->


#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 03:45 PM

Un grand merci marider !

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 03:52 PM

Pas de quoi bonne continuation à toi.

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 04:09 PM

Enfaite je viens de m'apercevoir qu'il y à la fonction pour désactivé la gestion de stock.
Tu vas dans l'onglet Préférence ensuite Produit et il y à Activer ou désactiver la gestion des stocks.
Remet ton product.tpl comme il était avant et fait plutôt par la fonction dans le BO.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users