Skip to content
Advertisement

Tag: shipping-method

Allow only Local Pickup for specific products outside specific Shipping Zone in WooCommerce

I have several products in the store, however one product (flammable) can only be shipped via a specific shipping company; Unfortunately that company can’t reach the whole country. So in case the customer buys the flammable product and it’s outside the coverage of the only company that can ship the product, he should not see any other shipping option except

How to get WooCommerce shipping methods cost and settings?

I’m trying to get all shipping methods, with their rates and title. But when i use WC()->shipping->get_shipping_methods() it will only return empty rates array, and empty title string. Here is a dump: I tried to Google the issue, but nothing really helped. Does anyone know what could be the issue? Thanks a bunch! Answer Because WC()->shipping->get_shipping_methods() doesn’t load the shipping

Advertisement