Jump to content

Cena s i bez DPH 1.5.2


Tomas Benda

Recommended Posts

Ja to vyresil takto:

 

products.tpl

<p class="our_price_display">
  {if $priceDisplay >= 0 && $priceDisplay <= 2}
 <span id="our_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span>
 <span id="our_price_display_tax">({convertPrice price=$productPrice} {l s='tax incl.'})</span>
  {/if}
</p>

 

 

product-list.tpl

  <div class="content_price">
 {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if}
 {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price_tax" style="display: inline;">({if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {l s='tax incl.'})</span><br />{/if}
 {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if}
  </div>

 

Plus samozrejme nastylovani.

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...

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