Developer forum

Forum » Templates » sample code of discount idea

sample code of discount idea


Reply

hey, i need to make a discount that is controled by a customfield.

 

what should happen is;

 

a customer sees the shop and all prices are normal.

then the customer grabs something in the basket and goes to order it.

at the page where the customer writes name and so there should be a customfield called orderCode.

when the customer write 12345 in it this will give him a discount.

 

- thanks.

 


Replies

 
Reply

Make an order field discount. This type supports custom fields too.

 
Reply
Sorensen wrote:

Make an order field discount. This type supports custom fields too.

thanks - it works.
 

 
Reply

No problem. But this only supports that all customers use the same code, so if you want different codes, you need to set up multiple discounts. You could create a voucher system using a SalesDiscountProvider.

 

You must be logged in to post in the forum