Blank/empty pages Cart and Checkout - wordpress

We’re just getting started with WooCommerce and are preparing a store with just a few categories and products in it to play around with it and get to know it before we get seriously into it.
We don’t yet have an SSL certificate for our website.
Does this mean that we won’t be able to create a store and test it until we get an SSL certificate?
As is, we’re seeing blank pages when we go to cart and try to go to checkout. On those pages, our header is there, but the page below the header is empty, blank.
I posted this same question in an existing thread that mentioned this, but haven’t had a reply. Thought maybe it might be missed in that other thread.
maybe, can you see do code shablon this page?
Thank you.

I came across this issue while writing a custom WooCommerce theme from scratch. I realized that if your theme has a page.php template (or any of the fall-back templates in the WP hierarchy) - you need to make sure, that the_content(); function gets called in the template that your page post-type is going to use (either page.php, singular.php or index.php) - if you are using the standard WooCommerce setup.
If not, the WooCommerce short-codes are simply never output - which the cart, checkout, my-account and order-tracking pages depend on.

Make sure to enter the [woocommerce_cart] shortcode in the Cart page and [woocommerce_checkout] shortcode on the checkout page.
And Goto Woocommerce settings and set the Cart Page, Checkout page.
This should solve the issue.
Meanwhile, check the Woocommerce -> System Status and look for errors.
If you are using any page builder, make sure you enter the Shortcodes in the text box modules.
If you still face the issue, try reverting back to Gutenburg editor or classic editor instead of Page builder.
How to debug:
wordpress.org/support/topic/how-to-debug-issues-after-updates
Perhaps it would be easier to find what is causing the conflict. Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict

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.

WooCommerce hook on shop page

I'm having problems with the shop main page of WooCommerce. I have all my products in two rows, that's OK. But after that, the products appear on a unordered list and I can't remove it by hooks and by CSS
I'll show you with an IMG
enter image description here
The items that are circled is what I don't want them to appear on the webpage
This might be because of the plugin/theme conflict. Do check the Woocommerce -> System Status and look for errors.
Make sure you are using the latest version of Wordpress and Woocommerce.
How to debug:
wordpress.org/support/topic/how-to-debug-issues-after-updates
Perhaps it would be easier to find what is causing the conflict. Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable plugin one by one until you find the one that’s causing the conflict

WooCommerce pages showing as blank

The cart, my-account and checkout pages are all blank when I try view them. All I get is the header and footer. All I have done so far is download WooCommerce, go through the settings and add theme support. My shop page wasn't working until I added theme support but now thats the only page that does. Also I've noticed that if I use WooCommerce shortcode in my php files I can get the pages. But the shortcode doesn't seem to be working in the backend. BTW I'm using my own custom theme incase thats relevant.
What can I do to fix this?
update:
This must be an issue with my theme as if I set one of the default ones to active all the WooCommerce pages show. But I don't know what my themes issue is yet.
update: I have noticed that the WooCommerce pages are allowing me to add templates to them, apart from the shop page which is working. Why is this happening?
There are few steps to do.
First turn on debug, by switching WP_DEBUG to true.
View source of page, and check if everything is being rendered, and also check console for JS error.
At last, for theme, if after switching to default theme, content shows up, there is a theme related issue.
Check for missing templates or template parts or structure within related with page from which content is missing and compare it with default themes templates and template parts.
See if there is some template part missing, or modified, like content.php or content-page.php, the_content() , etc.

Woocommerce - Cart Empty for Non Logged In Users

I have a problem in my Woocommerce shop. Not logged-in users can't add products in their cart! When they press the "add-to-cart-button", the products is added to the cart. But if they refresh the page or go to the cart, it is empty!
If I am logged-in, it is not happening and everything is working good.
Can someone please help?
I think the problem is in your server configuration. If you use any caching plugin deactivate it and hard refresh your browser. Then check again if it works or not?
Here is an article Mike Jolley wrote: http://mikejolley.com/2013/12/20/problems-with-cart-sessions-and-woocommerce/
I had this problem. For me, I realised it was because the session_id column in the wp_woocommerce_sessions table was not auto incrementing. After I modified the table, it worked.
In case anybody else runs into this: hosting providers like WP Engine make extensive use of caching to improve the performance of your webshop. Although, they're excluding pages where this is not desired, like the cart or checkout page.
They do this for the default paths (/cart, /checkout) only, though. So if you change the default path to adapt the URLs to your language of choice, for example, make sure to write to their support so they can add exceptions for your pages.
See here for a description of this issue from WP Engine.
It sounds like the website is behaving differently for logged in users vs. visitors – this won’t be affected by the “checkout without registering” option. This kind of problem is usually caused by either a conflict with your theme, Plugin or with Cache.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce. A good way to do this is with a free plugin called Meks Quick Plugin Disabler ( https://wordpress.org/plugins/meks-quick-plugin-disabler/ ), which will remember what plugins you currently have active so it’s easy to switch back.
If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.
Please follow this link for Cache full detail: https://businessbloomer.com/woocommerce-solving-cart-empty-issue/
For me the issue was using "cart-2". WP-Engine does not cache "cart" but does for other pages. I changed the URL and it started working.

Woocommerce permalink

The issue is on Woocommerce permalink. I have added 7 menus to my woocomerce website, of which 5 of them contains the products, the others are HOME and CART. The problem is, I ain't aware of the permalink concept. Though, I tried to link my products to the respective page by changing permalink as
Custom Structure : http://example.org/%product_cat%/
Category base : products
and it works fine for the 5 products in the menu, but the problem occurs with my CART menu.
When I click it shows
"Page not found! Something has gone wrong. Sorry about that!"
I tried with Woocommerce settings, where I couldn't find any option to resolve this.
Hi try to go to Woocommerce setting and then on Checkout tab set the Cart page to your designated Cart Page that you created. (Same goes as your checkout page). Or try to go to permalink and save again.
What is the link that shows in the browser when you get the "Page not found" error?
If you go to Woocommerce Settings > Checkout, you will see a section called Checkout Pages. Make sure you set your cart and checkout pages to the correct page and save it. If that does not fix your issue, go to Settings > Permalinks and click save. Test again.
You also want to make sure you update your theme and plugins. If none of these options work, please send the url that shows when you get the "page not found" error.
The best way is to use a special plugin as well as you can save time and quickly manage URL’s on your WooCommerce store.
In my opinion, the best plugin for managing links to the WooCommerce platform is the WooCommerce Permalink Manager by Premmerce that allows you to configure URL generation strategy for your store. I used almost all similar plugins, but I can confidently say that it’s the best solution in this area. This plugin is completely free and has a friendly interface. So you can use this tool without any skill.
I hope It will help to you!

Resources