
Affiliate Box for Amazon puts a clean, responsive product box anywhere on your site. You build a box once on the Product Boxes screen and paste one short line into a post — [affiliate_box box="a7f3k2c9"]. The box shows the product image, title, price, star rating and a clearly labelled affiliate link.
Because the product lives in one place rather than in the post text, the same box can appear in twenty posts and still be changed once. That is also what makes it possible to keep the price honest: a price written into a post is a price nobody ever revisits.
Connect your Amazon Creators API credential and the plugin fills the box for you: paste an ASIN, press Fetch from Amazon, and title, image, price and rating arrive from Amazon. Without a credential everything still works — you type the values yourself.
The plugin is built for Amazon Associates. You enter a separate Associates Tracking ID for each marketplace you are enrolled in, point a box at any store with the marketplace attribute, and the right ID is appended to every outbound link — falling back to the marketplace you nominate whenever a target store has none of its own.
What you get
- Product Boxes — search Amazon or paste an ASIN, and the fields fill themselves. Save the box, copy its one-line shortcode, and change the price in one place for every page that shows it.
- Amazon API — the Creators API fills title, image and price from an ASIN or a keyword search. One credential per region, stored encrypted.
- Marketplaces — one Associates Tracking ID per store, with a warning when an ID does not match the store it is filed under.
- A block and a widget — add Affiliate Box in the editor and pick your box from a list; the real box appears while you choose. For sidebars there is a widget as well, defaulting to the narrow layout.
Features
- A block for the editor — no key to copy and nothing to type. The
[affiliate_box]shortcode still works everywhere it always did: the classic editor, Elementor, and the shortcode or text widget of every common page builder. - Every active Amazon Associates marketplace (22 stores): US, CA, MX, BR, UK, IE, DE, FR, IT, ES, NL, BE, SE, PL, TR, AE, SA, EG, IN, SG, JP, AU.
- Per-marketplace ASINs, images and titles — the same product usually carries a different ASIN in each store.
- Star ratings and review counts, typed in by you. Amazon accepts a request for them and answers without them, so no plugin can fill these reliably – see the FAQ.
- Guaranteed fallback: a marketplace with no Tracking ID of its own borrows the one from your fallback marketplace — which store that is, you choose. Start on amazon.in alone and add the United States later without disturbing anything.
- Five layouts, each named with the size it takes: In post (640 px), Sidebar (400 px), Compact (640 × 78 px) — a single line for naming a product without cutting the paragraph in half — Button only (auto × 38 px), just the call to action for after a paragraph that already named the product, and Hero (960 px), wide with a bigger picture and a line in small capitals above the name for the pick at the top of a review.
- Three image sizes, colour pickers for button, background and title, customisable button text.
- Built-in FTC affiliate disclosure, on by default.
- Outbound links carry
rel="nofollow noopener sponsored". - The stylesheet loads only on pages that use the shortcode.
- Fully responsive, respects
prefers-reduced-motion, keyboard focus visible throughout. - Fully translatable (text domain
doozly-affiliate-box-for-amazon).
Shortcode reference
Every attribute is optional, but a useful box needs at least asin (or url) plus title and image. Anything left empty falls back to the value set under Settings Affiliate Box.
In almost every case you want the short form: [affiliate_box box="a7f3k2c9"] shows a box you built on the Product Boxes screen, and the Shortcode column there hands you the finished line. The attributes below let a post carry the product data itself instead; they are still read, so older posts keep working, but nothing needs writing by hand any more.
With box set, the product details always come from the saved box. Only layout, image_size, bg_color and button_text can be overridden per post — otherwise the price in a post would go stale again, which is the problem the saved box solves.
Attribute
Values
Default
Description
box
Key of a saved box, e.g. a7f3k2c9
(empty)
Shows a box built on the Product Boxes screen. With this set, every product detail comes from the saved box and only layout, image_size, bg_color and button_text are read from the shortcode. The Shortcode column on that screen hands you the finished line.
asin
Amazon ASIN, e.g. B08N5WRWNW
(empty)
Product ID. The link is built as https://<marketplace>/dp/<asin>?tag=<your-id>.
url
Full Amazon URL
(empty)
Use instead of asin for search pages or non-standard links. Your Tracking ID is appended unless the URL already carries one.
title
Plain text
(empty)
Product title, also used as the image alt.
image
Image URL
(empty)
Product image. Use your own copy or a permitted Amazon image URL.
price
Plain text, e.g. $19.99
(empty)
Displayed price. Type it, or let the Amazon API fill it.
original_price
Plain text
(empty)
Crossed-out former price. Shown only together with savings_pct.
savings_pct
Number, e.g. 25
(empty)
Discount badge, in percent.
rating
0–5, e.g. 4.5
(empty)
Star rating above the price. Empty means no stars.
rating_count
Number
(empty)
Review count shown next to the stars.
brand
Plain text
(empty)
Brand line above the title.
button_text
Plain text
Settings value, or “Buy on Amazon”
Text on the call-to-action button.
layout
post, sidebar, compact, hero
Settings default
post 640px horizontal. sidebar 400px, stacked and centred. compact a single 640 × 78px line. hero 960px with a bigger picture.
eyebrow
plain text
(empty)
A short line in small capitals above the product name — Our pick. Shares a line with the brand when both are filled in; compact leaves it out.
image_size
small, medium, large
medium
90px / 140px / 200px on desktop; scales down on mobile.
bg_color
Hex colour, e.g. #f7f7f7
Settings value
Box background, this box only.
marketplace
Marketplace key, e.g. de
Settings default
Which Amazon store the link points to.
asin_de, image_de, title_de, price_de, …
Per store
(empty)
Store-specific values. The one matching the box’s marketplace wins over the plain attribute.
Examples
In-post box:
[affiliate_box asin="B08N5WRWNW" title="Echo Dot (4th Gen)" image="https://example.com/echo-dot.jpg" price="$29.99" rating="4.5" rating_count="1204"]
Sidebar widget:
[affiliate_box asin="B08N5WRWNW" title="Echo Dot (4th Gen)" image="https://example.com/echo-dot.jpg" price="$29.99" layout="sidebar"]
A saved box, price kept in one place — the usual way:
[affiliate_box box="a7f3k2c9"]
German store, large image, discount badge:
[affiliate_box asin="B08N5WRWNW" title="Echo Dot (4. Generation)" image="https://example.com/echo-dot.jpg" price="29,99 €" original_price="39,99 €" savings_pct="25" marketplace="de" image_size="large"]
A search result page instead of a product:
[affiliate_box url="https://www.amazon.com/s?k=smart+speaker" title="Smart speakers" image="https://example.com/speakers.jpg" button_text="Browse on Amazon"]
Premium version
A Premium version is available at doozly.link. It adds bestseller lists, comparison tables, review boxes carrying your own photo and score, IP-based geotargeting — every affiliate link rewritten to the Amazon store closest to the visitor — rotation, which shows a different one of your saved boxes at the same spot each day, reports on how often each box was seen and clicked, and a nightly refresh that keeps saved prices current. This free plugin is complete on its own and never asks for a licence key. Each of these features has a tab in it as a preview, saying what the feature does — nothing in the free plugin is locked, because the code for them is not part of it.
Product images
The plugin stores an image address and renders it. It cannot tell where that address came from, and it does not try to.
Pressing Fetch from Amazon or picking a search result fills the field from the Amazon Creators API, which is the path Amazon’s Associates Operating Agreement intends for product images. You can also type an address yourself — the field accepts any URL, because a product box is often built before a credential exists, or from your own photography.
Which images you are entitled to display is between you and Amazon. The Associates Operating Agreement limits it, that agreement is between Amazon and you as the account holder, and the plugin is not a party to it. Anything you enter is published on your site under your responsibility.
Disclaimer
Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates. This plugin is an independent product and is not affiliated with, endorsed by, or sponsored by Amazon.
External services
This plugin connects to the Amazon Creators API to fetch product data — title, image, price, and where Amazon supplies them the star rating and review count — for an ASIN or a keyword search you enter in the admin. This happens only when you press Fetch from Amazon or Search, and only after you have entered your own Amazon credential. Without a credential the plugin makes no external request at all.
What is sent: the ASIN or search term you typed, the marketplace you selected, your Associates Tracking ID, and your credential, which Amazon needs to authorise the call. No visitor data and no data about your site is sent, and nothing is sent when a page is viewed on the front end — the box renders from values already stored on your server.
The API is provided by Amazon.com, Inc. Endpoints: https://creatorsapi.amazon for product data, and https://api.amazon.com, https://api.amazon.co.uk or https://api.amazon.co.jp to obtain an access token for your region. Terms of service: Amazon Associates Programme Operating Agreement. Privacy policy: Amazon Privacy Notice.
The plugin connects to no other service and sends nothing to the plugin author.
One clarification, so nothing here reads as hidden. The Geotargeting tab in this plugin is a preview of a Premium feature. That feature asks your own server for the visitor’s country first and, only where the server cannot say and you leave the lookup switched on, a free IP-to-country service (api.bigdatacloud.net, failing over to ipwho.is). It belongs to the Premium version, which is a separate plugin: this plugin contains no code that contacts those services, and nothing on the preview makes a request.
Screenshots

The Affiliate Box block in the editor — choose one of your saved boxes and the real box appears while you choose, drawn by the plugin rather than an imitation of it.

The five layouts, each named with the size it takes: In post, Sidebar, Compact, Button only and Hero.

Product Boxes — one copy that several posts share, each row with its shortcode, its own Refresh, how long ago Amazon last answered, and which posts use it.

The box editor. Search Amazon or paste an ASIN and the fields fill themselves; the preview is drawn by the same renderer a post uses.

A product box and a Compact one-liner in a published post.