Description
amhdi Coupons gives a percentage off a product category, a brand or the whole store with a coupon code, and one code can give different percentages to different products. For example, the code SALE can take 5% off the whole store and 10% off cookers.
The shopper sees the offer before buying: a notice under the product price shows the amount they save, the price after the discount and the code, and a badge on product images shows the percentage. The code is added to the cart automatically.
Discounts
- A percentage for all products, a category or a brand. WooCommerce Brands, Perfect Brands, YITH Brands and BeRocket Brands are detected automatically.
- Exclusions: leave out specific products or categories from a rule, for example the whole store except one category.
- One code, several percentages: reuse the same code across rules.
- No stacking: when a product qualifies for more than one discount, only the highest applies, even if the shopper enters several codes.
- A discount on a parent category also covers its subcategories. Variable products follow their parent product.
- Optional start and end dates per rule, with a clear status: live, scheduled or expired.
- Auto-apply: the code is added to the cart as soon as a qualifying product is added. A code the shopper removes stays removed.
What the shopper sees
- A notice under the product price with the amount saved, the price after the discount, the code (one click copies it) and the end date. When the product already has a sale price, the notice says “Extra X% off”.
- A badge on product images in the shop and category pages. When the product is already on sale, the sale badge shows the total discount (sale price and coupon together) instead of two badges.
- The cart: each discounted product shows its old and new price, and the side cart shows the discount and the total after it.
Your look, your words
- Appearance tab with a live preview: four colours with ready-made palettes, three notice styles (card, minimal, banner), size, border and corner roundness; and badge shape, position and size.
- Texts tab: edit every text the shopper sees, separately in Arabic, English and French. The store shows the text for the visitor’s language, so it works with multilingual plugins.
Works with your setup
- Block themes and classic themes. On block themes the badge is placed inside the product image block.
- Elementor widgets: Discount Notice and Discount Badge, with style controls, in their own “amhdi Coupons” category. They work in Elementor Pro Single Product and Loop Item templates.
- No Elementor needed: the notice is added to the product page automatically. Product templates built with Elementor Pro get it under the Product Price widget.
- Shortcodes for other page builders:
[get_discount_notice]and[get_discount_badge](addid="123"to pick a product). - Translation-ready, with Arabic and French included, and full right-to-left support.
- Compatible with WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.
The codes are “virtual” coupons: they are managed from the plugin’s screen and do not appear under Marketing → Coupons.
Installation
- In your dashboard go to Plugins → Add New, search for “amhdi Coupons”, then install and activate it. You can also upload the zip from Plugins → Add New → Upload Plugin.
- Make sure coupons are on: WooCommerce → Settings → General → “Enable the use of coupon codes”.
- Open amhdi Coupons in the admin menu and add your first rule: choose what it applies to, the percentage and the code, then save.
- Optional: pick colours and styles in the Appearance tab and adjust the wording in the Texts tab.
FAQ
Do I need Elementor?
No. Without Elementor the notice appears under the price on every product page that has an active discount, and the badge appears on product images.
How do I add the notice with Elementor?
Open your product template (or any page) in Elementor, search for “Discount Notice” or open the “amhdi Coupons” category in the widgets panel, and drag the widget where you want it. The Discount Badge widget works the same way.
Will the notice show twice if I place the widget?
No. When a page or template contains the Discount Notice widget, the automatic notice is turned off for that page.
What if a product is in a discounted category and a discounted brand?
It gets the highest of the two percentages, never both.
Can I change the texts?
Yes, in the Texts tab, for Arabic, English and French. Use placeholders such as {percent}, {code}, {price}, {saved} and {date}. Leave a field empty to use the built-in text.
How do I hide the badge?
Turn off “Show a badge on the product image” in the Settings tab. The plugin then adds no badge anywhere and leaves the WooCommerce sale badge unchanged.
Does it work with the Cart block?
Yes. The discount is applied and shown in the cart totals. The old and new price for each product is shown in the classic cart and in side carts that use WooCommerce’s standard mini-cart.
Do the codes have usage limits?
No. The codes are virtual, so they have no usage limits and are not counted in coupon reports, but they appear normally in order details.
Screenshots







Changelog
1.2.7
- Change: new plugin name, amhdi Category & Brand Coupons for WooCommerce.
- Change: removed the custom CSS box; use the Appearance options or your theme’s Additional CSS.
- Change: translations are delivered by translate.wordpress.org.
1.2.6
- Fix: on block themes the badge sits inside the product image instead of the corner of the page, and the sale badge shows the total discount.
- Fix: the Texts tab shows the built-in Arabic and French texts as placeholders.
- Change: requires WordPress 6.5 or later.
1.2.5
- Change: the coupon code sits above the “You save” box; “You save” is on top with the amount under it.
- Change: on right-to-left (Arabic) pages the currency shows on the left of the number in the notice.
- Fix: prices in the notice follow the notice colours even when the theme colours prices.
1.2.4
- Change: the “You save” box is a rounded rectangle with the label and amount on one line, in the badge text colour even when the theme colours prices.
- Fix: styles and scripts carry the file’s modified time in their version, so browsers and caches load changes right away.
1.2.3
- Restore: the Appearance tab — four colours with ready-made palettes, notice style (card, minimal, banner), size, border and corner roundness, badge shape, position and size, and custom CSS.
- Restore: tabbed admin page (Discounts, Appearance, Texts, Settings) with a live preview, and a sidebar item for each tab.
- Restore: the Texts tab — edit every customer-facing text in Arabic, English and French.
- Fix: turning off the shop badge now also stops the sale-badge total, the Elementor badge widget and the badge shortcode.
- New: the cart and side cart show each product’s old and new price, the discount and the total after it.
- Security: colours, choices and custom CSS are validated on save and again on output.
1.2.2
- Change: show amhdi Coupons as a standalone item in the main admin sidebar.
1.2.1
- Fix: preserve per-product percentages and prevent stacking when recalculating order coupons.
- Fix: reject conflicting coupon codes and preserve existing WooCommerce coupon restrictions.
1.2.0
- New: “All products” target, to discount the whole store with one rule.
- New: exclusions per rule — leave out specific products or categories.
- New: when a product already has a sale price, the badge shows the total discount (sale + coupon) in place of the sale badge, and the product page notice shows the total saving.
1.1.0
- New: Discount Notice and Discount Badge widgets for Elementor.
- New: automatic notice under Elementor Pro’s Product Price widget.
- New: English interface with Arabic and French translations; the default texts follow the site language.
- New:
[get_discount_notice]and[get_discount_badge]shortcodes. The 1.0 shortcodes keep working on sites that upgrade. - Settings and rules from 1.0 are carried over automatically.
1.0.0
- First release.
