Developer forum

Forum » Ecommerce - Standard features » Voucher lists as membership card discounts

Voucher lists as membership card discounts

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys.,

I have a project where I need to implement some sort of card-based membership.

Meaning that we get a list of membership card numbers and their level of discount. Any user inserting the code of a valid membership card, would get a discount based on the level of the membership.

Normally, I would use this as a combination of Discount and Voucher List. The only issue is that I need to allow a voucher code to be reused as many times as possible.

Is this possible in any way using some configurations or do I need to create a custom discount Extender?

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply

Hi Adrian

Vouchers from voucher list can only be used once.

Logically you do not need to use vouchers that are different from every user to give the discount. You just need that conceptually - the perception of the users should be that entering their membership number.

  • Create a discount for each membership level. I.e. 5%, 7%, 9% etc.
  • Each discount will have a static voucher code that will tricker the discount. I.e. "asdjfasdjahsd" trickers 5%.
  • On the order, create a custom field for the membership card number to be entered.
  • In the checkout template, create a field for the membership card number that can be entered (or just chosen because the user is logged in). It could even be automatically entered.
  • When the order has a membership card number, you can use either template logic og a notification to look at the membership number, find the membership level, and apply the voucher code for that membership level.
  • alternatively:
  • Create a discount extender that will return ValidForOrder depending on that membership card number.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for this fresh approach.

It looks like I actually have a few handy options to solve it.

Thank you,


Adrian

 

You must be logged in to post in the forum