0

I want to create a restriction on a shipping method that it can only be used 1 hour after the most recent use by a customer.

0

You could do this by hooking into the class Magento\Shipping\Model\Shipping class's collectRates() function

Just store in a database somewhere or something when a customer uses it, then compare that (plus one hour) to the current timestamp.

If the current timestamp is bigger, then show the method.

1
  • Great can i get more details about your idea ? Jan 31 '18 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.