• Resolved Joe

    (@joecole1)


    Given the numerous other tickets with shipping method issues, I suspect this is just another “unsupported” shipping method.

    I am using Easy Ship (https://ww.wp.xz.cn/plugins/easyship-woocommerce-shipping-rates/)

    It shows up just as Easy Ship in the plugin’s shipping method selection. However, when I select auto coupon or manually enter the coupon code, it says “The coupon is not valid for the currently selected shipping method.”

    The log below is from loading the cart, trying to manually apply the coupon, and then going to the checkout page.

    2018-12-19T15:51:17+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /wp-admin/admin-ajax.php ========
    2018-12-19T15:51:49+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== GET: frontend /cart/ ========
    2018-12-19T15:51:49+00:00 DEBUG woocommerce_check_cart_items   WJECF_Autocoupon::get_all_auto_coupons   Autocoupons: worldship
    2018-12-19T15:51:49+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=wc_stripe_get_cart_details ========
    2018-12-19T15:51:52+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=apply_coupon ========
    2018-12-19T15:51:53+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: frontend /cart/ ========
    2018-12-19T15:51:53+00:00 DEBUG woocommerce_check_cart_items   WJECF_Autocoupon::get_all_auto_coupons   Autocoupons: worldship
    2018-12-19T15:51:53+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=wc_stripe_get_cart_details ========
    2018-12-19T15:51:53+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=get_refreshed_fragments ========
    2018-12-19T15:51:58+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== GET: frontend /checkout/ ========
    2018-12-19T15:51:58+00:00 DEBUG woocommerce_check_cart_items   WJECF_Autocoupon::get_all_auto_coupons   Autocoupons: worldship
    2018-12-19T15:51:59+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=wc_stripe_get_cart_details ========
    2018-12-19T15:51:59+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=update_order_review ========
    2018-12-19T15:51:59+00:00 DEBUG woocommerce_after_calculate_totals   WJECF_Autocoupon::maybe_update_matched_autocoupons   Situation hash has changed from  to dde8e9
    2018-12-19T15:51:59+00:00 DEBUG woocommerce_after_calculate_totals   WJECF_Autocoupon::get_all_auto_coupons   Autocoupons: worldship
    2018-12-19T15:51:59+00:00 DEBUG woocommerce_coupon_is_valid   WJECF_Autocoupon::update_matched_autocoupons   Auto coupons that should be in cart: 
    2018-12-19T15:51:59+00:00 DEBUG woocommerce_coupon_is_valid   WJECF_Autocoupon::update_matched_autocoupons   Coupons in cart: 
    2018-12-19T15:52:00+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== POST: ajax /?wc-ajax=wc_stripe_get_cart_details ========
    2018-12-19T15:52:02+00:00 DEBUG init   WJECF_Debug::log_the_request   ======== GET: admin /wp-admin/admin.php?page=wc-status&tab=logs ========

    The coupon itself “worldship” is an auto coupon for 5 off the cart, and the only other option is that it must be shipping method Easy Ship.

    Here is a screenshot of the cart – https://imgur.com/dwyiYK9. All three shipping methods on the right are provided by Easy Ship. Their API returns the best method, so it could be any one of several shipping sub-methods.

    What other information can I provide to troubleshoot?

    • This topic was modified 7 years, 5 months ago by Joe.
    • This topic was modified 7 years, 5 months ago by Joe.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Soft79

    (@josk79)

    Please send me an url to your page with instructions to reproduce the issue.

    Plugin Author Soft79

    (@josk79)

    Also, please paste the coupon’s settings from the Misc tab. You need to temporarily enable debug mode for that.

    Thread Starter Joe

    (@joecole1)

    Here is the coupon data:

    {“result”:”ok”,”coupons”:{“coupon_id”:3256,”coupon_code”:”worldship”,”meta”:{“_edit_last”:””,”_edit_lock”:””,”_wjecf_apply_silently”:”no”,”_wjecf_categories_and”:”no”,”_wjecf_is_auto_coupon”:”yes”,”_wjecf_products_and”:”no”,”_wjecf_shipping_methods”:[“easyship”],”coupon_amount”:””,”customer_email”:””,”date_expires”:null,”discount_type”:”fixed_cart”,”exclude_product_categories”:””,”exclude_product_ids”:””,”exclude_sale_items”:false,”expiry_date”:””,”free_shipping”:false,”individual_use”:false,”limit_usage_to_x_items”:null,”maximum_amount”:””,”minimum_amount”:””,”product_categories”:[],”product_ids”:[],”usage_count”:0,”usage_limit”:0,”usage_limit_per_user”:0}}}

    My store is not live, so you’ll have to manually navigate through the pages.

    Add this product to your cart.
    https://parisbloom.com/product/dresses/rose-collection-fall-2019/joie/

    You’ll have to go to checkout to select an international country first.
    https://parisbloom.com/checkout/

    Then navigate to the cart to apply the coupon manually and see the auto coupon does not work.
    https://parisbloom.com/cart/

    Plugin Author Soft79

    (@josk79)

    I see, no this is not going to work. The plugin expects the id of the shipping method to be something like: easyship:17 but Easyship identifies itself as 628fed83-5154-4eb3-a4d3-4362d519683a. That’s different to the way it’s done by the shipping methods by Autommatic and many others I’ve seen. So it’s not foreseen and the plugin doesn’t recognize it as easyship.

    I have plans to rewrite the shipping methods part of the plugin in the future, allowing for shipping zones and cases like easyship but I don’t have an ETA for that.

    Thread Starter Joe

    (@joecole1)

    Ok, thank you.

    I’ll think of another way!

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

The topic ‘Shipping Method Issue’ is closed to new replies.