Search code examples
phpmagentoreductiondiscounts

How to create a coupon on specific product in Magento?


Let's say I have 10% off coupon code.
This coupon is applicable only to Product B

A customer have in its cart :

  • Product P1
  • Product B
  • Product P2

I don't want my 10% off coupon apply to other product but only to Product B.

Do you know how I can do that within Magento?


Solution

  • Here is the process to create Coupon Code for any particular product:-

    • Login to Admin
    • Go to Promotions -> Shopping Cart Price Rules
    • Click Add New Rule
    • Fill Rule Information

    Set Conditions

    • On left sidebar, click Conditions tab
    • Click + button icon
    • Select Product attribute combination
    • Click + button icon
    • Select SKU
    • Now, you will see SKU is ...
    • Put your product SKU over there

    Please note that the SKU option may not show up by default. (Go to: catalog -> attributes -> manage attributes. Then search for the ‘SKU’ attribute and set the drop down ‘Use for Promo Rule Conditions’ to YES and reindex if needed.)

    Set Actions

    • You can set how much discount you want to give from here

    • Save Rule