Radek100 Posted March 18, 2011 Share Posted March 18, 2011 Hi, I need advice how to edit Prestashop 1.4.0.17 to see word "from" before price when product has more possibilities. For example different volume. Is it in product-list.tpl? Thanks Link to comment Share on other sites More sharing options...
Radek100 Posted March 19, 2011 Author Share Posted March 19, 2011 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 More sharing options...
Radek100 Posted March 19, 2011 Author Share Posted March 19, 2011 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 More sharing options...
Radek100 Posted March 19, 2011 Author Share Posted March 19, 2011 I can se prices in detail, but when I click category, then there is not product price without attribute. Link to comment Share on other sites More sharing options...
Burhan BVK Posted March 19, 2011 Share Posted March 19, 2011 Your {if $product.id_product_attribute} covers the whole price, you need to put the closing if ({/if}) right after the {l s='from'}. Link to comment Share on other sites More sharing options...
Radek100 Posted March 19, 2011 Author Share Posted March 19, 2011 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 More sharing options...
Radek100 Posted March 20, 2011 Author Share Posted March 20, 2011 you were right, it is homefeatured.tpl, thanks a lot Link to comment Share on other sites More sharing options...
babyewok Posted April 13, 2011 Share Posted April 13, 2011 I still don't seem to be able to get this to work for me for only products that have attributes with an impact on price. I am running version 1.3.1.1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now