Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have the requirement to add a discount level on a per member basis. So for example a UK customer would by default get 30% discount on all products across the store, however this percentage discount is configurable on a per member basis.
I have added a property called discount to the member and have successfully managed to show the discounted price by creating a custom price calculator. If I add the product to the basket when logged in the order line shows the discounted price as well.
However, if I then logout of the website and log back in and then view the basket, the order line is then appearing without the custom discount price that was originally shown.
I tried to create a custom order line calculator however the CalculatePrice method appears to call CalculatePrice method in the custom Price Calculator so the discount was done twice.
Where am I going wrong with this, what is the best way to apply a custom discount to a price and keep that discounted amount showing in the basket if you logout and then back in again?
What version of Tea Commerce are you running? If running v3 you can make a custom rule and award to calculate the price for the cart. Then you still need to have a product calculator to do the calculation for the shop UI as the rules and awards only apply to the order, order lines, shipping etc.
I am running V3 however I cannot see how I could adapt the marketing functionality to provide what I need.
As mentioned a customers discount level exists on a per member basis and can be configurable as such via the member properties, so one customer might have a 20% discount, another might have 30%, another might have 0%, etc. etc.
I have got this working as I highlighted above however the issue I am having is that it is not retaining the discounted price when I add the product to the basket, it shows fine when logged in however if I log out and then back in, the original price is then shown.
I will send you a PM with a staging link as well as the custom calculators I have created so you can see the issue that is occurring.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted