[BR] Sell/Buy Resources with Credits

Sales [BR] Sell/Buy Resources with Credits 1.1.6

No permission to buy ($20.00)
-Improved the stability of addons;

-Fixed conflicts with other addons that have the same functionality.
[Bxen.net] [BR] Sell/Buy Resources with Credits 4651
[IMPROVEMENT] Added auto-clear of when discount is set to 0.discount_date
[IMPROVEMENT] Replaced with consistently across all files (Entity, Controller, Cron).time()\XF::$time
[UX] Improved discount form labels and descriptions for clarity. Used new phrase titles () to avoid conflict with previously customized phrases.mjrcp_price_after_discount

[Bxen.net] [BR] Sell/Buy Resources with Credits 4615

[Bxen.net] [BR] Sell/Buy Resources with Credits 4616
🎉 New Features

1. User group-based discount permission control

  • Added a new multi-select option in the Admin Control Panel: “User groups eligible for discounts”
  • Administrators can choose one or more user groups to receive the global discount
  • Supports checking both the primary user group and secondary user groups
  • If no user group is selected, all users can receive the discount (same as the original behavior)

2. Smart discount display logic
  • Users with permission: show the original price with strikethrough + discounted price (same as the existing behavior)
  • Users without permission:
    • Resource list: only show the original price (discount is hidden)
    • Actual purchase: user pays the original price (prevents discount bypass)
    • User experience: discount information is automatically hidden to avoid confusion

3. Upgrade prompt feature
  • Displays a noticeable prompt in the resource list for users without discount permission
  • Prompt content: 🎁 Upgrade to a premium account to get X% off purchases (see the site example for details)
  • Prompt position: in the meta information row (after author, date, and category)
  • Prompt style: orange text + gift icon, eye-catching but not intrusive
  • Dynamic display: automatically reads the discount percentage configured in the Admin Control Panel

Use cases
  • Membership tier system: provide exclusive discounts for VIP / SVIP members
  • Promotional campaigns: temporarily enable discounts for specific user groups
  • Points incentive: encourage users to upgrade to higher membership tiers
  • Flexible marketing: offer differentiated pricing for different user groups
Back
QR Code
Top Bottom