What is the best plugin for me???

XAdapter Forums Table Rate Shipping Pro Plugin for WooCommerce What is the best plugin for me???

This topic contains 3 replies, has 3 voices, and was last updated by Lorenzo Lorenzo 1 year, 6 months ago.

  • Author
    Posts
  • #65535
    Hayes
    Hayes
    Participant

    Currently, I have a website that just started shipping internationally. I am trying to automate my shipping and am in need of a solution.

    Up to this point, we have used the built-in flat rate shipping option in woocommerce. I would like to offer all of our customers both local and international the ability to have different options at checkout – for shipping.

    For our local customers (in the united states) we still want to offer free shipping over a certain dollar amount spent. However, if our customers would like to choose an expedited shipping method I want that option to be available to them as well (during checkout).

    For our international customers, I would like to offer all of the same shipping options our local customers (in united states) receive, minus the free shipping option.

    I would also like to generate labels for UPS and USPS (we have stamps.com account) services.

    Our products are 2 oz, so we don’t need to address freight shipping or large item shipping at this time.

    Which plugin would you recommend?

  • #65540
    Anindo
    Anindo
    Keymaster

    Hi Hayes,

    You can opt for the UPS and Stamps plugin separately.
    Here is the link to our UPS plugin : https://www.pluginhive.com/product/woocommerce-ups-shipping-plugin-with-print-label/
    Stamps plugin link : https://www.xadapter.com/product/woocommerce-stamps-com-shipping-plugin-with-usps-postage/

    Our team can provide you a mechanism to fulfil your business case.
    – You can always configure a free shipping option in WooCommerce. In parallel, you can show the expedited shipping methods from the plugin.

    Regarding international options, we can provide you a mechanism to hide free shipping. That should not be a problem. After the purchase, you can immediately approach our support team for this snippet.

  • #65597
    Hayes
    Hayes
    Participant

    Excellent! I purchased both plugins and am in the setup phase.

    Could you send me a code snippet to hide other USPS shipping options when the free shipping threshold is reached? Currently to receive free shipping one has to spend over $25.00 on our site. A code snippet to take care of the above mentioned would be great OR show me how to integrate with Woocommmerce already available options.

    Next…

    Could you send a code snippet that would remove “free shipping” when people outside the USA attempt to purchase products from the site?

    Thank you

  • #65602
    Lorenzo
    Lorenzo
    Keymaster

    Hi Hayes,

    Here’s a code snippet to hide stamps method if free shipping exist
    add_filter(‘woocommerce_package_rates’, ‘xa_hide_shipping_methods_if_free_flaterate_exist’, 10, 2);
    if(!function_exists(‘xa_hide_shipping_methods_if_free_flaterate_exist’)){
    function xa_hide_shipping_methods_if_free_flaterate_exist( $available_shipping_methods, $package ){

    $hide_if_shpping_method_exist = array(‘free_shipping’); //If the shipping methods given here is exists.
    $method_to_hide = array(‘wf_usps_stamps’); //Hide all the shipping method provided here.

    $do_hide = false;
    foreach ($hide_if_shpping_method_exist as $method) {
    foreach ($available_shipping_methods as $shipping_method => $value) {
    if( strpos( $shipping_method, $method ) !== false ) {
    $do_hide=true;
    break 2;
    }
    }
    }

    if( $do_hide ){
    foreach ($method_to_hide as $method) {
    xa_hide_the_shipping_method( $method, $available_shipping_methods );
    }
    }
    return $available_shipping_methods;
    }
    }

    if(!function_exists(‘xa_hide_the_shipping_method’)){
    function xa_hide_the_shipping_method($method, &$available_shipping_methods){
    foreach ($available_shipping_methods as $shipping_method => $value) {
    if( strpos( $shipping_method, $method ) !== false ) {
    unset($available_shipping_methods[$shipping_method]);
    }
    }
    return $available_shipping_methods;
    }
    }

    To hide free shipping for other countries except US, you can set up the shipping zone only for US and add free shipping method, other countries will not get this method in the cart or checkout page.

    Regards,
    Lorenzo

You must be logged in to reply to this topic.