elpanda13 Posted October 5, 2013 Share Posted October 5, 2013 Hi,I'd like to know how can i modifiy the default prestashop product.tpl and product-list.tpl to show either the original price and the discounted price with its percentage if that's the case. i'd like the product.tpl format to be something like: _____________________________________________________________ Original price: 10€ Discounted price 5€ - 50% (or without the percentage if there's none) Discount until: DD/MM/YYYY (if applies)_____________________________________________________________ I have already tried a lot of options but i don't know if it's me who's doing something wrong and it only shows the original price or if the code is wrong and that's why i'm making this post.if i find a solution i'll post it here and try to make a dummy-proof guide to solve this once and for all (in this forum and the spanish and italian one)Could you help me out? (i'm running the latest version: 1.5.5.0)Thanks in advance for your help! Link to comment Share on other sites More sharing options...
nadie Posted October 5, 2013 Share Posted October 5, 2013 Check topic: http://www.prestashop.com/forums/topic/242926-solved-product-list-showing-old-price-reduction-new-price/page-2?do=findComment&comment=1359268 Sorry for my English. Link to comment Share on other sites More sharing options...
nadie Posted October 5, 2013 Share Posted October 5, 2013 By the way, on the product details (product.tpl) in the default template displays the discount. The link: http://www.prestashop.com/forums/topic/242926-solved-product-list-showing-old-price-reduction-new-price/page-2?do=findComment&comment=1359268 is only listing of products (products-list.tpl). You do not use the default template? What version of Prestashop used? Sorry for my English: 1 Link to comment Share on other sites More sharing options...
xnofub Posted May 14, 2014 Share Posted May 14, 2014 (edited) By the way, on the product details (product.tpl) in the default template displays the discount. The link: http://www.prestashop.com/forums/topic/242926-solved-product-list-showing-old-price-reduction-new-price/page-2?do=findComment&comment=1359268 is only listing of products (products-list.tpl). You do not use the default template? What version of Prestashop used? Sorry for my English: How can i do on product-list.tpl ?? i solved on product tpl whith this {$precioOriginal=($product->base_price+($tax_rate*$product->base_price)/100)}; but in product-list.tpl cant use $product->base_price. zorry my English i'm use prestashop 1.5.6.3 Edited May 14, 2014 by xnofub (see edit history) 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