Jump to content

(RÉSOLU) Prix avec réduction en HT dans la liste produit


Recommended Posts

Bonjour,
 
Je me permet de solliciter votre aide car je n'arrive pas à mettre le prix en réduction en HT sur la liste produit. Il est actuellement en TTC.
J'ai fais ma recherche avant sur le forum mais je n'ai pas trouvé de réponse.
 
Voici mon code actuel :

<p class="price_container">
                                      
{if isset($product.show_price) && $product.show_price}

{if !$priceDisplay && Configuration::get('LYO_isProductList')==1}<div class="price">{convertPrice price=$product.price_tax_exc} {l s='HT'}</div>{/if}
                        
{if isset($product.on_sale) && $product.on_sale OR isset($product.reduction) && $product.reduction}                            
<span class="old_price">{convertPrice price=$product.price_without_reduction}</span>{/if}
                            
<span class="pricettc">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price} {*lyoHTBOF*}{if !$priceDisplay && Configuration::get('LYO_isProductList')==1}{literal}<style>#product_list .right_block {height: 50px;}</style>{/literal}<div>{convertPrice price=$product.price_tax_exc} {l s=' tax excl.'}</div> TTC{/if}{*lyoHTEOF*}{/if} TTC</span>
{/if}
</p>

Et ci-dessous une capture de comment ça s'affiche.
mini_779036CAPTURE.jpg

Je travail en local sous Prestashop 1.6.
 
Y'a t-il une personne pour me renseigner svp ?

Edited by steph2i (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Ok c'est bon, malheureusement je n'ai pas beaucoup d'aide en ce moment sur le forum. Peut être les vacances ? :)

 

Bon c'est pas grave j'ai trouvé la solution pour ceux que ça intéresse. Attention cependant, dans mon cas, je suis en B2B et mes groupes clients sont configurés en HT :

 		{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
					<p class="price_container">
                    
                    
						{if isset($product.show_price) && $product.show_price}
                        
                        <span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} HT</span>
                        
                        
                        
                     {if !$priceDisplay && Configuration::get('LYO_isProductList')==1}<div class="price">{convertPrice price=$product.price_tax_exc} {l s='HT'}</div>{/if}
                        
                           
							{if isset($product.on_sale) && $product.on_sale OR isset($product.reduction) && $product.reduction}                            
                            <span class="old_price">{convertPrice price=$product.price_without_reduction} HT</span>{/if}
                            
                            
                            
                                                    	                       
                            
                            <span class="pricettc">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price} {*lyoHTBOF*}{if !$priceDisplay && Configuration::get('LYO_isProductList')==1}{literal}<style>#product_list .right_block {height: 50px;}</style>{/literal}<div>{convertPrice price=$product.price_tax_exc} {l s=' tax excl.'}</div> TTC{/if}{*lyoHTEOF*}{/if} TTC</span>
						{/if}
					</p>
				{/if}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...