I have developed a custom build on woocommerce.
All except the checkout page are OK.
The site is only ship to Britain, and I have flat rate shipping enabled. However, there are two problems on the checkout page: The first foreach loop has an invalid argument:
WARNING: For foreach () / home / **** / public_html / wp- Wc-shipping.php
on content / plugins / woocommerce / include / class-line 291 and the other problem is:
There are no available shipping methods. Please check your address again, or contact us if you need any help.
I am tapping my head against a wall here. I have a shipping method enabled, so it's telling me that there is no way available?
I want to do this, just list all the shipping methods that I have enabled so that users can select one.
I have also seen that when the user is not, the shipping methods are displayed, but when they are logged, the flat rate shows - then a random value that is in the administrator Is not recorded anywhere.
To add a bit if I add a variable product for art using the add-to-cart URL, this problem does not occur as soon as I use the add_to_cart function .
woocommerce- & gt; Cart- & gt; Add_to_cart (522,1, 523, array ("attribute_colour" = & gt; "color", "attribute_size" => gt; "A3", "attribute_vinta-numbering" = & gt; "yes", "attribute_ctontity -column "= & Gt;" yes "," attribute_cc-type "= & gt;" duplicate "));
The above code works fine if it is used in the URL but I want to call it through AJAX with the function.
-
To woo commerce settings and add a shipping zone. .
-
Always make sure that you set up shipping locations on existing products and when adding new products.
Comments
Post a Comment