• Resolved industrialweb

    (@industrialweb)


    I was wondering if you could help me out with something I could put into functions.php to increase the shipping total by 10%.

    I added a function that does this to all shipping methods, filtering woocommerce_package_rates, but it does not change the L + L rates. The only thing I managed to make work was editing the plugin directly which won’t do in the long run.

    So, I added this at line 408 of woo-shipping-method-rl-carriers/includes/classes/RLC_RateQuote.php

    $newnetTotal[$service_id] = $newnetTotal[$service_id]*1.1;
Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you reached out to R+L to see if they could add that functionality?

    Thread Starter industrialweb

    (@industrialweb)

    I did, and I found I was doing easy things the hard way. If you go into shipping zones and edit the shipping method, there is a field right there to increase the rates by a percentage. Doh.

    Ahhhhh…great discovery! LOL if I had a nickel for every time I missed the obvious….

    Thread Starter industrialweb

    (@industrialweb)

    I am always trying to avoid adding plugins and looking for hooks to put into the child theme’s functions. In this case I needed neither.

    It reminds me of my colleague moving jumper pins, replacing cards, swapping power sources, and smelling circuit boards when the real problem was the power strip was unplugged.

    So funny!!! Yeah, it’s weird how the brain misses obvious stuff. Few years back my truck wasn’t starting regularly and was running rough. The mechanic kept working on it 3 days doing all kinds of computer testing and swapping out parts. Finally I asked him if he tried it with a new battery. Yep, that solved everything and he didn’t bother to charge me for all that needless labor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Increasing shipping cost by a percentage’ is closed to new replies.