Skip to content
Recued
Menu
← Back to recipes

Create a WooCommerce coupon offer

by recued-core v1

Approval-gated WooCommerce coupon workflow. It searches for an existing coupon code for context, then creates exactly one coupon with bounded offer fields through recued-core.woocommerce. It never deletes coupons, creates refunds, updates orders, mutates products, changes payment/shipping settings, edits webhooks, or calls arbitrary WordPress admin endpoints.

How it works 13 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (13 steps)
code trim
Trim whitespace from setting code
amount trim
Trim whitespace from setting amount
description trim
Trim whitespace from setting description
date_expires trim
Trim whitespace from setting date expires
minimum_amount trim
Trim whitespace from setting minimum amount
maximum_amount trim
Trim whitespace from setting maximum amount
has_code compare
Check if code has data
has_amount compare
Check if amount has data
has_required all
Check if all conditions are true
existing ?
skip: step.has_code not_equal true
created_coupon ?
skip: step.has_required not_equal true
skipped compare
Check if has required does not equal true
card to_summary
Format results as a summary card
Settings 13 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

code setting =
amount setting =
description setting =
product ids setting =
usage limit setting = 0
woocommerce setting =
date expires setting =
discount type setting = percent
maximum amount setting =
minimum amount setting =
email restrictions setting =
product categories setting =
usage limit per user setting = 0

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Where it runs

Device + server Runs on your device (browser) or your server.

Permissions it requires

Read your Woocommerce connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

woocommerce woocommercecommercecoupondiscountofferapprovalmarketingpack:woocommerce

Details

13 steps 13 configurable settings recipe_id: create-woocommerce-coupon-offer