0

I am looking for a way to reset the usage of a cart price rule in magento.

The scenario is this:

  • we have a subscription service called 'the buyer's club'
  • this service uses two rules
  • first rule allows them to purchase any of the buyers club packages at the monthly subscription price at any time. This rule works fine as it doesn't matter how many times it is used.
  • Second rule is set so that they can collect any of the monthly packages, current or previous for free, as they have paid their subscription.

This has been working ok but the process of making a new rule, checking it for error (as cant duplicate rules) then generating codes and all the other things involved with the delivery are causing errors to creep in on delivery day.

In order to avoid this i want to create a rule that allows members of 'the buyer's club' customer group only, to collect 1 monthly bundle for free (1 use per customer). but then at the start of the next month cycle i need to have a way to reset that codes usage data so it can then be used again. Is there a way to do this as it would then save a whole heap of trouble.

My monthly process would then be, list that months bundle at my leisure (set to coming soon/out of stock) Keep the buyers club customer group up to date. then at end of month, put that bundle to in stock, reset the code and send a standard notification email to the current subscribers.

I have tried searching the usual channels for information or extensions that can do this but i have had no luck

I haven't seen anything on line using my google fu that covers an ability to do this but surely there must be a way to reset the used flag on the rule.

Any help is greatly appreciated.

  • As a note, i see thee is reset 'button' in the cart price rules page in the admin panel, currently though when i press it nothing happens and i can't find information on what this button is supposed to do, i assume it resets all the feilds in the rule back to their default, basically washing it clean to be re-made....or does it actually reset the usage data like i am asking about? – Neil Woodman Jan 21 '23 at 22:45

0 Answers0