Help for Coding issue
-
Hi, I want to show an error message for the partial payment gateway. Now I tried these lines of code. But it is not working! (already disabled COD for partial payment). Please tell me the exact function by which my code will work……
////////////////////////////////////////////////////////
add_action( ‘woocommerce_review_order_before_payment’, ‘purnendu_cod_message_on_checkout’);
function purnendu_cod_message_on_checkout() {
$cartvalue = WC()->cart->total;
if ($cartvalue>=600)
{
if (is_enable_wallet_partial_payment())
{
echo “Sorry COD is not available for Wallet Payment”;
}
else {
echo “Hurray! Your order is COD Eligible”;
}
}
else {
echo “COD IS NOT AVAILABLE”;
}
}The page I need help with: [log in to see the link]
- The topic ‘Help for Coding issue’ is closed to new replies.