I create a Coupon code from magento2.2 - programmatically create coupon this code now I have some questions

1) how can I test this code that is it working or not .

2) How can I get this coupon code like I want to send this code in Email to customer .

3) How can I fix the price of the specific product like let suppose one product price is 30$ n I want to fix that product price to 15$.

4) And How can I apply this on specific Product.

5) Where to create this code in my module in which folder I need to create this

  • Could you please share your code too..
    – Ghulam.M
    Feb 28, 2019 at 14:33
  • @GeeEmm dear I just give you the link as well I just write the links code in my module you can search that
    – Asad Khan
    Feb 28, 2019 at 14:36


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.