Jump to content
  • 0

Po aktualizacji PS do 1.6.1.16 pojawiło się przy produkcie "per szt."


Inkton

Question

2 answers to this question

Recommended Posts

  • 0

product.tpl w katalogu szablonu

Ten warunek wyświetla cenę za jednostkę miary:

                           {if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
                                {math equation="pprice / punit_price" pprice=$productPrice  punit_price=$product->unit_price_ratio assign=unit_price}
                                <p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'html':'UTF-8'}</p>
                                {hook h="displayProductPriceBlock" product=$product type="unit_price"}
                            {/if}
Link to comment
Share on other sites

  • 0

 

product.tpl w katalogu szablonu

Ten warunek wyświetla cenę za jednostkę miary:

                           {if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
                                {math equation="pprice / punit_price" pprice=$productPrice  punit_price=$product->unit_price_ratio assign=unit_price}
                                <p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'html':'UTF-8'}</p>
                                {hook h="displayProductPriceBlock" product=$product type="unit_price"}
                            {/if}

Dzięki, działa

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...