Is it somehow possible to make a coupon code in the cart only applicable if a certain product is in the cart and only this product, no other products at all except one defined product?

Possible with standard Magento 2 features? If not, any extension out there that might help here?


  • Does my solution worked ?
    – aravind
    Feb 12, 2020 at 7:15
  • Yes, it worked, thanks! Is it also possible to get free shipping with the same conditions?
    – EOB
    Feb 13, 2020 at 6:59
  • Yes there is a option, where you added the condtion , Free shipping -> set that to YES.
    – aravind
    Feb 13, 2020 at 7:11

1 Answer 1


Yes this is possible with magento. You can make a coupon code specific for products, In admin panel

Store -> Attributes -> product

Search SKU in default label and edit the attribute.

In Storefront Properties set Yes to Use for Promo Rule Conditions.

Now Go to Marketing -> Cart price rules and edit/add a rule.

In Actions Tab under the

Apply the rule only to cart items matching the following conditions (leave blank for all items) -> Click + icon and select SKU

and add only the SKU for which your cart price rule will be applicable.

If the coupon code need to apply for more than one product, instead of is select is one of.

  • Alright, thanks! Only one more: Is it also possible to limit this to only a certain SKU? So when the SKU and another is in the cart, the coupon should not work.
    – EOB
    Feb 13, 2020 at 14:13
  • I don't think so it is possible using default magento option.. You need to customize the coupon code for that..
    – aravind
    Feb 14, 2020 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.