Hi,
Where is the difference between existing pages to adapt to your needs versus an extra new page. This just seems harder to me?
It is also an extra step for customers, while the ordering process must be as smooth as possible.
Or am I wrong?
Thread Starter
TC.K
(@wp_dummy)
Because the required shipping options are complicated. It’s involve different logistic company, based on product supplier, also customer able choose the desired delivery date and time based on the products and logistic company.
So, in one order there maybe will separated shipping methods assigned.
The current shipping functionality clear cannot fit this requirement. Or, is there any that I not aware of?
I understand, but I mean, if an extra page is provided, you will have to write more custom code than to modify the existing shipping method with extra functionality.
Maybe you can already get started with it, by taking a look at the following tutorials
https://code.tutsplus.com/tutorials/create-a-custom-shipping-method-for-woocommerce–cms-26098
https://www.skyverge.com/blog/how-to-add-woocommerce-delivery-estimates/
Or you can search for a suitable plugin
https://wordpress.org/plugins/search/shipping/
Thread Starter
TC.K
(@wp_dummy)
Thanks for the suggestion.
Yes I know it is easier to make it that way, but the client insist me separated this step from the checkout process.
And I won’t use the woo shipping method for this. I will making my own custom method setting options. And upon customer selected the method, I will adding it to the cart session shipping object. Is it doable?
For eg:
$item = new WC_Order_Item_Shipping();
$item->set_props(array('method_title' => 'my title', 'method_id' => 'custom_id', 'total' => wc_format_decimal($mycost), 'taxes' => $mytax, 'meta_data' => $mydata));
Am I really need a legit shipping methods from WC_Shipping_Rate ? Because there is the method_id property in WC_Order_Item_Shipping.
So you think this make sense?