Jump to content

Bug sur prix unitaire !


Recommended Posts

Salut, je bosse sur une boutique d'une cliente et je suis confronté a un petit soucis.

 

Actuellement, pour que je puisse afficher les prix unitaires sur la home (product-list.tpl) je dois passer par une déclinaison.

 

Le problème, c'est que ses déclinaisons ne doivent être commandables !

 

 

Voici le code que j'ai actuellement sur product.list :

                    <div class="right-block">
                        {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
                        <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price">
                            {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
							{math equation="pprice / punit_price"  pprice=$product.price  punit_price=$product.unit_price_ratio assign=unit_price}<span class="unit_price" style="font-size:22px;color:#fff;font-weight:700;margin-top:15px;">{convertPrice price=$unit_price} / {$product.unity|escape:'html':'UTF-8'}</span>{/if}<br /><br />
                                <span itemprop="price" class="price product-price{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} product-price-new{/if}">
                                    {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</br>{if $product.unit_price_ratio > 0}
                                   
                                </span>
                                    </br>
								</span>

Vous pouvez aller sur le site de ma cliente pour voir ce qu'elle souhaite

Edited by One_Man (see edit history)
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...