• Resolved pmanasi

    (@pmanasi)


    Hi,

    Very useful plugin! Thank you!

    But am facing one issue whenever I switch from COD to Online payment method or vice-versa COD extra fees doesn’t get updated, am able to see COD extra fee even if I select the online payment method. Review order does not get refreshed.

    Please help.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi pmanasi,

    I just tested in your dev site and I can see the order review getting refreshed and the additional fee to adjust properly. Are you sure that’s the case?

    Best Regards

    edinstvennyi

    (@edinstvennyi)

    Good afternoon @fullstackhouse!

    Same problem, COD fee applies even when customer pay through PayPal or Bank transfer. Tried to reinstall, reactivate, clear cache – the same result. WP+Woo updated.

    edinstvennyi

    (@edinstvennyi)

    UPD: COD fee applies to flat rate shipping instead of COD payment method. Have no idea why it’s happening.
    For COD i use only 1 flat rate, another shipping methods configured through Woocommerce Advanced Shipping by YITH.

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi,
    For anyone that facing this issue, please downgrade to 1.4.9.1 until this is fixed.

    Best Regards

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Please update to 1.4.9.3. The issue should be fixed now.

    Let me know if any problem.

    Best Regards

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi,

    Any update on this?

    Hi,

    I’m using 1.4.9.3 (install today).
    I think this issue hasn’t fixed yet. When shipping payment method is changed from COD to Bank transfer, the “Cash on delivery” is not disappear or return to 0.
    Total payment only update when the shipping address is changed.

    Have a nice day,
    Your plugin is great (it saved my work today, really).

    • This reply was modified 7 years, 8 months ago by vietpp.
    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi vietpp,

    I thinks that’s unrelated. The update_checkout trigger is not getting triggered in your case. Please provide me a link of your checkout page, so I can look into this.

    Best Regards.

    Hi,

    Here is the link: https://sanhangnhapkhau.com/thanh-toan/
    (sorry it’s not in English)

    “Cash on delivery” is updated if the address is changed. When payment method is changed, “Cash on delivery” will not be updated.

    I’ve tried to reinstall Woocommerce to upgrade to latest version but no help.

    Thank you for your help.

    Plugin Author FullStack-ing

    (@fullstackhouse)

    The reason that you have this issue is that your theme has a javascript error. ( It’s probably a js enqueue priority issue ).
    If you open the console you’ll see it.

    ajax-auth-script.js?ver=4.9.7:123 Uncaught TypeError: jQuery(...).validate is not a function

    the file is here: wp-content/themes/thanhnh-OSv3/js/ajax-auth-script.js

    If you fix this error, our plugin will work as it should. If you cannot figure it out you can always hire a developer to do this for you.

    Best Regards

    • This reply was modified 7 years, 8 months ago by FullStack-ing.

    Hi,

    The js error is fixed but… nothing change šŸ™
    Any other suggestion?

    Thank you.

    Plugin Author FullStack-ing

    (@fullstackhouse)

    That’s strange. Maybe the duplicate id’s error cause this.

    Try to add this in your functions.php

    
    add_action( 'wp_footer', 'enqueue_smartcod_js', 100 );
    
    function enqueue_smartcod_js() {
    	ob_start(); ?>
    	<script type="text/javascript">
    	jQuery( document ).ready( function($) {
    		$( 'body' ).on( 'change', 'input[name=payment_method], #shipping_state, #billing_state', function() {
    			$( 'body' ).trigger( 'update_checkout' );
    		});
    
    		$( 'body' ).on( 'focusout', '#billing_postcode, #shipping_postcode, #shipping_city, #billing_city', function() {
    			$( 'body' ).trigger( 'update_checkout' );
    		});
    	})
    	</script>
    	<?php
    	ob_end_flush();
    }
    

    IT WORKKKKKKKKKKKKKKKKKKKKKKKKKKKKS ^|^
    Thank you so much.

    Looking forward to your new update to solve the problem with “Cash on delivery” title and my site is completed.

    Have a nice day.
    VietPP

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Payment method selection issue’ is closed to new replies.