How to override the calculated shipping cost? (1 post)

  1. DanielHolm
    Posted 2 years ago #

    Hi all,

    I need to override the calculated shipping. When the amount of products in cart is less then one, the price for shipping should be something else then the set shipping cost that I've set (I use local delivery method).

    I've overridden other forms, but I just can't figure this one out.

    I made a completely own shipping add-on, but I've given up on that now and instead whant to use Local Delivery with a overridden shipping cost.
    This is the code for that addon: http://pastebin.com/EVEnFk1B

    It works like this: Per product. 15 SEK. But it there is only one product in cart, it should cost 45 SEK. Two should cost 30 SEK, though.

    Thanks in advance!



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic