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.

Note: We have a WooCommerce addon name: "myCred WooCommerce Plus" having some great features:
  • Award Coupons
  • Restrict Products
  • Point History
  • Partial Payments

Leave a Reply