Shipping Cost based on Weight instead of Price
-
It’s been quite a number of months since I originally posted this question and your answer at the time was “let me see if I can get that implemented easily” but since then, there have been no updates.
I use Table Rates for shipping costs based on weight instead of price. I do this by using the $woocommerce-totalWeight value instead of $woocommerce-totalPrice value. I also make some minor updates to the labels (to reflect weight in kg instead of price) and have to disable some variables that are not being used anymore. Due to these modifications each time I use your plugin, I have to update the version of the plugin, make the modifications, re-add all the rate-rules and then save it (because if I dont, the values are not in the database and the plugin wont work).
I believe it should be fairly simple to make this a permanent feature and also expands the usability of your plugin to a larger number of people. Simply having a feature in the settings page where a drop-down allows you to choose “charge by total weight” or “charge by total price” and then having a case in your script should resolve this easily.
If you’d like me to send me the script I have updated (so you can steal the changes), I’d be happy to send it to you, just let me know your email address or drop me an email. Alternatively, I can check the changes and copy them here.
Thanks in advance and looking forward to hearing from you.
- The topic ‘Shipping Cost based on Weight instead of Price’ is closed to new replies.