Jump to content

display price "from"


Radek100

Recommended Posts

Can anybody tell me why I can see prices only of products which has attribute? I try to implement word from before product with attribute... thanks

               {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}{l s='On sale!'}
               {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}{l s='Reduced price!'}{/if}
               {if isset($product.online_only) && $product.online_only}{l s='Online only!'}{/if}
               {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

                   {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if $product.id_product_attribute}{l s='from'}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}
{/if}
                   {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if}{/if}

               {/if}
               {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
                   {if ($product.allow_oosp || $product.quantity > 0) && $product.customizable != 2}
getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}
                   {else}
Link to comment
Share on other sites

I made this price-list.tpl like a part of install folder, so I installed like a new copy... And I can see prices only with products where is set some attribute, where isn't there is no price.

How can I clear smarty cache? Because when I did some changes in price-list.tpl nothing changed, I think that it is because of smarty cache, am I right?

Link to comment
Share on other sites

Thanks, I try it a moment before you sent me this advice, and it works...
It looks:

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if $product.id_product_attribute}{l s='from '}{/if}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
{/if} 



But under link home, where can be products too, there is not word "from", do you know which file tpl is responsible for this price?

Link to comment
Share on other sites

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