Jump to content

[SOLVED] Is it possible to add "From" next to the price on the catalogue?


Recommended Posts

You can easily do this by modifying the theme file in product.tpl or product-list.tpl file if "From" applies to all products.

 

Here is the example of product.tpl

 

 

<span class="our_price_display">
{if $priceDisplay >= 0 && $priceDisplay <= 2}
 {l s='From'}
 <span id="our_price_display">{convertPrice price=$productPrice}</span>
 {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
		 {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
 {/if}
{/if}
</span>

 

 

 

Bu "from" usually means only when the product has quantity(volume) discount, or have combination.

I have a module that only displays "From" if the product has quantity discount.

It will also list price for different price for different quantity on product page.

You can find details of this in this forum here

http://www.prestasho...count-indicator

Edited by shokinro (see edit history)
  • Like 1
Link to comment
Share on other sites

Many thanks for your help, really appreciate it specially knowing that you have a module on sale for the purpose, is very nice of you to give me the code. I try to check your demos ut they dont work....... :(

Back to the issue, i manage to change that on the product.tpl and it works only when you select the product and no on the category list :( any help with this please?? I cant find a similar code on the product-list.tpl :( and yes, all the products have combination and all of them need to sat "From" many many thanks!!!

Link to comment
Share on other sites

Just realise that I only need it to say "From" in the categories, when you have a list of products but when you click on the product i dont need it to say from because one of the options is selected already with the current price..... so i just need to cancel "from" from the product itself and add it to the product list....

 

http://www.northsolu...p?id_product=11

 

Any help with this please??

 

Also it will need to show on the "Featured products" page

Edited by kugi (see edit history)
Link to comment
Share on other sites

Hello Kugi,

 

Thank you for the message. I'm happy you were able to solve your issue to you satisfaction. If you do not mind, how were you able to implement them in your cart. I'm sure your input would help another merchant looking for the same answer. We hope to see you here more often. For now, I will mark this thread as Solved. Thank you for choosing PrestaShop!

Link to comment
Share on other sites

In yourtheme/modules/homefeature find the homefeatured.tpl and just locate <p class="price_container"><span class="price"><span style="height:21px;"></span> and add <p class="price_container">{l s='From'}<span class="price"><span style="height:21px;"></span> That is for the homefeatured module.

 

To displaye it on your products category, yourtheme/product-list.tpl, find the line {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode) (around 43) and just add {l s='From'} before :)

 

Hope it helps

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...