Support » Plugin: WooCommerce » Problem with a shipping update during check out

  • Resolved n381

    (@n381)


    Hello, I’m not regular Woocommerce user, yet during specific customization I came across non logical and semi functional method regarding shipping update update_order_review function.
    But yet before that function, there is inadequate selector applied in checkout.min.js where using select.shipping_method radio input value while in cart-shipping.php default template is actually ul list radio element not select, so triggering update function is not working.

    Any comments or suggestions, regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • n381

    (@n381)

    Woocommerce 3.55

    n381

    (@n381)

    checkout.min.js
    this.$checkout_form.on( 'change', 'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]', this.trigger_update_checkout );

    cart-shipping.php

    <ul id="shipping_method" class="woocommerce-shipping-methods">
    				<?php foreach ( $available_methods as $method ) : ?>
    					<li>
    						<?php
    						if ( 1 < count( $available_methods ) ) {
    							printf( '<input type="radio" name="shipping_method[%1$d]" data-index="%1$d" id="shipping_method_%1$d_%2$s" value="%3$s" class="shipping_method" %4$s />', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ), checked( $method->id, $chosen_method, false ) ); //
    n381

    (@n381)

    To update,
    the above checkout.min.js is updating 1 file – html-order-shipping.php with class selector select element that wasn’t obvious to me as this template file is actually the order creation template.
    Still, on the website I working on, are some other functioning problems confronting update shipping and totals, specifically related to geo ip features by other plugin, here is the support request on that

    https://wordpress.org/support/topic/regarding-possible-conflict-on-shipping-update/

    Stef

    (@serafinnyc)

    Are you editing a core file inside the includes folder of a theme or the plugin?

    n381

    (@n381)

    Hello, well I’ve asked about accuracy of .js files in /assets and files /templates , and after verifying present data operating, I’ve moved toward another problem as described.

    • This reply was modified 8 months ago by n381.
    n381

    (@n381)

    Btw there are numerous different types of problems around net forums regarding cart and checkout updating shipping and totals.

    • This reply was modified 8 months ago by n381.
    • This reply was modified 8 months ago by n381.
    Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    @n381 If you have a direct bug that can be replicated, you can add it to the GitHub repo here: https://github.com/woocommerce/woocommerce/issues

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.