GT BOGO Engine PRO documentation
Getting Started
Install GT BOGO Engine PRO, tell it about your store and run your first deal in a few minutes.
Install and activate
Go to WordPress โ Plugins โ Add New โ Upload Plugin, choose the ZIP file and click Install Now, then Activate. GT BOGO Engine appears in your admin menu.
Connect your licence
Go to GT BOGO Engine โ License. Enter your licence key, or sign in with the email you bought with and the 6-digit code we email you. Your licence and the packs you bought are added to the store.
Run the setup
Setup confirms your industry and how you sell, reads your store profile, recommends packs and superpowers, and ends with the Go Live checklist.
Switch on a deal
Your purchased packs download by themselves, switched off. Review the rules, switch on the ones you want, and they apply to the next qualifying cart.
Tip: There is no master switch. As soon as a rule is switched on, it applies automatically to every cart that qualifies.
System requirements
- WordPress 6.4 or higher
- WooCommerce 8.2 or higher, with the block or the classic cart and checkout
- PHP 8.1 or higher (PHP 8.3 recommended)
- Nothing is added to your product pages or price display; deals apply in the cart and at checkout
Go Live Checklist
The last step of setup, and a screen you can open any time.
What the checklist reviews
- Licence โ The License screen shows Active
- Store details โ Store name, logo, sender email address and postal address for customer emails
- Active rules โ At least one rule switched on
- Currency, permalinks and HTTPS โ Set up the way the cart and emails need
- Margin โ A minimum margin is set. New installs start at 20%
The checklist is a guide: active deals apply whether or not every check passes. Green means setup is complete, yellow means two active deals conflict, and red means a key setup item is missing.
Important: Test every new deal in a private browser window, signed out or as a test customer. An admin session can behave differently from a shopper's.
Your Store Profile
Your industry and how you sell decide which packs are recommended and how your deals speak to shoppers.
Your industry
GT BOGO Engine works out your industry from your products themselves: their categories, names, tags, images, sizes and descriptions, in all 16 supported languages. Categories whose names say nothing, such as collections or themed series, are read from the products inside them. You confirm the result during setup or choose another; your choice always wins.
If you sell in more than one industry, add the others in Settings. Their packs are recommended too.
How you sell
Setup and Settings ask how your store sells, for any industry: wholesale or trade accounts, services or appointments, events, subscriptions, courses, rentals, stays, restaurant orders, used or refurbished goods, preorders, limited editions, personalization, digital products, gift cards and local pickup. The plugin also looks for evidence in your store, such as a B2B setup, business customers or bulk orders, and shows what it found. Your confirmed answer is the one used.
What your profile changes
- Pack recommendations โ Every pack built for your industry, plus each deal mechanic that matches what your store actually has
- Pack fit โ A pack that needs products you do not carry (for example swimwear) or a way of selling you do not use (for example services) is listed with what it needs, not recommended
- Deal style โ Jewelry and luxury stores stay gentle, with no urgency wording. Health, baby, office and wholesale stores are never rushed. Business buyers see value wording, not urgency
- Price Sensitivity โ Each category's level starts from what your products are. See Price Sensitivity
- Starter deal and minimum margin โ When you pick your industry in the setup, the starter deal and the minimum margin are set to suit it, for example Buy 2, Get 1 Free with a 30% minimum margin for beauty, or Buy 1, Get 1 at 25% Off with 10% for electronics. B2B also turns on B2B Pricing and ticks wholesale. A deal or margin you set yourself is kept. Untick the box in the setup to leave both as they are
AI check: With your own Anthropic API key, Analyze my store and Check all packs against my store ask Claude to review your profile. Suggestions change nothing until you accept them. See AI Intelligence.
PRO Packs
250 campaign packs in 19 categories, 2,711 ready-made rules in all.
How packs work
- Each pack holds 10 to 16 configured rules with discount values, customer targeting and priority order set for that type of store
- Packs are bought one at a time ($79.99) or in bundles, from the PRO Pack Store in the plugin or on the sales page
- After your licence is checked, every pack you own downloads to your store by itself, switched off, ready for you to review
- A pack rule written for certain categories or products waits until you choose them, then runs. The Rules screen marks it
- Rules from packs of different industries can run in one store only on their own products, and two pack deals that would counter each other on the same shoppers and items cannot run together. The message names the other deal
Managing your rules
- Rules screen โ Switch any rule on or off; select several to activate, pause, delete or move their dates in one step
- Duplicate โ Start a new rule from an existing one. The copy stays paused until you switch it on
- Priority โ Every rule has a priority from 1 to 100. Lower numbers are priced first. Packs arrive with priorities already set
- Conflicts โ Two active rules with the same priority are flagged until you change one
The 19 categories
| Category | Packs |
|---|---|
| Core Deal Mechanics | 40 |
| Sports, Fitness & Recreation | 28 |
| Beauty, Spa & Salon | 18 |
| Home, Garden & Hardware | 17 |
| Food, Dining & Grocery | 16 |
| Automotive, Marine & Tire | 16 |
| Fashion & Apparel | 15 |
| Electronics, Tech & Software | 14 |
| Travel, Hospitality & Events | 10 |
| Kids, Toys & Gifts | 10 |
| Specialty & Niche Retail | 10 |
| Jewelry & Luxury Goods | 9 |
| B2B & Wholesale | 8 |
| Health, Medical & Supplements | 8 |
| Pets & Animal Services | 8 |
| Education & Training | 7 |
| Books, Music & Instruments | 6 |
| Craft Beer, Wine & Spirits | 5 |
| Photography, Flowers & Gifts | 5 |
Core Deal Mechanics packs work in any store and are recommended when your store has what they need.
Deal Types
Every deal type is set up on the Rules screen, with no coupon codes for shoppers to type.
The deal types
- Buy X get Y โ Buy a number of items, get the cheapest (or most expensive) free or discounted. The reward can be the same items or different ones you pick, for example buy 2 T-shirts, get socks free
- Quantity breaks โ A bigger discount the more a shopper buys, for example 2 or more for 10% off and 3 or more for 20% off. Up to 10 tiers, counted per product, per cart line or across every item the deal targets (mix and match)
- Spend rewards โ Up to 10 thresholds, each giving a percent off, an amount off, free shipping or a gift, for example free shipping at $100 and $20 off at $200
- Bundle price โ Every complete group of a set number of items gets one price, for example any 3 for $99. Groups fill from the most expensive items first
- Gifts โ A spend threshold can give 1 of up to 12 gift products. The gift is a real order line, so stock goes down and you can pick and pack it
- Price lists โ Chosen customers get their own prices: verified B2B accounts, customers with a role, named customers or loyalty tiers. A % off, prices per product, or both
Targeting, exclusions and conditions
- Targeting โ Products, variations, categories (with their subcategories), tags, brands and your other product taxonomies. Large catalogs can be searched, filtered and added in bulk
- Exclusions โ Leave out chosen products, categories, tags or brands, for example every T-shirt except one design. Excluded items never count and are never discounted
- Conditions โ A deal can apply only with chosen shipping methods (for example local pickup) or payment methods. The cart tells the shopper what the deal needs
- Usage limits โ Uses per customer per day, week, month or ever, and an option to count a household as one customer
- Combining โ A deal can be exclusive on the items it discounts. Advanced Settings sets a maximum total GT BOGO discount per order
- Coupons โ When a shopper also applies a coupon, the default gives whichever saves the shopper more. You can allow both or let the coupon replace the deal
Without PRO: the free version runs one store-wide Buy X Get Y deal. You choose the buy quantity, the get quantity and the discount.
Subscription products (WooCommerce Subscriptions)
A deal on a subscription product comes off the first payment only. Tick On subscriptions, also take this off every renewal on the deal to make it subscribe-and-save: the same discount then comes off every renewal for as long as the subscription runs. Deals on other products work as before.
What Shoppers See
Deals show where shoppers decide: in the cart and at checkout. Nothing is drawn on your product or shop pages.
In the cart and at checkout
- Discounted items โ The deal lowers the price of the items it applies to. Each item shows its own price crossed out and what the deal saves
- Free items โ A Buy X get Y free item sits on its own line, marked Free, with the deal's name under it. The paid items keep their normal price
- Gifts โ A gift shows as its own line marked Gift: Free
- Progress lines โ One plain line such as "Add 1 more item to get 1 free" or "Spend $12.00 more to get free shipping", in the shopper's language. It never appears on the order, emails or invoices
On orders
- Orders and order emails show free and gift items as their own lines with their deal
- Orders carry no negative discount line, which some payment gateways reject
- Tax is worked out per item, and refunding a discounted item refunds exactly what the customer paid for it
Margin Protection
Every cart gets one decision: which deals apply, what they cost your margin, and which were held back and why.
How each cart is decided
- Eligibility โ Each active rule is checked against the cart and the customer: products, quantities, cart value, schedule, customer group and conditions
- Margin floor โ Each eligible deal is priced and checked against your minimum margin. A deal that would take the cart below it is held back, with the reason recorded
- Revenue Guard โ If margin or revenue falls below the thresholds you set, discounts pause until it recovers
- Offer suppression โ When switched on, optional deals are skipped for customers likely to buy without one. Off by default
- The decision โ The deals that apply are priced into the cart, and the full decision is recorded in the Decision Provenance Log
The controls
- Minimum margin โ Set on the Deal Lockout screen. New installs start at 20%. It uses the product costs your store records (WooCommerce Cost of Goods or a supported cost-of-goods plugin); where a product has no cost, nothing is estimated and the decision says so
- Revenue Guard โ A minimum margin, a revenue floor, a discount cap and the period they are measured over
- Decision Provenance Log โ The deals applied and held back for each cart, with the reason. Use it when a customer asks why a deal did or did not apply
The discount a cart receives is always the one your rule sets, as priced against your margin. Signals such as stock or customer value decide who qualifies; they never change the size of a discount.
Price Sensitivity
An extra saving for shoppers who hesitate, sized for each product category. Off until you switch it on.
How it works
A shopper who hesitates in the cart (removing items, staying without checking out, or coming back to it) can be offered an extra saving. Its size depends on how price-sensitive each product's category is. GT BOGO Engine knows 5,595 product categories in 16 languages, so every product in every industry gets a level.
- The saving goes only on items no other deal already discounted, passes the same margin checks as every deal, and shows on the item as Extra saving
- Health products are treated like other goods shoppers compare online; luxury items follow luxury mode
- Regulated products (tobacco, weapons, adult items), live animals and vehicles never get a hesitation saving
- It learns from your store: a small share of hesitant shoppers is held back so the plugin can measure what the saving really changes, and your own results gradually replace the starting levels
Setting your own levels
Settings โ Intelligence Systems โ Sensitivity by category shows the level used for each of your categories and where it comes from. Set your own level for any category; its subcategories follow it.
Superpowers
20 optional features that work behind the scenes. None of them draws anything on your storefront.
The 3 email superpowers
- Exit Intent โ When a signed-in customer with a deal in their cart leaves the cart or checkout without buying, a follow-up email is sent
- Cart Recovery Email โ Up to 60 minutes after a signed-in customer leaves a cart with an active deal, an email links back to the cart
- Email Notifications โ A thank-you email after an order that used a deal
Customers whose purchase history shows they usually come back on their own are not sent the Exit Intent or Cart Recovery email.
The 17 intelligence engines
They score customers, assign loyalty tiers, VIP status and streak roles, pause deals when margin or stock calls for it, send signed webhooks and run background jobs on staggered schedules. Auto Add puts the free item in the cart for free-item deals, and skips it when the margin is too thin, the item is out of stock or the customer does not qualify.
Switching a superpower on or off
Go to GT BOGO Engine โ Superpowers, use the Enable switch and click Save All Superpower Settings. The intelligence engines run unless you switch them off; the email superpowers and Auto Add stay off until you switch them on.
To show deal information in your theme's own design, your developer can read it from the decision API. See For Developers.
Timed Campaigns
Plan sales weeks ahead. They start and end by themselves.
Campaign Scheduler
- Choose one or more rules, a start and end date and time, and the timezone
- Schedules can repeat on the days you choose, for example every Friday afternoon to Sunday evening
- The scheduler can email you when it switches rules on or off
Promotion Calendar
Every deal that runs in a month on one view, including scheduled campaigns and the deals that run every day. Days where two deals discount the same products for the same shoppers are marked.
Tip: WordPress runs scheduled tasks when a page is loaded. On a low-traffic store, schedule a deal 5 minutes before the time it must be live.
Loyalty & VIP
Loyalty tiers, purchase streaks and VIP status that your deals can target, kept up to date by the plugin.
Loyalty tiers
| Tier | Lifetime spend |
|---|---|
| Bronze | Every registered customer starts here |
| Silver | $250+ |
| Gold | $500+ |
| Platinum | $1,000+ |
| Diamond | $2,500+ |
Tiers are checked when an order becomes processing or completed. A tier does not change prices by itself: it decides which of your deals a customer qualifies for.
Purchase streaks
A streak counts consecutive weeks with at least 1 order. At 2, 3, 6, 12 and 26 weeks the customer gets the streak email, and from 6 weeks a streak role your deals can target.
VIP status
Given automatically from spend and order count: VIP Member ($500 and 3 orders), Gold VIP ($1,000 and 5), Platinum VIP ($2,000 and 10) and Whale ($5,000 and 20). VIP customers qualify for the deals you aim at them.
Customer Rewards
A free gift that unlocks once for each customer who joins a group.
How rewards work
- Aim a gift deal at a customer group: a loyalty tier, VIP status, birthday, referrals and more
- Each customer who joins the group unlocks the gift once and gets an email from your store
- You choose how it is redeemed: claimed on its own, paying only shipping, or added to the next order. An unused reward is added to the customer's next order by itself, as its own Free line
- If an order with a reward is cancelled or refunded, the reward goes back to the customer
The Customer Rewards screen lists your reward deals and every customer's rewards, with the order each one was used on.
Referral Program
Customers share a link, friends get an offer, and rewards come off the next order by themselves.
How referrals work
- Switch the program on in Settings โ Referral Program and set the friend offer and the rewards
- Each registered customer gets a personal link and an 8-character code on a Referrals page in My Account
- A friend who arrives through the link gets the friend offer in their cart, on a first order only
- When the friend's order is completed (or paid, if you choose), the reward comes off the customer's next order when they check out signed in. Nobody types a code
Self-referrals, repeat customers and orders below your minimum are recorded as not eligible. A cancelled or fully refunded friend order cancels a reward that has not been used.
Commission and payouts
- Pay referral rewards as store credit, or let each customer choose store credit or PayPal in their account
- Set the commission, a minimum payout ($100 by default) and a holding period, so a refund cancels a commission before it is paid
- Customers see what each friend's order earned them: waiting, available, being paid or paid. Changing a PayPal email needs their account password
- Customers are emailed at every step, and the Referral payouts card in Settings lists every payout with its status
For influencers and partners, Referral Ambassadors gives a customer a vanity code, a friend offer of their own and a commission rate.
Automated Emails
Shopper emails that send themselves from orders, carts, loyalty, dates and subscriptions, in your store's name and branding.
The emails
| Category | Emails |
|---|---|
| Orders | New customer welcome ยท Deal confirmation ยท Free gift ยท Post-purchase follow-up |
| Cart and deals | Threshold nudge ยท Cart reminder ยท Deal ending soon |
| Loyalty | Tier upgrade ยท VIP unlocked ยท Streak bonus ยท Streak at risk ยท Streak broken ยท Order milestone ยท Loyalty introduction and reminder |
| Dates | Birthday offer ยท Birthday coming up ยท Account anniversary ยท Anniversary coming up |
| Win-back | Win-back ยท Lapsed customer offer ยท Reorder reminder |
| Subscriptions | Subscriber at risk ยท Subscription cancelled ยท Trial ended ยท Subscriber anniversary |
| Rewards and referrals | Reward unlocked ยท Referral pending ยท Referral reward ยท Commission and payout notices ยท B2B tier reached |
| Consent | Opt-in confirmed (double opt-in) |
Each email can also go to Klaviyo, Mailchimp or your webhooks as an event instead.
Setting up emails
- Master switch โ Settings โ Customer Emails. Emails send only once your business name and postal address are filled in
- Sender โ The From Name and From Email Address on the Email Management screen; left empty, your WooCommerce sender is used
- Branding โ Every email comes from your store, with your logo and colors only. The footer shows your website, privacy policy, terms, contact link, address and unsubscribe link
- Design โ One clean white design that matches your WooCommerce receipts: your logo at the top, a button color you choose. Emails sent through Klaviyo or Mailchimp carry the same finished email
- No repeats โ The same email is not sent twice to a customer within its waiting period
Seeing What Works
Which deals apply, the revenue on those orders and what they cost in discounts.
Dashboard and Analytics
- Revenue influenced โ The value of orders where a deal applied. It shows where deals were used, not how many sales they added
- Average order value โ Of orders where a deal applied
- Rule Leaderboard โ Your rules ranked by the revenue on orders where they applied
- Email performance โ How many of each email were sent, on the Email Management screen
- History โ Every order where a deal applied is kept. Export CSV on the Analytics page downloads it
A/B testing
On the A/B Testing page, choose 2 rules, name the test and record your hypothesis, then compare their results from real orders. The analysis reports the statistical confidence of the comparison. Recording a winner does not switch rules on or off.
AI Intelligence
AI tools that run on your own Anthropic API key. AI never sets the price a shopper pays.
The AI tools
| Tool | What it does |
|---|---|
| Analyze my store | Looks at your categories, product names and a few product photos, and suggests your industry and what each unclear category holds |
| Check all packs against my store | Reviews your store against all 250 packs and flags any the plugin judged wrongly, with a reason |
| Pack Recommender | Recommends packs from the full library for a goal you describe, with scores and reasons, using your whole store profile |
| Gap Analyzer | Compares your active deals with the 250-pack library and flags seasonal, lifecycle, category and retention gaps |
| AI Copywriter | Writes the Exit Intent, Cart Recovery and thank-you email copy in your brand voice |
| Performance Coach | A weekly report on your deals with suggested changes, every Monday |
| Intelligence Engine | Off by default. Shadow asks the AI but changes nothing; Rollout and Full let it decide which superpowers act for each visitor |
Every suggestion about your store profile or packs changes nothing until you accept it. Because the key is your own, you can also use the AI features for store tasks beyond promotions.
API key: Enter your Anthropic API key in GT BOGO Engine โ AI Intelligence โ API Configuration. It is stored encrypted on your server and never sent to the browser.
Testing Deals
Try a deal on your past orders before it goes live.
Simulate before you switch a deal on
GT BOGO Engine โ Simulate replays a deal against your own past orders, with the same pricing as the cart, so you can see what it would have given before it costs anything. It changes nothing.
Test in a private window
Switch the rule on, then add qualifying products to a cart in a private window, signed out or as a test customer, and check the crossed-out price, the Free line or the progress line appears as expected.
Customer Groups
Groups the plugin keeps up to date from purchase history, for your deals to target.
Groups maintained automatically
- Loyalty tiers โ Bronze to Diamond by lifetime spend
- VIP status โ VIP Member to Whale
- New and returning customers โ From each customer's order history
- Streak, anniversary and zone roles โ As customers build streaks, reach a purchase anniversary or order from a geo zone
- Referral groups โ Referred friends and advocates
- B2B accounts โ Verified business buyers and their volume tiers
- Pack audiences โ Every group the PRO packs are written for, such as customers who bought this time last year, former VIPs and recent buyers
Who Gets Your Deals
Control which customers and which carts each deal applies to.
Targeting options
- All customers โ Everyone whose cart qualifies
- New or returning customers โ By order history
- Loyalty tier or VIP status โ Any tier from Bronze to Diamond, or VIP Member to Whale
- User roles โ For example wholesale
- Country zones โ See Country Targeting
- Shipping and payment method โ See Deal Types
- Excluded roles โ In Settings, logged-in shoppers with a checked role, such as staff accounts, get no deal. Guests are not affected
Your Deals Page
A public page on your store that lists your live deals.
Setting it up
- Go to GT BOGO Engine โ Deal Page
- Enter a page title and URL slug (default: bogo-deals), and optionally a heading and subtext
- Choose a layout (grid, list, compact or hero) and which deals to show: active, scheduled or all
- Click Create Deal Page, or place the [gt_bogo_deals] shortcode on any page
The page shows each deal, the products or categories it covers, any minimum order and when it runs. Deals a shopper cannot get, by role or by zone, are left out, and styling follows your theme.
Country Targeting
Group countries into zones and limit deals by zone.
How geo targeting works
- Group countries, states or postcodes into named zones, such as Europe or US East Coast
- Rules assigned to an Include zone apply only to shoppers inside it; rules assigned to an Exclude zone do not apply to them
- The shopper's location is the cart's shipping address, then the billing address, then their IP address
- Signed-in customers get a role for their zone, and you can see which zones your deal orders come from
Multiple Currencies
Deals work in the currency the shopper pays in.
Multi-currency support
GT BOGO Engine works with WooPayments, WPML, FOX/WOOCS, Aelia, CURCY and Price Based on Country. Your switcher converts prices; GT BOGO Engine converts the amounts in your rules to match:
- Percentage discounts work in any currency with no setup
- Fixed amounts, cart minimums, thresholds and caps convert at your rate override for that currency, else your switcher's rate, else the market rate
- Exchange rates are fetched only while your store sells in another currency
- Your admin screens always show your base currency
White Label
Your shoppers see your store, never GT BOGO Engine.
What you can set
- Discount Label โ The name shown with discounted and free items for deals that have no name of their own; {store_name} becomes your store name
- Shopper email sender โ The name and address shoppers see in their inbox
- Logo and button color โ For shopper emails
Shopper emails and your Deals Page carry your branding only. White Label changes what shoppers see, not the WordPress admin.
Connecting Other Tools
Webhooks, the REST API and native integrations.
Webhooks
bogo_appliedโ An order with a deal is recordedtier_upgradedโ A customer moves to a new loyalty tiervip_unlockedโ A customer reaches VIP statusreferral_convertedโ A referred friend's order qualifiesstreak_milestoneโ A purchase-streak milestone is reached
Choose the events and your endpoint on the Integrations page. Each delivery is signed with HMAC-SHA256 in the X-GT-BOGO-Signature header. Customer details are included only with the customer's marketing consent.
REST API and native integrations
- REST API โ
/wp-json/gt-bogo/v1reads and edits rules, reads analytics and live deals, and prices a cart withPOST /validate-cart. Create API keys on the REST API screen - Mailchimp and Klaviyo โ Connect with an API key on the Integrations page
- WooCommerce Subscriptions โ Detected automatically for subscriber deals
- Currency switchers โ See Multiple Currencies
Settings Guide
The main settings and their defaults.
| Setting | Where | Default |
|---|---|---|
| Your industry and how you sell | Setup, then Settings | Detected |
| Minimum margin | Deal Lockout | 20% on new installs |
| Coupons with deals | Advanced Settings | Best saving |
| Maximum total discount per order | Advanced Settings | No cap |
| Price Sensitivity | Settings โ Intelligence Systems | Off |
| Customer emails | Settings โ Customer Emails | Off |
| Referral Program | Settings โ Referral Program | Off |
| Excluded user roles | Settings | None |
| Auto Add | Superpowers | Off |
| AI key | AI Intelligence | Empty |
| Email alert on error | Settings โ Audit Log | Off |
| Delete all data on uninstall | Settings | Off |
Advanced Settings holds the engine settings for cart and coupons, customer intelligence, measurement, inventory, bundles, gifts, notifications, B2B and privacy.
Pricing & License
One price per site, monthly or annual.
Prices
- PRO licence โ $99/month or $990/year per site. Both plans include the full PRO release
- PRO packs โ $79.99 each, or bundles of 5, 9 or 15 core packs at $299, $499 and $799. Packs are one-time purchases
- Free version โ One store-wide Buy X Get Y deal with no coupon codes. Download PRO
Your licence
- Buy at gtbogoengine.com/pro; the purchase e-mail shows how to switch PRO on, and your licence is in your PRO account
- Activate it under GT BOGO Engine โ License with the key, or sign in with your purchase email and a 6-digit code
- One licence per site. Move it to a new domain from your account at gtbogoengine.com/pro/account
- PRO runs to the end of the period you paid for. A cancelled subscription keeps working until then; when a licence ends, PRO features and PRO pack deals stop at the next licence check
- The plugin never sends your licence key anywhere; licence checks carry a one-way hash of it
For Developers
How discounts are applied, the decision API, hooks and filters, the REST API, AI assistants and webhooks.
Architecture
- Deals are evaluated on cart and checkout only; the plugin never hooks WooCommerce product templates or price filters
- No JavaScript on product or shop pages
- Deals lower the price of the cart items they apply to; free and gift items are their own cart lines. Orders carry no negative fee line
- Block and classic cart and checkout, through the Store API extension
- HPOS (High Performance Order Storage) compatible
The decision API (gtbogo.decision/1)
extensions["gt-bogo-engine"].decisionโ In the WooCommerce Store API cart responsegt_bogo_get_decision()โ PHP, returns the decision for the current cartPOST /wp-json/gt-bogo/v1/validate-cartโ Evaluates a cart and returns the decisionGET /wp-json/gt-bogo/v1/schemas/decisionโ The public JSON Schema
Discounts are priced once; no filter changes a discount after pricing. Read the decision API or use the hooks below rather than calling plugin classes directly.
Key action hooks
gtbogo_rule_firedโ A rule applies a discount. Params:$rule_idgtbogo_tier_upgradedโ A loyalty tier changes. Params:$user_id,$old_tier,$new_tiergtbogo_vip_unlockedโ A customer reaches VIP status. Params:$user_id,$tiergtbogo_streak_milestoneโ A purchase-streak milestone. Params:$user_id,$streak,$rewardgtbogo_rule_activated/gtbogo_rule_deactivatedโ A rule is switched on or off. Params:$rule_idgtbogo_order_bogo_appliedโ A paid order carried deals. Params:$order_id,$total_savings,$rule_idsgtbogo_order_milestoneโ A customer reaches an order-count milestone. Params:$user_id,$count,$offersgtbogo_deal_arbitratedโ Deal arbitration picked one deal of a kind. Params:$winner,$context,$candidates
Filters
gtbogo_product_costโ Product cost used by the margin floor. Params:$cost,$product_idgtbogo_cogs_meta_keyโ Meta key that holds a product's cost, when your cost plugin uses its own. Params:'',$product_idgtbogo_fx_rateโ Exchange rate for multi-currency stores. Params:$rate,$currency,$basegtbogo_birthday_meta_keysโ User meta keys read for a customer's birthday. Params:$keysgtbogo_b2b_rolesโ Roles treated as trade customers. Defaultb2b_account,wholesale_customer,wholesalergtbogo_api_client_ipโ Client address used for API key allowlists behind a trusted proxy. Params:$ipgtbogo_log_ip_addressโ Address stored in the plugin's own logs; return''to store none
REST API (gt-bogo/v1)
Base address /wp-json/gt-bogo/v1/, contract gtbogo.api/1. Sign in with a WordPress session (cookie and nonce), a WordPress application password, or an API key made under GT BOGO Engine → REST API. Send a key in a header only: X-GT-BOGO-Key, X-GTBOGO-Key or Authorization: Bearer. Keys are stored as hashes and shown once; expiry, a per-key rate limit, an IP allowlist and HTTPS are enforced on every request. A key acts as the administrator who made it, narrowed by its scope, and every change goes through the same permission checks, approvals and change history as the admin screens.
| Scope | Allows |
|---|---|
read | Every GET route, and POST /validate-cart |
analytics | GET /analytics, /measure, /rules/{id}/stats and the schemas |
write | Read, plus create and edit rules (saved as drafts) and submit them for approval |
full | Everything, including switching rules on or off and deleting them |
| Route | What it does |
|---|---|
GET /rules | Rules; ?status=active (default), all, draft or inactive |
GET /rules/{id} | One rule |
POST /rules | Create a rule (a draft unless the caller may publish and asks for it) |
PATCH /rules/{id} | Edit a rule's settings |
POST /rules/{id}/submit | Submit a draft for approval, with a simulation attached |
PATCH /rules/{id}/status | Switch a rule on or off |
DELETE /rules/{id} | Delete a rule |
GET /rules/{id}/stats | Uses, budget, customers and measured result |
GET /rules/{id}/history | Change history |
GET /analytics | Paid orders, orders with a deal, discount cost, per rule; ?days=30 (up to 365) |
GET /analytics/daily | The same per day (UTC) |
GET /deals | Live offers (public when the store turns on public API access) |
POST /validate-cart | Price a cart against the live rules and return the decision |
GET /schemas/decision | JSON Schema of the decision |
GET /measure/campaigns | Measured campaigns; /measure/campaigns/{id} and /{id}/history for one |
GET /offers | Public offers for shopping assistants (see below); no sign-in |
AI assistants and shopping agents
- WordPress Abilities API (WordPress 6.9 and later): the category
store-promotionsregistersgt-bogo/list-promotions,get-promotion,promotion-history,promotion-performance,simulate-cart,margin-floor,create-promotion-draft,update-promotion,pause-promotionandresume-promotion. Each runs the REST route above with the caller's own permissions, so an assistant can never do more than the person using it. A new promotion is always a draft; a live one must be paused before it is edited; a draft is switched on by a person. Turn the abilities off under Integrations → AI Assistants. - Offers for shopping agents: public offers every shopper can get appear in the Store API product data under
extensions["gt-bogo-engine"].offersand atGET /wp-json/gt-bogo/v1/offers(contractgtbogo.offers/1, cached 5 minutes). Offers for groups, members or single customers are never listed. Turn them off on the same card.
Webhooks
Set an HTTPS address and a secret under Integrations → Webhook Configuration, then choose the event groups. Every delivery is a JSON POST:
| Header | Value |
|---|---|
X-GT-BOGO-Signature | sha256= followed by the HMAC-SHA256 of the raw body with your secret |
X-GT-BOGO-Delivery | Delivery id, the same on every retry and replay |
X-GT-BOGO-Event | Event name |
X-GT-BOGO-Attempt | 1, 2, and so on |
X-GT-BOGO-Version | Payload version (2) |
Body: {"event": "...", "version": "2", "timestamp": "ISO 8601", "store_url": "...", "data": {...}}. Customer events carry names, e-mail addresses or ids only when the customer agreed to it; otherwise those fields are removed and the event still arrives.
| Group | Events |
|---|---|
| Deals redeemed | bogo_applied, deal_eligible, cart_abandoned, flash_sale_started, flash_sale_ended |
| Rules switched | rule_activated, rule_deactivated, revenue_guard_triggered, revenue_guard_lifted |
| Customers | tier_upgraded, streak_milestone, streak_broken, referral_converted, vip_unlocked, anniversary_triggered, birthday_triggered, winback_sent, subscription_at_risk |
| Shopper messages | shopper.* (each shopper e-mail moment, for your own e-mail platform) |
Answer with a 2xx status. A failed delivery is retried after 1, 5 and 30 minutes, 2 hours and 12 hours (6 attempts). Delivered entries are kept 30 days, failed ones 90 days, and a failed delivery can be sent again with Replay on the Webhook Deliveries card. Check the signature before you trust a payload:
$sig = 'sha256=' . hash_hmac( 'sha256', file_get_contents( 'php://input' ), $secret ); |
For Agencies
Run GT BOGO Engine PRO on every client store, each showing its own name to its shoppers.
Agency workflow
- One licence per client site โ Each licence is tied to one domain
- Set the store profile โ Confirm the client's industry and how they sell, so the right packs are recommended
- Set up White Label โ The Discount Label, shopper email sender, logo and button color
- Import the client's packs โ Their rules load switched off; switch on the ones that fit and set the minimum margin
- Hand off โ The client manages their own deals in the GT BOGO Engine admin
Agency edition
- Run 10 to 100 client stores from one Command Centre: changes with preview, one store first and undo, blueprints, pack copies, your agency name on the plugin and one AI key for every store
- Read the Agency documentation or see GT BOGO Engine Agency
Why it works for agencies
- $99/month or $990/year per client site: a clear upsell with recurring revenue
- 250 packs in 19 categories, so each client starts from deals built for its category
- Each client store's own name in front of its shoppers
Every Screen
What each of the 45 screens in the plugin menu is for.
| Screen | What it is for |
|---|---|
| Start | |
| Dashboard | Your store at a glance: active deals, recent results and whether the margin floor is protecting your margin. |
| Setup Guide | The first steps in order. Every step can be skipped and changed later. |
| Welcome | The first screen after installing, with the next steps. |
| Free Core Rule | The always-available BOGO rule that runs without a PRO licence: products, schedule and cart message. |
| Deals | |
| Rules | Every deal on the store: create, edit, switch on or off, duplicate and send for approval. |
| PRO Pack Store | Buy industry packs of ready-made promotions. |
| My Packs | The packs you own: turn them on, pause them, set them up and see how they perform. |
| Variant Rules | Deals for specific product options, such as size, colour or material. |
| Rule Conditions | Conditions that apply to every active deal: categories, cart value, schedule, location and more. |
| Conflict Resolver | Deals that clash on priority, discount or the products they cover, with the fix for each. |
| Deal Page | A public page that lists your current deals. |
| Superpowers | Optional features, such as cart recovery and win-back e-mails, each switched on separately. |
| Timing and audiences | |
| Campaign Scheduler | Switch deals on and off by date, time of day or day of the week. |
| Promotion Calendar | Every deal running this month, with clashes and budgets. |
| Customer Rewards | Gift deals for a customer group (loyalty tier, VIP, birthday, referrals): each customer gets the gift once. |
| Customer Segments | Aim deals at customer groups by order history, spend, role or behaviour. |
| Geo Targeting | Run deals in some countries, states or postcodes, or leave regions out. |
| Multi-Currency | Thresholds, discount caps and cart minimums per currency. |
| A/B Testing | Compare two deals: record the idea, follow the results and keep the winner. |
| Results | |
| Analytics | What deals did for revenue, a leaderboard of deals and the times of day that sell. |
| Measure | What each offer really added, compared with shoppers who did not get it. |
| Profit | Margin on paid orders after deals, and the product costs the margin floor uses. |
| Clearance | Overstocked and slow products, with a deal for each that stays above your margin floor. |
| Simulate | Try a deal on your real past orders before it costs anything. |
| ROI Projector | Model a campaign before you launch it: revenue, discount cost and margin. |
| Customer Intel | Customer profiles: value tiers, how recently and how often they buy. |
| Journey Map | How many shoppers reach each stage, and what runs for them there. |
| PDF Export | Download a branded report of deals, results, customers and changes. |
| Protection | |
| Deal Lockout | Margin protection: stop runaway discounts and stacking, and set your margin floor. |
| Rule History | Every change to a deal: who made it, when, from where and what changed. |
| Audit Log | A timestamped record of every change, activation, import and system event. |
| AI | |
| AI Intelligence | Connect Claude (or the AI set up in WordPress) for pack suggestions, deal gaps, copywriting and coaching. |
| Store Optimizer | Checks every published product without AI; with a Claude key it also writes improvements. |
| Connections | |
| Integrations | E-mail platforms, ad platforms, webhooks, AI assistants and other WooCommerce extensions. |
| REST API | API keys, the list of endpoints and how to connect other systems. |
| White Label | Your store's name and brand at checkout and in the e-mails your shoppers get. Shoppers never see GT BOGO Engine. |
| Import / Export | Back up your deals and settings, move them to another store or restore them. |
| Settings and health | |
| Settings | Cart behaviour, display, performance and analytics. |
| Advanced Settings | How deals and coupons combine and the largest share of the cart they may take together. |
| License | Activate and manage your PRO licence. |
| Health Monitor | Performance, security and setup checks, with one-click fixes. |
| Store Status | Store readiness, system health and database checks. |
| System Status | Server, WordPress and plugin details for support. |
| Documentation | This guide inside the plugin. |
Some screens show only with a PRO licence; agency-managed stores show the screens their agency allows.