woocommerce cart not working with custom WP theme - wordpress

I have a custom wp theme. WooCommerce is installed and up to date. Product pages work, and "add to cart works" however, on the cart page, the shipping calculator simply reloads the page, and changing shipping options that do appear does not update the cart total. tried a default wp theme to test and it works fine there. Any ideas? I used the theme integration guide method of using the woocommerce_content tag and created woocommerce.php. No luck

Related

Divi Woocommerce checkout builder not displaying custom shipping method

I have a custom shipping plugin that adds a shipping method to the ones that have been added through shipping options on the Checkout page. The plugin works perfectly and adds the shipping method on the checkout page, however, I tried the plugin on another site that used the Divi Theme and it didn't work. From further investigations, I notice that the developer of the site uses a checkout builder which does not use woocommerce_checkout shortcode or block. But rather the builder places on the checkout page, the individual sections of the checkout page. This seems to be the only difference between this site and all the others I have tested the plugin on.
Does anyone have an idea of how to add the shipping method to the list even on sites that use builders in the same manner?
The shipping methods are usually included on the cart and checkout from a series of hooks that are called from within the theme.
If you can see other shipping methods apart from the custom one then it is likely a problem with the plugin not having the hook it wants fired.
Personally I would make a backup of the current checkout template and turn it off to see if it works fine with the default woocommerce one.
If you can see your shipping method appear in the default template then that template override is missing a hook. If not it's something else.
Then you maybe able to make the comparison between the 2. Only problem is that with Divi they hide a lot of the mechanics so I would potentially turn it off all together.
Then manually make changes by copying the WooCommerce template file to my theme folder in a directory called 'woocommerce' then make the edits that mirror what Divi was trying to do.
If the hook isn't being fired then it will not load the data.
This isn't really an answer but may give some guidance on what to check
This is a known issue with the new divi checkout builder. It’s been reported to Elegant Themes and they are working on a fix with no ETA. I had the same issue and had to revert back to the standard woo checkout.
A simple way is uncheck "ship to different address"
Going to WooCommerce–> Settings –> Shipping–> Shipping Option –> (select) Default to customer billing address.

How to apply the elementor theme builder custom page to my woocommerce default shop page

I'm new to wordpress and I just created a website for online store using wordpress. I want to apply the customized page of woocommerce shop to the default woocommerce shop page, and I'm using Elementor theme builder. I already created the page and customize page as I want. Then I saved and applied the customization to shop page
The problem is after I applied the theme to the default woocommerce shop page, the shop page still redirect to the same old default woocommerce shop page not the one that I already customized before. I watched some YT tutorials but in the video their customized shop page looked perfectly fine after they applied the theme. Is there any way to solve this?
In your WordPress admin page click WooCommerce under Menu. Click Settings sub-menu and choose Products tab. Under Products, in Shop Page field choose the shop page you want and save the changes. Now your shop page displayed will be the one you chose in the admin page. You will be no longer redirected to the default one. Please refer to the screenshot below

Woocommerce Add To Cart redirect to Checkout not working

I'm trying to redirect people who click on the add to cart button to the checkout page directly. The add to cart button only is adding the product to cart but not redirecting at all.
I've tried to put the WooCommerce setting on auto
https://gyazo.com/d5357f81ccb48723ea72125a3368dd81
I'm using the Theme Sartre on my website but another website with the same theme is working well so i'm confused.
The only bit of code i've added is https://gyazo.com/6d13ed2ebc037b8576dcb911a1328241 in the function.php file of my theme.
My website doesn't seem to show any error while i'm pressing Add to Cart
https://chase-lab.com/
I'm using the latest version of woocommerce Version 3.6.1
Thanks for your help

Woocommerce single product add to cart button not working

I have developed a custom theme. Everything working fine but woocommerce single product page add to cart button not updating products.
In the cart page update cart works sometimes and again suddenly stop working. here is the link http://webdesign-projects.xyz/mer/shop
Can anyone figure out the issue?

View Cart Not Displaying Cart Contents

When I use my own custom theme, the "View Cart" link shows me the cart page, but it's blank.
If I switch to the TwentySixteen theme, it works fine. What do I have to change in my theme to make it work?
Here is the link to my Woocommerce shop: http://educanimal.com/en/shop/
I changed the template for the cart and checkout pages and it works fine now. As long as this workaround works, I'm happy.

Resources