Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 277 posts 389 karma points
    Oct 02, 2015 @ 08:26
    Graham Carr
    0

    Custom member discount level

    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?

  • Anders Burla 2560 posts 8256 karma points
    Oct 05, 2015 @ 07:22
    Anders Burla
    0

    Hi Graham

    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.

    Kind regards

    Anders

  • Graham Carr 277 posts 389 karma points
    Oct 05, 2015 @ 13:58
    Graham Carr
    0

    Hi Anders,

    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.

    Regards,

    Graham

Please Sign in or register to post replies

Write your reply to:

Draft