Skip to content

How to Reward Products and Categories with Cashback (Pro)

Cart rules reward the size of the basket. Product and category rules reward what is in it, which is how you push the lines you want to move.

Go to DevDiggers Plugins → Wallet → Cashback Rules and scroll past the cart table.

The product and category cashback rule tables

A product cashback rule row with its product, quantity, type and amount

Add Row under Product Cashback Rules, then fill in four fields.

  • Products is a searchable picker of your catalogue.
  • Quantity is the minimum the cart must hold before the rule fires. One means every purchase.
  • Cashback Type is Fixed or Percentage.
  • Cashback Amount is the value or the percentage.

Quantity is the interesting field. Set it to 2 or 3 and the rule becomes a volume offer: buy three, get cashback. The cart must reach the quantity, or nothing is paid.

A percentage rule is worked out against the line total, so quantity raises the reward as well as triggering it.

Add Row under Category Cashback Rules, then pick a category, a type and an amount. There is no quantity field here, so it applies to any purchase from that category.

A category cashback rule row with its category, type and amount

Categories are the efficient way to run this. One rule on Accessories beats thirty rules on thirty products, and it covers whatever you add tomorrow.

Both tables save with the Save button on the screen.

The Save button on the cashback rules screen

A product removed from the table has its rule deleted on save, so pulling a row is how you retire an offer. There is no enable and disable here, unlike the cart table.

Open the product and look for the cashback banner.

The cashback banner on a single product page

Shop pages carry the same line on each tile.

The cashback banner on a shop page product tile

Both banners quote a per-product figure with {cashback_amount}. They ignore the Quantity condition, so a rule that needs three in the cart still advertises on a page showing one.

A product rule beats a category rule. The plugin looks for a rule on the product first. It only looks at the categories when the product has none.

A product in two categories that both have rules takes the first category with one. The order of categories is not something you control, so where it matters, put the rule on the product.

Product and category cashback adds to cart, role, payment method and first-order cashback. Set Max Cashback Cap so the total cannot run away.