• Resolved murilozilli

    (@murilozilli)


    How can I fetch a coupon by it’s attributes in woocommerce?

    I’m trying to put a coupon code inside the new account email template but I want to make sure that if the coupon code is edited the coupon sent in the email will be consistent with that changes.

    So if the coupon code is ‘XZcouponCode’ and I hardcode that on the email. If later on I change that coupon code, I wanted to make sure it will also change in the email. So I want to fetch a coupon by it’s attribute, let’s say free shipping and limit usage is one per client instead of just hardcoding the coupon code.

    Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to fetch a coupon by it's attributes on woocommerce?’ is closed to new replies.