

The goal bar in the block cart: progress to the next reward and products that close the gap.
RewardCrate is a free cart goal bar for WooCommerce. It shows shoppers
how far they are from the next reward, such as free shipping, a free gift or a
discount, and suggests the products that close that exact gap, with a
one-click add button right inside the bar. When a goal is reached, the reward
applies by itself.
Everything runs on your own WordPress site. There is no SaaS, no account to
create, no API key and no per-order fee.
[rewardcrate_goal][rewardcrate_goal] shortcode.The JavaScript in the build/ folder is compiled from the plugin’s own
human-readable source, which ships inside the plugin:
build/admin.js from resources/js/admin/index.tsx (the settings screen)build/widget.js from resources/js/widget.ts (the bar in classic carts, the mini-cart widget and the sticky bar)build/blocks.js from resources/js/blocks/cart-goal.tsx (the bar in the Cart and Checkout blocks)build/blocks-editor.js from resources/js/blocks/editor.tsx (the Cart goal block in the editor)build/goal-bar-editor.js from resources/js/blocks/goal-bar-editor.tsx (the standalone goal bar block in the editor)build/coupon-labels.js from resources/js/blocks/coupon-labels.ts (goal discount labels in the Cart and Checkout blocks)Block metadata lives in resources/blocks/ and styles in resources/css/.
No third-party library is bundled: WordPress and WooCommerce packages are
loaded from the site at runtime.
To rebuild the files, install Node.js 20 or newer, then run npm install
and npm run build in the plugin folder. The build uses @wordpress/scripts
(webpack) with the included webpack.config.js.