wilr

doesn’t that already exist then? through the category constraint?

Justin White

even the fixed amount discount would work if there was an extra condition (constraint) that all items were from the same category

Justin White

It just needs to apply the discount in the almost exact same way that a fixed amount discount works, based on cart total. But work with items from a single category instead

wilr

so do you get the user to select the product on the checkout form or take them back to the store?

Justin White

I dont even need to worry about which product is free in this case as all in this category are the same price and always will be

Justin White

“also a category constraint you could use” yeah I was already looking into that one

Justin White

@wilr Thanks I’ll take a look, In my case it would be if x number of products from “this category” are in the cart get one free

wilr

Sorry @Justin White haven’t had a need for a coupon like that at this stage. Would be a bit tricker than all the other coupons since some more UX factors (i.e asking them do they want to add the 3rd free). Haven’t got any handy code samples to assist but if you look at the ProductDiscountConstraint that would kinda of show you the logic for checking whether a product is in the cart.

Justin White

@nightjarnz Thanks, i do know that I can to make a DataExtension, but I was hoping that someone had already bumped into this issue with that module and knew if there were existing methods and or simple ways to achieve this in the discount module