Developer forum

Forum » Development » Simulated/Mock discount?

Simulated/Mock discount?

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I have a customer who is asking for this. "If you subscribe to our Club you would be saving $X,00 with this order".

 

To do this, I believe we'd had to get a copy of that cart and simulate as if the user belonged to a specific user group. But I don't know how we could do that. Any ideas?

 

Best Regards,

Nuno Aguiar


Replies

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Nuno,

What about adding to user groups:

  1. Club Member
  2. Discount granted

Evaluate if the user is member of "Club Member", and if not, show your "there's a discount awaiting if you sign up". Once they sign up they're assigned to user group "Club Member". Setup an ordinary order discount, requiring the user to be member of "Club Member", and NOT to be member of "Discount granted". Then the cart should update automatically and show discount, once the user is signed up.

Make your own OrderComplete notification that will add the user to "Discount granted" - or you can do it on your razor template of the receipt as well.

BR
Morten

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Morten,

 

Thank you for your example, but what I am looking for is to show how much they would save if they would belong to the "Club Member" group, before they complete the order.

 

The customer is looking for a more real example to say "If you were a Club Member you would be saving $34,67 with this order", and while adding products to the cart, that message would update, unless they subscribe to being Club Members and/or login with a Club Member account.

 

It may just turn out to be very complex and we'd end up doing just a static message like you suggested "there's a discount awaiting if you sign up", but we oew it to the customer to estimate for it and have them decide. I just don't know if/how we can do it.

 

Best Regards,

Nuno

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Make it 2 discounts. Club member discount = -20%, non club member discount + 25% = 0% in total. And you get the numbers on your order...

Total price: 100

Member discount: -20

You are not a member +20

Total: 100

Otherwise I have no other clue...

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

Thats a good idea. I think I can work with that. Thanks.

 

Nuno Aguiar

 

You must be logged in to post in the forum