Note: This is to inform you that these snippets are around 2 years old so these might not work for everyone.

Always show myCRED in WooCommerce

Home / Code Snippets / Always show myCRED in WooCommerce

By default, when a user reaches the WooCommerce checkout page, and they can not afford to pay for their order using points, the gateway disables itself and the option to pay with points will not be visible. This can cause an error message to show up if myCRED is the only enabled gateway. By adding the following code snippet to your wp-config.php file, the gateway will forced to always show on the checkout page, even if the user can not afford to use it. Transactions of course will still be declined if they can not afford to pay!


Add he following code snippets to your child theme's functions.php file or your wp-config.php file.

Leave a Reply

Spin to win points ?
Kindly get back to your previous orientation view... your wheel is rolling there...

Do you really like this awesome addon and wanna use on your site? click here to get it now ?
myCRED Fortune Wheel special offer unlocked!
You have a chance to win free tokens. Are you feeling lucky? Give it a spin.
* You can spin the wheel only once in a month.
* You can spin again any time by paying 500 points
* Once you pay for spin you are not able to refund it.
You must login to play mycred fortune wheel