Woocommerce show shipping methods in checkout page? - php

I am using woocommerce plugin for wordpress. Everything in woocommerce is fine. Only in one thing where I am totally strucked. In checkout page I want to show all the shipping methods in list format. Here with I have attached the screenshot for the shipping method that I want. I have gone through many settings but I am not getting the result. So any help and suggestions will be really appreciable. Thanks

In your wordpress Backend Go to
WooCommerce -> Settings -> Shipping
You will see list of all shipping methods like this
Activte and configured all shipping methods, And for for some shipping methods, Your product must have dimensions like "Weight,Length,Width,Height" In order to calculate shipping charge.
Hope, It will help you!

i tried some more setting on "shipping options' page and works for me finally.
Enable the shipping calculator on the cart page > disable
Hide shipping costs until an address is entered > disable
most important, make sure u test ur cart/ checkout page on different computer (guest)

You first have to create Shipping zones and add shipping method specific to those zones. Now as soon as you enter the address on the checkout page, WooCommerce searches for that address in all the zones and if matched display all the shipping assigned to that zone.

This Worked for me:
Under WooCommerce/Settings/Shipping zones clear the 'Zone regions' then under shipping options/ Calculations uncheck both:
"Enable the shipping calculator on the cart page"
and
"Hide shipping costs until an address is entered"
The plugin
"Shipping Method Display Style for WooCommerce" by "Thedotstore" may be handy.

Related

WordPress WooCommerce can't checkout after I use php function to hide shipping options

My website is using WooCommerce (Version 6.0.1) without shipping extensions as all physical products will be picked up locally or shipped within only one region, but now I want to add an e-ticket product, no shipping required, using this event ticket plugin (Version 1.1.1; Pro Version Version 1.0.7).
I created a product category named Events for the tickets and hid all shipping options for this category using this method
I have found here, and although it's working perfectly in hiding the shipping options, when I checkout I can't proceed and instead will get the following message:
No shipping method has been selected. Please double check your address, or contact us if you need any help
I'm currently setting local pickup as the only shipping option for tickets by using the aforementioned code then setting the shipping id to display:none in Additional CSS, but that isn't really what I want, especially since it will also hide the shipping options for physical products.
I have read through lots of posts here but they either only hide some of the shipping options or they just suggest the use of extensions. It'd be great if I don't have to buy a WooCommerce extension to manage shipping per product. Is there's anyway to add/eddit another function in functions.php or WooCommerce plugin file to do that? Or some way to use that line of CSS conditionally? As far as I know, CCS doesn't have if statements, and I am not sure how I can do that in php. Any help on how to disable shipping for a particular product/category so that no shipping option needs to be be selected or on how to hide shipping method on Cart and Checkout page for a particular product/category should be much appreciated, thank you.

Customizing WooCommerce Shipping and Payment text labels on Checkout

While I am using the WooCommerce, I have got stuck in the Checkout page. I researched on these link and found many useful things help me to customize the page a lot:
Customize the text “Total” in WooCommerce checkout page
Customizing checkout fields using actions and filters
WooCommerce Customizer
However, I am still getting stuck in these fields.
If someone know how to customize the text (free plugin, php code), please let me know.
The Shipping methods labels can be directly renamed for each Shipping zone just in WooCommerce settings > Shipping:
"Edit" the Shipping zone, then "Edit" each Shipping method renaming the Label as you like:
Samething For the Payment methods: Go to WooCommerce settings > Checkout:
Select the Payment method to edit in the available tabs.
So no need of coding or plugins… The only thing is that the shipping lables changes will be also in cart page if they are enabled for it.

Magento IWD Onepage checkout - set default shipping method

by default magento ( and this module ) show the shipping methods available only after the shipping form is filled..
but I need to show the methods on page load, before shipping infos.
Is this possible? How?
I have try so many code, but i can't implement this.
Last one, but i don't know where to put this.
$shippingAddress = $this->getQuote()->getShippingAddress();
$shippingAddress->setCountryId('UK')->setShippingMethod('matrixrate_matrixrate')-save();
I don't think it's possible to get all the shipping methods before filling in the shipping details.
In theory the shipping methods depend on the shipping details.
So even if you all the shipping methods you will get wrong prices.
And this is bad for business.
If the customer sees for example at first: Some shipping method: 5$, then he fills in his shipping address and sees: Some shipping method: 15$ there is a big chance he will stop the checkout.
But I wrote this answer so I can recommend you not to use the IWD checkout extension. Here is why.
To summarize what I answered for that question:
the extension sends your data to their servers.
if their server is offline, your checkout will probably stop working.

Magento - Determine if coupon code applied on cart page is for 'FREE SHIPPING'

Does any one know how to determine that the coupon code applied on shopping cart page is for Free Shipping through code?
I have a Shopping Cart rule created for FREE SHIPPING which works fine. But if a customer hasn't yet chosen his shipping delivery options then its confusing for them coz the coupon code does nothing for them atleast on the cart page.
They see FREE SHIPPING option on the checkout/onepage.
Hence I would need this information so that I can display the customer a valid message that the 'Coupon is applied and FREE SHIPPING option would be available to them in the next stage of Checkout'
Any ideas which file to look for and what piece of code can help me determine that my coupon code in question is for FREE SHIPPING ?
You should have a look in Mage_SalesRule_Model_Validator and than the method public function processFreeShipping(Mage_Sales_Model_Quote_Item_Abstract $item). That's where the free shipping is calculated.
You can modify/extend this to save something in session and use that to detect on frontend when the cart has free shipping or not.

Magento display shipping costs in cart

Is it possible to display the shipping costs in the cart?
Like this:
Click here for an example!
Regards,
Fluxxi
If Magento can calculate it, then it can show it. For Magento to calculate shipping, it needs to know the shipping address and shipping method. I was also looking into this recently and found this. It didn't work for me because we use custom shipping methods that are very different from the Magento ones, but it might work for you.
This is a flat rate for shipping and handling, it is a standard magento feature you can set up in the shipping settings.

Categories