Developer forum

Forum » Dynamicweb 10 » Loyalty Points only Basket

Loyalty Points only Basket

Joseph Vause
Reply

Hello,

Another question from me, we want to be able to offer rewards (like an arcade, that you can buy special products from a rewards page), if they add one of these rewards products, it should be added to the basket, but you cant then add other non reward products to that basket (meaning it would only be reward point buying)

Is there a way to restrict a basket like this?

Using DynamicWeb 10.6.9


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Joseph,

 

Not exactly restrict, but you can add products to 2 different carts using order contexts.

 

You will need to customize your templates to do this:

  • Create 2 Order Contexts
    • One for "purchasable" products - your regular checkout
    • One for "reward" products
      • Depending on what the products are you may not need any shipping address, shipping method, payment method nor comments
  • Then when you "add to cart", you need to submit to which order context
  • This also means that you will have 2 Pages, each with it's own context
  • That allows for you to have 2 distinct layout paths for both "carts"

 

Here is a quick implementation guide (from DW9)

 

Let me know how that works out for you.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum