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!

define( 'SHOW_MYCRED_IN_WOOCOMMERCE', true );

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

Last edited December 8, 2016

Leave a Reply