Skip to content
Rakesh Jesadiya

Rakesh Jesadiya

3x Magento Master

  • Magento 2
    • PHPUnit
  • GraphQl
  • Git
  • Magento Master
    • Magento Master 2020
    • Magento Master 2019
    • Magento Master 2018
  • Magento 2 Certification
  • Contact Us

Tag: Coupon

Posted on December 23, 2019December 23, 2019

How to Get Cart price rules data by id Magento 2?

You can get Sales rule (Cart Price rules) data by id in Magento 2 to fetch all the Cart rules related information.

You required Sales Rule id to retrieve the data of sales rule. Continue reading “How to Get Cart price rules data by id Magento 2?”

Share this:

  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to print (Opens in new window)
Posted on December 20, 2019

How to Create Coupon (Discount) code Programmatically Magento 2?

Create Coupon Programmatically in Magento 2 is the process of first create a Sales rule with basic details, next get rule id and apply rule id to the generate the new coupon.

Create Sales Rule using Magento\SalesRule\Api\Data\RuleInterfaceFactory and Coupon using Magento\SalesRule\Api\Data\CouponInterface. Continue reading “How to Create Coupon (Discount) code Programmatically Magento 2?”

Share this:

  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to print (Opens in new window)

Recent Posts

  • How to fetch Product Image URLs using GraphQl Magento 2?
  • Magento 2 Exception Invalid method Magento\Eav\Model\Entity\Attribute::canBeFilterableInGrid.
  • How to fetch Remote Branch updates in local branch by Git?
  • How to install magento 2 marketplace module by composer approach?
  • How to add debug log in the magento 2 using Zend Log?
  • How to use foreach loop with the array and objects in knockout js magento?
  • How to get product custom options list by GraphQl query?
  • How to fixed GraphQl Fields conflicting types. Use different aliases on the fields to fetch result?
  • How to use Group By and Having Clause SQL query in magento 2?
  • How to fixed GraphQl response The account sign-in was incorrect or your account is disabled temporarily in Magento?
Protected by Copyscape
  • © 2020 Rakesh Jesadiya. All Rights Reserved.