Jump to content

[Solved] Price "From Only" on Products with attributes


Recommended Posts

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

  • 2 weeks later...

Finally solved it at last thank god, if anyone is interested

find 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 else

Regards,

Mark.

Link to comment
Share on other sites

  • 1 month later...

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

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

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

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

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

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