Developer forum

Forum » Ecommerce - Standard features » Different receiptpages and receiptmails, based on type of product sold

Different receiptpages and receiptmails, based on type of product sold

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

We have a client who sells 3 different types of products. And depnding on what type of product a costumer orders, our client wants a solution where a message on the receipt page and in the receipt order, is depended on the product.

 

So product a = thank you note a, product b = thank you note b, product c = thank you note c

 

The occurance of orders containing more than one of these products at a time, is highly unlikely - so in the suggested solution, you donĀ“t have to consider this option.

 

What would be the smartest, fastest and easiest way to solve this? I am considering doing a "IF product==" on the product in the templates - but just want to check if there is another better way of doing this.

 

Appreciate your opinion


Replies

 
Nicolai Pedersen
Reply

You have 2 options.

  1. Convert your receipt template to razor, and based on the products found in it, render different messages
  2. Create 3 checkoutflows with different templates, when entering the "Show cart" look at the products in the cart and redirect to the right one.

BR Nicolai

 

You must be logged in to post in the forum