Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total Amount Calculation issue #21

Closed
RohitRD31 opened this issue Oct 9, 2018 · 3 comments
Closed

Total Amount Calculation issue #21

RohitRD31 opened this issue Oct 9, 2018 · 3 comments

Comments

@RohitRD31
Copy link

If used Woowallet with smartcoupons, with cashback setting.

it gives calculation total error for product . check images.
screenshot 68
screenshot 69

@malsubrata
Copy link
Owner

@RohitRD31
There is an error with WooCommerce smart coupon extension. Please use below code to theme function.php file to fix that bug.

add_action('wp_loaded', 'remove_smart_coupon_hook', 100);
if (!function_exists('remove_smart_coupon_hook')) {

    function remove_smart_coupon_hook() {
        if (!is_admin() && class_exists('WC_Smart_Coupons')) {
            remove_action('woocommerce_after_calculate_totals', array(WC_Smart_Coupons::get_instance(), 'smart_coupons_after_calculate_totals'));
        }
    }

}

@RohitRD31
Copy link
Author

RohitRD31 commented Oct 9, 2018 via email

@RohitRD31
Copy link
Author

Hello @malsubrata ,

Recently we Enabled Coupon as cashback from woo smart coupons and saw that this above issue is back again.

Check the screenshot here we added a 100% cashback coupon upto Rs 500 and as u can see the cashback amount is added in total amount.

Please reply soon

Regards,
Rohit.

Screenshot (69)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants