gazzza182 Posted November 20, 2016 Share Posted November 20, 2016 Hi Using 1.6.1.14. I have a special customer group set up, who are entitled to 10% discount on purchases. Is it possible for them to view the original product price similar to how it appears when a discount voucher is added? eg. £36 £40 10% Currently, when the customer is logged in, it just shows the reduced price, rather than the original price / percentage saving, so it's not immediately obvious to the customer that their discount is being applied. Any ideas or workarounds greatly appreciated! Link to comment Share on other sites More sharing options...
Naldinho Posted November 21, 2016 Share Posted November 21, 2016 You should be able to edit the product page -- add a conditional to check the group = the group that gets the discount -- if it does then display the original price with something indicating it is discounted. Link to comment Share on other sites More sharing options...
Daresh Posted November 22, 2016 Share Posted November 22, 2016 It's not that easy. Quite doable if you have a shop without combinations, but practically impossible if you have products with combinations, where changing a combination should also affect that prices and discounts. Link to comment Share on other sites More sharing options...
LeahCorbett Posted June 9, 2017 Share Posted June 9, 2017 I have the same question. I need my print brokers to see the retail price, so they know what to charge THEIR customers, but also see their discount on each product. I can apply discount per category, for example, print brokers would get 30% off full color business cards. And yes, of course we have combinations, but the discount remains the same each of the options, no matter how many quantity they choose. For example, this whole category gets 30% off, but the print broker MUST see both retail and his wholesale price. https://azhg.com/category/full-color-389 ALSO - How do i create the discounts? Cart rules? Coupons? We created a Reseller group, but the discounts will vary by category. Some things are only 10% off, and some products are half off. Thank you! Link to comment Share on other sites More sharing options...
Naldinho Posted June 9, 2017 Share Posted June 9, 2017 Are you 100% trade? If so it would be a lot easier. There is no way to do what you want from PrestaShop without either buying a module or editing code. I'm still of the opinion that the suggestion I gave above will work. I don't have time to test it today but maybe if I remember I'll try it next week.I'd also suggest doing something about allowing PDF upload. I can't imagine that not causing major issues. You can either buy a file upload module or try to hack the default file upload to allow PDF. There are plenty of modules and a handful of topics on how to do the latter. Link to comment Share on other sites More sharing options...
LeahCorbett Posted June 9, 2017 Share Posted June 9, 2017 Thank you for your fast reply! No, we're 80% direct to the customer, and 20% to the trade. We can definitely edit the code, but you said impossible if products have combinations. (Yes, we can add pdf to allowed uploads. good idea.) Link to comment Share on other sites More sharing options...
Naldinho Posted June 9, 2017 Share Posted June 9, 2017 (edited) I didn't say that -- Daresh said that. I haven't looked at it closely but the I edited the right part of the product page to change how quality works and this should be no different.The price already changes based on combinations so basically to do what you want you'd just need to copy code and add multiplying the variable that stores price by 1.3 Edited June 9, 2017 by Naldinho (see edit history) Link to comment Share on other sites More sharing options...
stdeykun Posted September 7, 2018 Share Posted September 7, 2018 (edited) In PS 1.7 i did: {if $product.customer_group_discount > 0} <strong>You will pay {$product.customer_group_discount*100}%</strong> less! <strong class="regular">{( $product.price_amount/(1-$product.customer_group_discount) )|round:2}$<strong> {/if} Edited September 10, 2018 by stdeykun (see edit history) 2 Link to comment Share on other sites More sharing options...
cetinkayameric Posted September 23, 2018 Share Posted September 23, 2018 Same problem, stdeykun and all other could you please tell how do we use this code? In which page, where should i add this code? thanks Link to comment Share on other sites More sharing options...
Vins0n254 Posted January 30, 2019 Share Posted January 30, 2019 up Link to comment Share on other sites More sharing options...
Neo_odessa Posted March 22, 2019 Share Posted March 22, 2019 On 9/7/2018 at 4:08 PM, stdeykun said: In PS 1.7 i did: {if $product.customer_group_discount > 0} <strong>You will pay {$product.customer_group_discount*100}%</strong> less! <strong class="regular">{( $product.price_amount/(1-$product.customer_group_discount) )|round:2}$<strong> {/if} Thanks for solution. Great works on 1.7.3 version Link to comment Share on other sites More sharing options...
qqwqqa Posted March 28, 2019 Share Posted March 28, 2019 On 3/23/2019 at 4:20 AM, Neo_odessa said: Thanks for solution. Great works on 1.7.3 version What is the file you modified? Can you tell me where the directory is located? Link to comment Share on other sites More sharing options...
NerDifades Posted February 13, 2020 Share Posted February 13, 2020 Hi! Is this working for Prestashop 1.7.6.2??? Thank you in advance! Link to comment Share on other sites More sharing options...
BartoshHedea Posted August 4, 2020 Share Posted August 4, 2020 On 9/7/2018 at 3:08 PM, stdeykun said: In PS 1.7 i did: {if $product.customer_group_discount > 0} <strong>You will pay {$product.customer_group_discount*100}%</strong> less! <strong class="regular">{( $product.price_amount/(1-$product.customer_group_discount) )|round:2}$<strong> {/if} Hi! In product details it works great but in category with products an error appears: Notice: Undefined index: customer_group_discount Can it be solved? Link to comment Share on other sites More sharing options...
Faisal Sharif Posted August 27, 2020 Share Posted August 27, 2020 Hi All , Don't need to edit code , i have used prestashop 1.7.6.5 - i have 1200 customers with different percentage for example from 3% to 17% - i have create customer groups with respect to discount for example Customer_Per_3, Customer_Per_4 and so on - i have assign customer group with respective customers - Goto Admin Panel - > Catalog-> Discounts -> Catalog Price Rules - Define Price Rules for each customer group, in my case (from 3% to 17%) total 15 price rules - Now see the result it will show discount in products listing if you happy with this solution , please pray for me for the success of this world and the world that comes after death that has never ending Link to comment Share on other sites More sharing options...
BartoshHedea Posted August 28, 2020 Share Posted August 28, 2020 Unfortunately, this solution will not work in my case. Currently I have set prices for a given customer group and additionally I want to assign a discount to such a group. When using the Catalog Price Rules, these options overlap rather than cumulate. Link to comment Share on other sites More sharing options...
madpugger Posted September 10, 2021 Share Posted September 10, 2021 On 8/27/2020 at 7:49 AM, Faisal Sharif said: Hi All , Don't need to edit code , i have used prestashop 1.7.6.5 - i have 1200 customers with different percentage for example from 3% to 17% - i have create customer groups with respect to discount for example Customer_Per_3, Customer_Per_4 and so on - i have assign customer group with respective customers - Goto Admin Panel - > Catalog-> Discounts -> Catalog Price Rules - Define Price Rules for each customer group, in my case (from 3% to 17%) total 15 price rules - Now see the result it will show discount in products listing if you happy with this solution , please pray for me for the success of this world and the world that comes after death that has never ending This does not work for me. I have 10,000+ products, each with a discount % set on CSV upload to all groups. on our website, visitors and customers will see 10% off RRP for example. I have a trade group who should get 25% off RRP, but instead they are shown an original price of RRP less 25%, and then a discount of 10% on top of that. I want the catalogue rule to over-ride the original product discount? Also, the discount is shown to the trade customer as 10% even though they effectively have nearly 35% off in this case. I want this customer to have 25% off on a "brand". This would be 25% off RRP with no further discount. And I want them to see 25% off RRP flag on product page and category views. How do we make this work without having to set a group discount per item which I don't think can be done by CSV? Link to comment Share on other sites More sharing options...
jbunning Posted September 13, 2021 Share Posted September 13, 2021 I use this for product miniature TPL: {Tools::displayPrice($product.price_without_reduction_without_tax / 100 * (100 + Group::getReductionByIdGroup($customer.id_default_group)))} And this for product page TPL: {Tools::displayPrice($product.price_without_reduction_without_tax * (1 + $product.customer_group_discount))} Link to comment Share on other sites More sharing options...
madpugger Posted September 18, 2021 Share Posted September 18, 2021 On 9/13/2021 at 4:09 PM, jbunning said: I use this for product miniature TPL: {Tools::displayPrice($product.price_without_reduction_without_tax / 100 * (100 + Group::getReductionByIdGroup($customer.id_default_group)))} And this for product page TPL: {Tools::displayPrice($product.price_without_reduction_without_tax * (1 + $product.customer_group_discount))} So this shows the group discount but how do you handle actually using the correct discount? Link to comment Share on other sites More sharing options...
rachel01 Posted March 16, 2023 Share Posted March 16, 2023 Hello How we can do for PS 1.7.6 ? This code is not working if the customer group has a specific price On 9/13/2021 at 6:09 PM, jbunning said: I use this for product miniature TPL: {Tools::displayPrice($product.price_without_reduction_without_tax / 100 * (100 + Group::getReductionByIdGroup($customer.id_default_group)))} And this for product page TPL: {Tools::displayPrice($product.price_without_reduction_without_tax * (1 + $product.customer_group_discount))} Link to comment Share on other sites More sharing options...
gopresta.pl Posted August 1, 2024 Share Posted August 1, 2024 Based on the posts by stdeykun and jbunning I did this in Prestashop 8.1 and it is ok: Product miniature TPL: {$groupDiscount = Group::getReductionByIdGroup($customer.id_default_group)/100} {if $groupDiscount > 0} <span class="regular-price">{Tools::displayPrice($product.price_amount / (1 - $groupDiscount))}</span> {/if} Product page TPL: {if $product.customer_group_discount > 0} <div class="product-discount"> <span class="regular-price">{Tools::displayPrice( $product.price_amount/(1-$product.customer_group_discount) )}</span> </div> {/if} 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