Free Craft CMS plugin
Craft CMS affiliate plugin: AVDEB Products
Add AVDEB products to Craft templates with avdebProducts(), avdebProduct() and avdebButton(), or let authors type tags straight into CKEditor. Settings live in project config, so the secret key can come from your .env file.
- v1.0.0
- Craft CMS 5.0+
- PHP 8.2+
- Free
Why use AVDEB Products on Craft CMS
-
Headless-friendly
craft.avdeb.data() returns product cards for your own markup; turn the stylesheet off and keep full control.
-
Environment-aware
Secret key and referral code from AVDEB_SECRET_KEY / AVDEB_REF_CODE, or per environment in config/avdeb.php.
-
Craft's cache
Products are cached in Craft's cache (file, database or Redis) with a one-week stale fallback. Clear them under Utilities → Caches.
-
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 Craft CMS
composer require avdeb/craft-avdeb && php craft plugin/install avdeb - 1
Install the plugin
Run composer require avdeb/craft-avdeb, then php craft plugin/install avdeb.
- 2
Connect your affiliate account
Settings → Plugins → AVDEB Products: enter $AVDEB_SECRET_KEY (and put the key in .env), or your referral code. Every setting can also be set per environment in config/avdeb.php.
- 3
Add products
Call {{ avdebProducts({ url: '…' }) }} in a template, or output a rich text field with {{ entry.body|avdeb }} so authors' tags render.
Where products can go: Twig templates · CKEditor / rich text fields.
Examples
Twig
{{ avdebProducts({ url: 'https://avdeb.com/creators/your-slug/', heading: 'From my shop' }) }}
{{ avdebProducts({ tag: 'stickers', layout: 'carousel', columns: 4, limit: 10 }) }}
{{ avdebProduct('custom-qr-code-stickers', { variant: 'hero', badge: "Editor's pick" }) }}
{{ avdebButton({ href: '/creators/your-slug/', label: 'Visit my shop', variant: 'outline' }) }} Tags in rich text
{# authors type {avdeb-products https://avdeb.com/category/stickers/} in CKEditor #}
{{ entry.body|avdeb }} Paste any avdeb.com creator , category or product link — the source is detected automatically.
Earn commission from your Craft CMS site
-
5%
of every sale you refer
-
30 days
cookie window
-
$50
minimum payout, monthly via PayPal
-
Free
to join, open worldwide
The plugin 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.
Craft CMS plugin FAQ
Is there an affiliate plugin for Craft CMS?
Yes. AVDEB Products is a free Craft CMS 5 plugin that embeds products with your affiliate referral code, in Twig templates or CKEditor content.
How do I keep the secret key out of project config?
Put AVDEB_SECRET_KEY in .env and enter $AVDEB_SECRET_KEY in the settings field, or set apiKey in config/avdeb.php with App::env().
Can I write my own markup?
Yes. craft.avdeb.data() returns the product data, and the stylesheet can be turned off in the settings.
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.
