thehandlestudio Posted June 30, 2011 Share Posted June 30, 2011 Hi,I am try to add "From Only" before the price on products that only have attributes I have this working on PS 1.3 but I am trying to get the same with 1.4.3.0 but no joy.I have tried adding {l s='from only'} in the product-list.tpl but this is showing on all products not just on the ones that have attributes.Anyone know where to put this for it to show?Thanks,Mark. Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 1, 2011 Author Share Posted July 1, 2011 Anyone know this...?Regards,Mark Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 3, 2011 Author Share Posted July 3, 2011 Surely someone must know how to do this? Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 8, 2011 Author Share Posted July 8, 2011 Bump Bump... Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 17, 2011 Author Share Posted July 17, 2011 Please if anyone knows how to do this could you let me know, there must be other people who like this also.Regards,Mark. Link to comment Share on other sites More sharing options...
mohsart Posted July 17, 2011 Share Posted July 17, 2011 Perhapsthemes/product.tpl: {if $productHasAttributes} {l s=‘from only’} Edit:For product-list.tpl {if ($product.id_product_attribute > 0)} /Mats Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 17, 2011 Author Share Posted July 17, 2011 Thank you for a answer, I still manage to get it to show on all products or not at all and not just on products with attributes, I must say this is driving around the twist....Regards,Mark. Link to comment Share on other sites More sharing options...
thehandlestudio Posted July 17, 2011 Author Share Posted July 17, 2011 Finally solved it at last thank god, if anyone is interestedfind in themes/product-list.tpl {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} Replace with {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if $product.id_product_attribute}{l s='from only'}{/if}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} Or replace 'from only' with anything you want.I hope this helps someone elseRegards,Mark. Link to comment Share on other sites More sharing options...
Andy1 Posted August 20, 2011 Share Posted August 20, 2011 Does anyone know how to do this on 1.4.4.0? I have tried what Mark suggested, but it's not working. Many Thanks Link to comment Share on other sites More sharing options...
Fillipoz Posted August 20, 2011 Share Posted August 20, 2011 Finally solved it at last thank god, if anyone is interested<br/><br/>find in themes/product-list.tpl <br/> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} <br/><br/><br/>Replace with<br/><br/> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if $product.id_product_attribute}{l s='from only'}{/if}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} <br/><br/>Or replace 'from only' with anything you want.<br/><br/>I hope this helps someone else<br/><br/>Regards,<br/><br/>Mark. Thanks for the share mate :-) Pc game store www.onlinecdkeyseller.com Link to comment Share on other sites More sharing options...
Andy1 Posted August 20, 2011 Share Posted August 20, 2011 Finally solved it at last thank god, if anyone is interested<br/><br/>find in themes/product-list.tpl <br/> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} <br/><br/><br/>Replace with<br/><br/> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if $product.id_product_attribute}{l s='from only'}{/if}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} <br/><br/>Or replace 'from only' with anything you want.<br/><br/>I hope this helps someone else<br/><br/>Regards,<br/><br/>Mark. Thanks for the share mate :-) Pc game store www.onlinecdkeyseller.com Did you get this to work? If so, did you do anything differently to how Mark suggested, and which version are you using? Link to comment Share on other sites More sharing options...
thehandlestudio Posted August 22, 2011 Author Share Posted August 22, 2011 Hi Andy, This works on 1.4.4.0 as I have it working on my live site. Regards, Mark. Link to comment Share on other sites More sharing options...
Andy1 Posted August 22, 2011 Share Posted August 22, 2011 Hi Mark, Just to confirm: I have a product with 2 or more combinations - same product but available in 2 sizes, one costs £5 the other £7 for example. The code above should display 'Price From' before the price with the products that have the combinations? Maybe I am doing something wrong. Actually, there is no 'maybe', I obviously am doing it wrong! Many Thanks Andy Link to comment Share on other sites More sharing options...
thehandlestudio Posted August 22, 2011 Author Share Posted August 22, 2011 Hi Andy, Yeah the code will only show 'From Only' if there any attributes, if you take a look at my site you will see how this works, now for this to show as well on the featured products on the home page there is a different piece of code to use. Regards, Mark. Link to comment Share on other sites More sharing options...
Andy1 Posted August 22, 2011 Share Posted August 22, 2011 Hi Mark, I have set attributes for one product and there is the drop down box on the product page for the customer to select the size. They the price is adjusted accordingly. I will have another attempt at the code today. I'm sure it's something small but significant that i'm doing wrong. Many Thanks Andy Link to comment Share on other sites More sharing options...
Andy1 Posted August 22, 2011 Share Posted August 22, 2011 Still not getting any closer. I have this id the product-list.tpl: {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}</span><br />{/if} Instead of {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} I tried turning off Cache and turning on Force Complie. All this did was leave my shop completely empty. So I have turned it back on again. I am trying to work out what I've done wrong. Link to comment Share on other sites More sharing options...
thehandlestudio Posted August 22, 2011 Author Share Posted August 22, 2011 Hi Andy, Are you using a custom theme or the default one? Regards, Mark. Link to comment Share on other sites More sharing options...
Andy1 Posted August 22, 2011 Share Posted August 22, 2011 Hi Mark, It's the default theme but with a few colours changed. I tried switching to the standard default 'prestashop' theme but it didn't make any difference. Many Thanks Andy 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