Skip to main content

cacher l'unite

More
15 years 1 week ago #26039 by polpaulin
cacher l'unite was created by polpaulin
Bonjour

après chaque produit il a l’unité : 10 euro l'unité

j'ai copier dans mon template listing_price.php et ajouté une variable $show_unit = 0;

puis
Code:
if($show_unit){ if(isset($price->price_min_quantity) && empty($this->cart_product_price)){ if($price->price_min_quantity>1){ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity); }else{ echo JText::_('PER_UNIT'); } } }

est ce que cette option existe deja quelque pzart dan sl'admin ?

merci

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

More
15 years 1 week ago #26040 by nicolas
Replied by nicolas on topic Re: cacher l'unite
Il suffit d"aller dans l'onglet Langues de la configuration et d'override la traduction PER_UNIT=" l'unité"
par PER_UNIT=" " dans la zone d'override de votre fichier de langue. Comme pour n'importe quel texte dans HikaShop.

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

More
15 years 1 week ago #26041 by polpaulin
Replied by polpaulin on topic Re: cacher l'unite
ok en ce cas il vaut mieux une variable , est ce pareil pour hikashop_product_stock_count ?

merci

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

More
15 years 1 week ago #26050 by nicolas
Replied by nicolas on topic Re: cacher l'unite
Oui, c'est pareil. C'est dans le fichier quantity de la vue product.

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

More
15 years 1 week ago #26065 by polpaulin
Replied by polpaulin on topic Re: cacher l'unite
merci

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

Time to create page: 0.171 seconds
Powered by Kunena Forum