Magento IWD Onepage checkout - set default shipping method - php

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.

Related

Is it possible to hide the shipping method step on magento checkout process

Is it possible to hide the shipping method step on the magento checkout process. I want to remove the shipping method step only on checkout page, not permanently.
What i am trying to achieve is on the cart page when the customer enters his postcode for shipping estimate and then update total. I will want to use his choice he made here for his order. So I see no relevance for him to alter his shipping choice afterwards as I only have one shipping option.
I have searched around and found there are ways of removing the step altogether and enabling a default shipping method. However I am using a table matrix so the shipping charge differs based on postcode entered, so i can not set it as a default.
Please can you advice if it is possible to achieve what I want and if so how would I approach it.
Advice and guidance is appreciated.
Thanks

Woocommerce show shipping methods in checkout page?

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.

How to show Delivery methods (Shipping Method) in Magento product page

I have a magneto Store and I have a custom requirement.
I have my own templet and I need to display Delivery Methods on product page.
Normally shipping methods available on a Checkout page. But I need to add it on Product page.
Please help me or guide me to do this.
Many thanks
Umanda
afaik are the shipping methods are connected to the address. No address - no shipping methods.
but if you look into Mage_Checkout_Block_Onepage_Shipping_Method_Available you could read all the data from
Mage::getStoreConfig('carriers/*/title');
so just call
Mage::getStoreConfig('carriers');
loop over all carriers, collect the titles and check wether they are activated or not.
And have a look into
app/code/core/Mage/Checkout/Block/Onepage/Shipping/Method/Available.php:40
Mage_Checkout_Block_Onepage_Shipping_Method_Available::getShippingRates()

Retrieve shipping price via webservice in Magento

I have created my own shipping module, but problem is that collectRates function is called when user comes to shipping method step and then these prices are just shown to user. But in my case I have to use webservice to get price, and there are some options user can choose in shipping method step screen, which will affect shipping price. Price itself is calculated on other server.
So how I can set shipping price via ajax in shipping method step?
I found working solution myself. I call shipping.save() JavaScript function to update shipping methods page, then collectRates (php) function in my own shipping module is called and everything works correctly.
shipping.save();

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