Developer forum

Forum » Development » Discount - Choose product to offer

Discount - Choose product to offer

Nuno Aguiar
Reply

Hi,

 

We have a client that wants the user to select which field/variant of product they want to receive as "discount".

 

How can I achieve this?

Can we do this globally (all discounts) or do we have to manually change all discounts?

Could this qualify for a feature request?

 

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

I think I need a little more description in order to come with some input.

But if you create a discount that will give a specific product as the discount, you can in the cart make it possible to either change an orderline value using a select box that states the variant (i.e. different color).

You can also make a 100% discount that contains the different products that the user can choose from, and make some template logic in the cart where the user can choose from these products, and doing so will remove the previous selection and adding the new using cartcmd commands.

Not sure it qualifies as a feature request that would be prioritized.

 
Nuno Aguiar
Reply

Hi Nicolai,

 

The issue

We need to create a lot of BOGOF campaign. A user buys a product and chooses which product he want's as offer, from a list of available products

Currently we create a dummy product, and have 1 or 2 orderlines fields so the user chooses the variant options. This is not a solution to the client, since the offered product number and other descriptions are not accurate, and the stock is not correct either.

 

Your 1st solution -  Discount with 1 product offer

From what I understand, you suggested 1 discount and update the orderline database information with the corresponding value (in Razor or C#).

  • Doesn't the discounts get updated at every step, invalidating this process?
  • Wouldn't we have to do this on evey cart load process?

 

Your 2nd solution - 1 Discount for each variant combination

This may be a solution, but will have me configure 1 discount for every variant combination. The problem with this solution is volume. At the moment there are 8 pages of discounts configured on this solution. This is addind more and more complexity to it :(

  • Doesn't the discounts get updated at every step, invalidating this process?
  • Wouldn't we have to do this on evey cart load process?

 

Feature Request

I'm not sure it qualifies either, but if in the Offer box, where we choose the products we could set quantities per product and select All/Single product (radio), would make this a new feature.

Also not sure it fits in the new Discount Matrix logic.

 

Best Regards,

Nuno

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

Sounds a bit complicated. 8 pages of discounts! Complicated business :-). I hope that Discount matrix can help simplifying that.

My best idea is to make alterations to one of the existing discounts and have it reflect what product the user have chosen and make a custom order or orderline field for keeping track of that selection and have the discount itself return the right product based on that selection...

I will make sure we handle the feature request.

Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Thanks.

 

In fact there are 8 pages because:

  • We keep inactive discount to reuse them a few months later
  • Some discounts are country/language specific, but we have to create them in the main language (not so cool)

 

As for the Discount Matrix, I tried taking a look at it on my test solution, but could not find it. Where is it?

 

Nuno

 
Nuno Aguiar
Reply

Found it... cache issues
 

 

You must be logged in to post in the forum