I use woocommerce for wholesale customers who order containers of furniture – normally 40 foot containers with a volume of 68 cubic meters. Is there a way I can show somewhere on the website – maybe in the header area a box with showing the total m3 of products in their basket? I need to show the client when they
Tag: shipping
Set specific Products to be shipped only in specific countries in WooCommerce
How can I set certain products to be shippable to only certain countries in Woocommerce? For example, during checkout, if Country is not USA, I want to show the message “We cannot deliver to your country.” Answer This can be done mainly with a custom function hooked in woocommerce_package_rates filter hook. The code below, will allow you to disable shipping,
Unset Payment Method for downloadable items only and a specific shipping country [closed]
My e-commerce site sells 99% to South Africans, and we use “BACS” “EFT” & Credit Card as payment options. We do accept international orders, but can not calculate the shipping cost for …
Display shipping methods to frontend as in the admin panel?
In WooCommerce, I’m doing the form of adding / changing product (at the front-end). I need to display the fields for changing the cost of delivery of the installed methods as in the admin panel. How can I do it? Here is my actual code: Answer As Shipping Methods are connected to a Shipping Zone, WooCommerce need to know which
Set “flat rate” shipping method as default in woocommerce
I have a woocommerce website and I have set 2 shipping methods: – Flat Rate – Local pickup I would like to set the “Flat rate” shipping method as default (selected) in the cart or checkout page. Any help should be appreciated. Answer 1) You can use the following code (to set “flat rate” shipping method as default) In cart
Get orders shipping items details in WooCommerce 3
How can I get the order shipping method id.? For example ‘flate_rate’. Since WooCommerce 3 it is now complicated as everything has changed. I have tried it with $order->get_data() in a foreach loop but the data is protected. Answer If you want to get the Order Items Shipping data, you need first to get them in a foreach loop (for
Woocommerce – Get shipping costs on the product page
I’m using Wordpress 3.9.14. I use the flat_rate method for my shipping costs. It contains a default cost_per_order and I use 2 shipping_classes inside flat_rate for additional costs for some …
Warning: Shipping method required – OpenCart
Ran into this problem a while back. Been scouring the web, OpenCart forums, StackOverflow for weeks now trying to get this sorted. Basically I took Flat Shipping module and made a copy of it. Renamed …