Shopper Rewards

描述

Shopper Rewards is a lightweight and secure plugin that motivates your customers to add more items to their cart by showing them how close they are to unlocking a surprise reward — such as a discount, free shipping, or free products.

This plugin seamlessly integrates with the cart, checkout, and thank-you pages, offering a dynamic experience that boosts conversions and customer engagement.

✨ Features

  • Dynamic Progress Bar – Displays how much more the customer needs to spend to unlock a reward.
  • Surprise Discount or Free Shipping – Automatically apply or show a reward once the spending threshold is reached.
  • Custom Messages & Labels – Fully customizable messages before and after the unlock.
  • Thank-You Page Integration – Show personalized badges or WhatsApp contact buttons after checkout.
  • Responsive & Lightweight – 100% responsive design with no unnecessary bloat.
  • Secure & Compatible – Built following WordPress and WooCommerce coding standards.

🎯 Purpose

The goal of Shopper Rewards is to increase average order value (AOV) by motivating users to reach a target threshold in their shopping cart.
Once a customer adds enough items to meet the target, they instantly unlock a surprise reward, creating a fun and rewarding shopping experience.

Security Notes

  • All user inputs are sanitized using WordPress functions (sanitize_text_field, esc_html, esc_attr, wp_kses_post).
  • Nonces are used for form submissions to prevent CSRF attacks.
  • Proper escaping and translation functions (esc_html__, esc_attr__, etc.) are used throughout.
  • No external API calls or user data tracking is performed.

Credits

Developed by Maryam Kamal
A learning project focused on practical WooCommerce plugin development and security best practices.

屏幕截图

  • Settings Page – Messages & Labels Tab
    Customize messages shown before and after unlocking rewards.

  • Cart Page – Progress Bar Display
    Shows a visual progress indicator with remaining amount until a surprise reward is unlocked.

  • Cart Totals – Surprise Discount Applied
    Displays a surprise discount line below subtotal and total once threshold is met.

安装

  1. Upload the plugin folder to /wp-content/plugins/shopper-rewards/
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WooCommerce Shopper Rewards Settings to configure your threshold, reward type, and display options.
  4. Set your custom messages, labels, and progress bar styles.

常见问题

Does this plugin work with any theme?

Yes, Shopper Rewards uses flexible WooCommerce hooks and fallback display methods to ensure compatibility with most WooCommerce-ready themes.

Can I customize the messages?

Absolutely. All messages (before unlock, after unlock, labels, etc.) can be customized from the plugin’s Messages & Labels settings tab.

How are rewards applied?

You can set rewards as free shipping, percentage-based discounts, or custom messages shown at checkout.

Does it support translation?

Yes. The plugin is translation-ready and follows WordPress i18n standards. Place your .po and .mo files in the /languages/ folder.

Is it secure for production sites?

Yes, the plugin follows all WordPress Plugin Security Guidelines — including proper escaping, sanitization, and nonces for safe data handling.

评价

此插件暂无评价。

贡献者及开发者

「Shopper Rewards」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Shopper Rewards」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.2

  • Initial release
  • Added dynamic progress bar on cart page
  • Added customizable messages and labels
  • Added thank-you WhatsApp badge integration
  • Fully compatible with WordPress 6.7 & WooCommerce 9.x
  • Security hardened following WordPress coding standards