• Resolved Belindo

    (@belindo)


    I’m setting up an internal webshop for my company where employees can ‘buy’ products with points (using the MyRewards plugin).

    In order to prevent them from buying a ’30 points’ product with only 29 ‘reward points’, I’m checking if I can use your plugin to prevent this.

    However, the plugin ignores 0’s in the ‘amount’ section: Ignored if set to zero.

    Is there a place in the code that does that, that I can disable?

Viewing 1 replies (of 1 total)
  • Thread Starter Belindo

    (@belindo)

    Found a workaround for this. I have now only set the Maximum amount to 0.1, added a flat rate shipping of 0.1 and included shipping in the order total for the MinMax plugin.

    Then I have set my shop to have no decimals for the currency.

    So now when you buy a 30 points product, the total becomes 30.1 due to shipping. If you then apply 30 points, the plugin will allow the order (because the total doesn’t exceed the max of 0.1). And because the decimals are set to 0, you don’t see a thing about this.

    It will just say; your order must be maximum 0,- points and it currently is 30,- points

    Yay 😀

    • This reply was modified 4 years, 6 months ago by Belindo.
Viewing 1 replies (of 1 total)

The topic ‘Only allow 0,- orders’ is closed to new replies.