Free MODX extra

MODX affiliate extra: AVDEB Products

Show AVDEB products on a MODX site with the AvdebProducts, AvdebProduct and AvdebButton snippets, or let editors type {avdeb-products …} tags into any resource, even in rich text editors. Your referral code and display defaults live in System Settings, and products are cached in the MODX cache.

  • v1.0.0
  • MODX Revolution 3.0+
  • PHP 8.1+
  • Free

Why use AVDEB Products on MODX

  • Snippets or tags

    Snippet calls for templates and chunks, plain {avdeb-…} tags for editors, and &tpl chunks when you want your own markup.

  • System Settings

    Referral code, secret key and every display default in the avdeb namespace. The secret key can also come from an environment variable.

  • MODX cache

    Products are cached in their own cache partition with a one-week stale fallback. Clearing the site cache refreshes them.

  • Your referral code on every link

    Paste a secret key or referral code once; every product link earns you 5% commission.

  • Honest links

    Referral links get rel="sponsored", with an optional affiliate disclosure for FTC rules.

  • Private by default

    No cookies, trackers or third-party scripts. Your secret key stays on the server.

  • Fast and resilient

    Products are cached per query; if AVDEB is unreachable the last good copy is served for a week.

  • Four layouts

    Grid, carousel, list (“shop the post”) and spotlight. Single products as a compact card, horizontal card or hero with your own badge and note.

How to add affiliate products to MODX

Extras → Installer → Upload a package → avdeb-1.0.0-pl.transport.zip
  1. 1

    Install the extra

    Download avdeb-1.0.0-pl.transport.zip from GitHub, then in the manager open Extras → Installer, choose Upload a package (the arrow next to Download Extras) and install it.

  2. 2

    Connect your affiliate account

    System → System Settings, namespace avdeb: paste your referral code into avdeb.ref_code, or a secret key into avdeb.api_key (or set the AVDEB_SECRET_KEY environment variable). Layout, columns, colours and more are set here too.

  3. 3

    Add products

    Call [[!AvdebProducts? &url=`…`]] in a resource, template or chunk, or type {avdeb-products …} in the content. Paste any avdeb.com creator, category or product link.

Where products can go: Snippets in resources, templates and chunks · {avdeb-…} tags in content.

Examples

Snippets

[[!AvdebProducts? &url=`https://avdeb.com/creators/your-slug/` &heading=`From my shop`]]
[[!AvdebProducts? &tag=`stickers` &layout=`carousel` &columns=`4` &limit=`10`]]
[[!AvdebProduct? &product=`https://avdeb.com/store/cat-sticker/` &variant=`hero` &badge=`Editor's pick`]]
[[!AvdebButton? &href=`/creators/your-slug/` &label=`Visit my shop` &variant=`outline`]]

Tags in content

{avdeb-products https://avdeb.com/category/stickers/ layout="carousel"}
{avdeb-product https://avdeb.com/store/custom-qr-code-keychain/ variant="hero"}

A plugin turns tags into products, so they work in TinyMCE and other editors that escape MODX tags.

Your own chunk

[[!AvdebProducts? &tag=`stickers` &limit=`4` &tpl=`myProductTpl`]]
<!-- myProductTpl: <li><a href="[[+href]]" rel="[[+rel]]">[[+title]] — [[+price]]</a></li> -->

Paste any avdeb.com creator , category or product link — the source is detected automatically.

Earn commission from your MODX site

  • 5%

    of every sale you refer

  • 30 days

    cookie window

  • $50

    minimum payout, monthly via PayPal

  • Free

    to join, open worldwide

The extra works without an account, but links only earn once you're an approved affiliate. Design stickers or 3D prints? Apply as a creator and show your own shop instead.

MODX extra FAQ

Is there an affiliate extra for MODX?

Yes. AVDEB Products is a free MODX 3 extra that embeds products with your affiliate referral code, through snippets or {avdeb-products} tags in any content.

Should I call the snippets cached or uncached?

Uncached ([[!AvdebProducts]]). The extra caches products itself, so pages stay fast while prices stay current.

Does it work with TinyMCE or other rich text editors?

Yes. Editors can type {avdeb-products …} tags, which survive rich text editors that escape MODX tags; the plugin turns them into products when the page renders.

What happens when I uninstall it?

Uninstalling removes the snippets, the plugin and the files. The system settings stay, so a reinstall keeps your referral code.

How much can I earn as an AVDEB affiliate?

5% of every completed sale you refer, with a 30-day cookie and no cap. Commissions are paid monthly via PayPal in USD once your balance reaches $50. Joining is free and open worldwide; approval usually takes under 24 hours.

Secret key or referral code — which should I use?

Both credit your sales. A secret key (avdeb_sk_…) adds your code automatically, shows who you're connected as, and allows up to 48 products per embed; it stays on the server. A referral code alone allows up to 12 products. Never put a secret key in page content.

Also available for