• Resolved Black Ink Squid

    (@black-ink-squid)


    HELP!
    I am currently using Woo Commerce and am setting up the shipping rates.
    I understand that flat rate shipping has the additional options of adding my own shipping rates (eg. 1 day shipping, registered shipping etc) but this component of customizing my shipping options is missing from the flat rate shipping segment. How should I do??

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 33 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Unless you were using it before, or reenable it with a filter, this option is now hidden. https://woocommerce.wordpress.com/2015/06/16/simplifying-flat-rate-shipping-in-wc-2-4/

    It is called flat rate shipping. Anything more than a flat rate adds confusion. The ultimate plan is to allow multiple instances of flat rate shipping to be used in the future.

    Thread Starter Black Ink Squid

    (@black-ink-squid)

    Thanks for your reply Mike.

    Shucks. Is there anyway around this problem? For example, rebooting to a previous version. How would re-enabling with a filter work? My intention is to add registered and regular mail as an option for the customers.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    add_filter( 'woocommerce_enable_deprecated_additional_flat_rates', '__return_true' );

    In functions.php.

    But really I’d recommend you use a shipping plugin intended for that purpose e.g. table rates.

    Flat is flat ??

    Thread Starter Black Ink Squid

    (@black-ink-squid)

    HAHA!

    I get your drift. Thanks for your help.

    Hello. Mike.

    You said : “It is called flat rate shipping. Anything more than a flat rate adds confusion.”
    But I think it is required by default in Asia (specially in Vietnam).
    Many country can’t calculate the fee by postcode in Asia.
    So, please, reconsider it and don’t remove it to future.

    Thanks.
    TaeShik Kim

    Plugin Contributor Mike Jolley

    (@mikejolley)

    @actsoneceo Flat rate = 1 rate. It’s flat, it does not vary. You’re missing the point ??

    Hey Mike, quick question, how can i create multiple custom rates using the hook?

    add_action( 'woocommerce_flat_rate_shipping_add_rate', 'add_another_custom_flat_rate', 10, 2 );
    
    function add_another_custom_flat_rate( $method, $rate ) {
    	$new_rate          = $rate;
    	$new_rate['id']    .= ':' . 'custom_rate_name'; // Append a custom ID
    	$new_rate['label'] = 'Rushed Shipping'; // Rename to 'Rushed Shipping'
    	$new_rate['cost']  += 2; // Add $2 to the cost
    
    	// Add it to WC
    	$method->add_rate( $new_rate );
    }

    Hi I am too a bit confused as i have been working on my website and just got round to shipping which i found relatively easy first time round especially when it came to add on rates.

    Sorry but i do not get the drift.

    If say i wanted to give an option of next day delivery to my flat rate how would i do that?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    leekane look at the snippet ered15 just posted. As an example, added to functions.php:

    add_action( 'woocommerce_flat_rate_shipping_add_rate', 'add_another_custom_flat_rate', 10, 2 );
    
    function add_another_custom_flat_rate( $method, $rate ) {
    	$new_rate          = $rate;
    	$new_rate['id']    .= ':' . 'next_day'; // Append a custom ID
    	$new_rate['label'] = 'Next Day'; // Rename to 'Rushed Shipping'
    	$new_rate['cost']  += 2; // Add $2 to the cost
    
    	// Add it to WC
    	$method->add_rate( $new_rate );
    }

    Hi thanks for the quick response.

    (I hate being awkward) but is that a functions file in the woo-commerce plugin editor or the main functions file for the theme.

    Also i don’t mean to moan (although us english people are well known for it) but how can adding code into a functions.php be easier then adding a couple of pipes?

    Also i know this is a new update but any chance someone could do a walk-through tutorial. My php is just a little bit better then my french so it would help a lot.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The pipes were not user friendly. Plus, its not true flat rate shipping if you can have varying costs.

    The long term goal is to have multiple flat rates per store.

    FYI its theme functions.php where this goes.

    Hi,

    I have tried using the hook above but to ne avail… the

    add_filter( 'woocommerce_enable_deprecated_additional_flat_rates', '__return_true' );

    string works fine but the add_action hook does nothing…

    I really do not want to use deprecated features and don’t want to shell out 80$ for a feature that was simple and free before.

    Please let me know if there is something I am missing here!

    Thanks in advance!

    Never Mind… It was added on the front end only!

    Now the question is… how to translate hmm..

    I’m having my own issue with the flat rate. Defined it as 1,90*[qty] (euros) and on the front end it shows up as ‘flat rate ‘Free”

    * sorry posted twice *

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Flat Rate Shipping does not have additional options segment’ is closed to new replies.