Order discounts

merav tg asked on May 15, 2016 16:19

Hey

I would like to create a new Order rules:

  1. if customer bought at least one product.

Customer.PurchasedProducts.Count >= 1

is this ok?

Recent Answers


Anton Grekhovodov answered on May 16, 2016 07:29

I think this expression will be correct ECommerceContext.CurrentCustomer.PurchasedProducts.Count > 1 because there isn't just Customer macro object

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 16, 2016 11:09

Hi Merav,

Are you referring to no of items in the current cart or also referring to the fact if it is a returning customer has already purchased that product before?

I am assuming you are referring to the current basket/cart. In that case I think you need something like this

ECommerceContext.CurrentShoppingCart.TotalUnits

Since your condition is >=1 it means you have to just check if the number of iems in the cart is at least 1

You can also refer to this article which covers advanced cart scenarios with examples. This article was written by Jan from Kentico team.

Thanks, Chetan

0 votesVote for this answer Mark as a Correct answer

merav tg answered on May 17, 2016 08:54 (last edited on May 17, 2016 09:05)

Hey

the type of discount that i want to make is for a customer that just finished buying or a returning customers. I want a macro that can identify that scenarios.

any suggestions?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.