Jump to content
Sign in to follow this  

Visualizzare Prezzo barrato e percentuale sconti nella lista prodotti

Recommended Posts

Salve a tutti ...


dovrei modificare leggermente l'aspetto della lista dei prodott, facendo visualizzare nei prodotti in promozione ... la perncentuale e prezzo barrato... nello stesso modo in cui viene visualizzata nel dettaglio del prodotto nella pagina singola..


ho provato a cercare nei file ma la stringa che io mi porto nel file tpl product.tpl nel file product-list.tpl non viene visualizzata


<div class="price">
                <p class="our_price_display">
                {if $priceDisplay >= 0 && $priceDisplay <= 2}
                    <span id="our_price_display">{convertPrice price=$productPrice}</span>
                    <!--{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
                        {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}

                {if $product->on_sale}
                    <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/>
                    <span class="on_sale">{l s='On sale!'}</span>
                {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice}
                    <span class="discount">{l s='Reduced price!'}</span>
                {if $priceDisplay == 2}
                    <br />
                    <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span>

<p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}><span id="reduction_percent_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}</span></p>
            <p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|intval ==0} style="display:none"{/if}>
                <span id="reduction_amount_display">
                {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0}
                    -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval}



 sbaglio qualcosa e non capisco cosa ... qualcuno può aiutarmi?


grazie anticipatamente

Edited by gracekweb (see edit history)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More