Developer forum

Forum » Ecommerce - Standard features » Site wide rule for applying discount

Site wide rule for applying discount

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I have the following case:

B2B/B2C website. B2C customers are both Guests and Registered.

For B2B I have a custom Price Provider and the list of customers/users is pretty large.

I need to create Sales Discount just for B2C or just for B2B.

Is there a general way of adding a new segmentation criteria for all Sales Discounts?

Do I need to create custom Sales Discounts for all Sales Discounts options?

I have posted a feature request because of this but I won't expect a fast solution.

Any ideeas are welcomed.

Thank you,
Adrian


Replies

 
Nuno Aguiar
Reply

Hi Adrian,

 

Couldn't you assign users to different groups and then just set the discount for users belonging to a certain group?

 

Best Regards,

Nuno

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nuno,

I have a lot of users (thousands) and the list is changing very often.

And I also have anonymous users. Those cannot be assigned to a group.

Any other ideas?

Thanks,

Adrian

 
Nuno Aguiar
Reply

Hi Adrian,

 

The way we do it is typically:

  • B2B
    • they have to be logged in
    • they al belong to a specific user group
    • discounts targeting these users are set using the user group
    • We have user groups with over 100.000 users - works fine
  • B2C
    • Do not target user groups if the discount is for anonymous users

 

We sometimes also have different shops per website, which makes it easier. What I am not sure about is if the Shop setting in Order discounts is related to the car's shopID or the product's Shop ID. If it's in the cart, you could have products belonging to the B2B and B2C shop (related groups).

 

Hope this helps,

Nuno Aguiar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nuno,

Thanks for the answer.

For B2B users is fine. You can target them by the User Group association.

How do you target B2C users that can be both anonymous or authenticated?

I can target B2C users that are authenticated but I don't understant how to target just Anonymous users without a custom Sales Discount.

Thanks,

Adrian

 
Nuno Aguiar
Reply

Hi Adrian,

 

Then I also suggest you use Cart Contexts. You can have 1 Cart Context for B2B and another one for B2C. In the Order Discounts you can assign a discount to a specific cart context. That will give you what you want with no need to for user groups or anything else.

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nuno,

Thought of that we are already using Cart Context for other purposes.

I think I'll just have to create a new custom sales discount :)

Adrian

 

You must be logged in to post in the forum