Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Can I pay you for support on this? It’s urgent of course. Thank you.

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    For example: ground shipping = 6.95 + .65 for each oz thereafter. On one product that weighs 1oz I have the handling fee as 6.30 so the ground comes out correct at 6.95. But on another product that weighs 1.8oz, I want the same shipping rate to apply, 6.95 + .65 for each oz thereafter. But on the product that weighs 1.8oz the ground shipping = 7.60. What I need is the 6.95 to apply the same to each starting product regardless of weight, then add the extra .65 AFTER the first product, if they add two for example.

    Thank you.

    P.S. I will make a donation or pay you for the answer, this is almost perfect but perhaps I’m using it wrong. Can you help?

    Plugin Author Dan

    (@dangoodman)

    Hi!

    I still don’t get you. Could you please provide a few examples? Like what the cart contents are, items weights and shipping cost expected. E.g.:
    1)
    item1 1oz
    item2 1.8oz
    shipping cost?

    2)
    item 1oz
    cost?

    3)
    item1 2oz
    item2 1oz
    item3 1.8oz
    cost?

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Thank you Dan!

    Item 1 cost = 12.99
    weight = 1oz
    shipping = $ 6.95 (flat) + $ .65 per ounce if more than one item is purchased

    Item 2 cost = 14.99
    weight = 1.5oz
    shipping = $ 6.95 (flat) + $ .65 per ounce if more than one item is purchased

    Item 3 cost = 16.99
    weight = 1.8oz
    shipping = $ 6.95 (flat) + $ .65 per ounce if more than one item is purchased

    So all items are 6.95 to ship but the weights are different. When more than one item is purchased this is when the increment should start.

    Thank you!

    Plugin Author Dan

    (@dangoodman)

    Let’s assume we have the following cases:
    1. User purchases one item “item 1”. Expected shipping cost is 6.95?
    2. Two items “item 1”. Expected cost is 6.95 + 2(oz) * 0.65 = 8.25?
    3. Item1 + Item2 = 6.95 + 2.5 (oz) * 0.65 = 8.575?

    Is it what you need?

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Yes. All 3 items start at 6.95 shipping, if more than one item is purchased the additional shipping cost is 0.65 per oz.

    Thank you!

    Plugin Author Dan

    (@dangoodman)

    Ok. So you need a basic plugin functionality with one exclusion: don’t account cart weight if there is an single item in the cart.

    That can be achieved with the following:

    1. Setup single WBS profile.
    Handling Fee: 6.95, Shipping Rate: 0.65. I assume you have USD as the currency and ounce as the weight unit set up in WooCommerce settings.

    2. Modify plugin’s source code.
    Find line “$price = $weight * $rate;” in the WC_Weight_Based_Shipping.php and insert right after it on the next line this text: “if ($this->fee > 0 && WC()->cart->cart_contents_count < 2) { $price = 0; }” (without quotes).

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    WOW! Thank you!!!! Please send a link to where I can donate for your excellent support. Many thanks Mr. Goodman.

    Plugin Author Dan

    (@dangoodman)

    Glad to help you!

    Here is paypal donation link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=gravyzzap%40gmail.com. But it’s not really necessary. It’s completely up to you.

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Thank you!!! One more question/modification please:

    This works but I misunderstood something, the shipping rate desired is 6.95 for the FIRST 1-6oz, and THEN 0.65 per oz thereafter.

    Is there a way to do this with your excellent plugin?

    Thanks again very much.

    Plugin Author Dan

    (@dangoodman)

    Ok. That makes sense.

    You have to do the following:

    1. Setup first profile with Handling Fee 6.95, Max Weight 6 and Shipping Rate 0.
    2. Setup second profile with Handling Fee 6.95, Min Weight 6.001 and Shipping Rate 0.65.
    3. Rollback changes in file WC_Weight_Based_Shipping.php (you can download it from here to get original version).
    4. Find “if ($this->weight_step) {” and place right before it on the previous line the text “$weight = max(0, $weight – $this->min_weight);” (without quotes).

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Thank you! Does this still apply when I have three shipping options such as ground/second day/overnight?

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Also, no weight step on these?

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    No need to answer the above, thank you very much. This seems to work perfectly as far as I can tell.

    You deserve great applause and money. How to send anonymously?

    Thread Starter JustSomeGratefulSoul

    (@ijostl)

    Hi Mr. Goodman, thanks again for your help. The link you sent for donations looks like it’s written in Russian; is there a way to donate anonymously?

    Thank you again very much!!!

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘flat rate incremental’ is closed to new replies.