Jump to content

Show product price and discount price


Recommended Posts

Hello everyone I'm using version Prestashop 1.4.8.2 and the problem in the next, I need to show price to customer as shown in the attached image. I tried to edit product-list.tpl, but unsuccessfully. 

I beg you to help. Thanks in advance.

post-387724-0-46823700-1407662569_thumb.jpg

Link to comment
Share on other sites

I use Clean & Simple template downloaded from here http://www.prestashop.com/forums/topic/164807-free-theme-clean-simple-v20/

Tried to add this code, find from some topic: 

 

<p class="msrp_price">MSRP:<br /> {$msrp_price=($product.price_without_reduction*1.33333)} {$msrp_price|string_format:"$%.2f"}</p>

 

also edited it, but the result is not the one on which I relied. Also these codes, from here http://www.prestashop.com/forums/topic/98671-hot-display-reductionpercent-in-product-listtpl-and-reduction-to-in-producttpl-prestashop-14/  but nothing:

 

{if $product.specific_prices.reduction_type == 'percentage'} {$product.specific_prices.reduction*100} %{/if}

{if $product.specific_prices.reduction_type == 'amount'} {$product.specific_prices.reduction|string_format:"%.2f"}{/if}

 

I decided what if a double this code:

 

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<p class="price_container"><span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if}

 

then will be like on attached image, but I dont know how to edit code, to get as need.

post-387724-0-56914100-1407699926_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...