Jump to content

Visualizzare Prezzo barrato e percentuale sconti nella lista prodotti


gracekweb

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}-->
                {/if}
                </p>

                {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}
                {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>
                {/if}
            </div>

<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}
                {/if}
                </span>
            </p>

 

 

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

 

grazie anticipatamente

Edited by gracekweb (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...