Clicking a product category links to the Cart page
-
Hi
Using Elementor Pro, Woo and Storefront and two payment gateway plugins – all in latest version.
This aspect of my site has always worked perfectly before yesterday, i.e. you click the Product Category, and get taken to a page of all the products in that category, so that you can continue shopping. I’ve been working on my SEO using Rank Math, and at some point ALL my category links – while apparently still pointing to the right slug, which means you see the right page title in the URL – are showing the Cart page, which currently is empty. (It was doing that even before, when I was logged in and my Cart wasn’t empty.)
My shop page is not the home page.
Even when I de-activate Rank Math, the problem persists. I am not using an htaccess file and I see no errors in Chrome devtools console.
I have changed the format of permalinks several times, saving each time, but nothing changes. I even moved the Cart page out of “Publish” and into “Review” mode, but it still appears!
Anyone have ANY idea what causes this?
Thanks in advance,
SPThe page I need help with: [log in to see the link]
-
Hi @swisspenelope,
Generally when this happens, it means that the cart page might not have been set correctly under WooCommerce → Settings → Advanced, or that there is an issue with permalinks.
If you’re certain that those settings are correct, could you share a copy of your site’s System Status Report? You can find it by going to your admin Dashboard and select WooCommerce → Status.
From there, select “Get system report” and then “Copy for support“. Once you’ve done that, you can paste it here in this chat.
Hi @senff – thank you! Thanks to your asking for the Status page, I realized that my Checkout page had vanished (wish I knew how THAT happened). Now I have an additional, different problem, in that when I created a new Checkout page which calls the Elementor Checkout page template I created (where the shortcode is), I get the famous message “There is no content in this page” – so I can’t insert the template in it.
Something seems to have corrupted bits of my system setup, but at least I feel I am getting somewhere. Having put back the Woocommerce links to the correct pages is a good start, and now I am going to recreate the Checkout (Paiement) page and try to insert the template in it.
For the status, here goes: (I temporarily put the site back into English so you can see what’s going on)
### WordPress Environment ### WordPress address (URL): https://hacksrus.ch Site address (URL): https://hacksrus.ch WC Version: 4.1.1 REST API Version: ? 1.0.7 WC Blocks Version: ? 2.5.16 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.1.3 Log Directory Writable: ? WP Version: 5.4.1 WP Multisite: – WP Memory Limit: 800 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.18 PHP Post Max Size: 300 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.52.1 OpenSSL/1.0.2l SUHOSIN Installed: – MySQL Version: 5.7.26-log Max Upload Size: 300 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.1.1 WC Database Prefix: wp_ Total Database Size: 62.71MB Database Data Size: 59.28MB Database Index Size: 3.43MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_odb_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 2.02MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 53.23MB + Index: 1.95MB + Engine InnoDB wp_posts: Data: 3.05MB + Index: 0.06MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_sc_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 82 customize_changeset: 11 elementor_font: 1 elementor_library: 11 nav_menu_item: 17 oembed_cache: 1 page: 20 post: 2 product: 11 revision: 1 shop_order: 7 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (8) ### BackWPup: by Inpsyde GmbH – 3.7.1 Classic Editor: by WordPress Contributors – 1.5 Elementor Pro: by Elementor.com – 2.9.4 Elementor: by Elementor.com – 2.9.8 mame TWINT for WooCommerce: by mame webdesign hüttig – 1.11.1 Optimize Database after Deleting Revisions: by CAGE Web Design | Rolf van Gelder Eindhoven The Netherlands – 4.9.1 WooCommerce Stripe Gateway: by WooCommerce – 4.4.0 – Installed version not tested with active version of WooCommerce 4.1.1 WooCommerce: by Automattic – 4.1.1 ### Inactive Plugins (2) ### AMP: by AMP Project Contributors – 1.5.3 Rank Math SEO: by Rank Math – 1.0.42.3 ### Settings ### API Enabled: – Force SSL: – Currency: CHF (CHF) Currency Position: left Thousand Separator: ' Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #118 - /boutique-demo/ Basket: #132 - /mes-achats/ Checkout: #2781 - /paiement/ My account: #134 - /mon-compte/ Terms and conditions: #3 - /politique-confidentialite/ ### Theme ### Name: Storefront Child Version: 2.5.6 Author URL: https://woocommerce.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: storefront-child/woocommerce/archive-product.php storefront-child/woocommerce/cart/cart-empty.php storefront-child/woocommerce/cart/cart-shipping.php storefront-child/woocommerce/cart/cart-totals.php storefront-child/woocommerce/cart/cart.php storefront-child/woocommerce/cart/shipping-calculator.php storefront-child/woocommerce/checkout/form-billing.php storefront-child/woocommerce/checkout/form-checkout.php storefront-child/woocommerce/checkout/form-login.php storefront-child/woocommerce/checkout/form-pay.php storefront-child/woocommerce/checkout/form-shipping.php storefront-child/woocommerce/checkout/payment-method.php storefront-child/woocommerce/checkout/payment.php storefront-child/woocommerce/checkout/review-order.php storefront-child/woocommerce/content-single-product.php storefront-child/woocommerce/global/form-login.php storefront-child/woocommerce/loop/loop-end.php storefront-child/woocommerce/loop/loop-start.php storefront-child/woocommerce/myaccount/dashboard.php storefront-child/woocommerce/myaccount/form-login.php storefront-child/woocommerce/myaccount/my-orders.php storefront-child/woocommerce/myaccount/navigation.php storefront-child/woocommerce/myaccount/orders.php storefront-child/woocommerce/single-product/add-to-cart/simple.php storefront-child/woocommerce/single-product/meta.php storefront-child/woocommerce/single-product/related.php storefront-child/woocommerce/single-product/tabs/description.php storefront-child/woocommerce/single-product/title.php storefront-child/woocommerce/single-product.php ### Action Scheduler ### Complete: 33 Oldest: 2020-04-22 06:24:14 +0000 Newest: 2020-05-21 09:41:09 +0000
Hi again
I have tried several times to recreate my Checkout page, once trying just as you suggested elsewhere, without using Elementor, by just putting the shortcode into the text body and hitting Publish. Then I went to Woo – Settings – Advanced and linked that page as the Checkout page. (Checkout is called Paiement in my installation.) For the purposes of the Woo Status report, it looks fine, BUT I still have the problem that when I try to open the Checkout page, I see the Cart page (which is empty), and when I am on the Shop page and click on a product category, instead of going to the products in that category, it goes again to the Cart page. THIS is the big problem! I can’t even choose a product to put in the Cart, because I can’t get nearer to the individual products than the Shop page, which shows only the categories.
It’s insane – and I have no idea why it suddenly went nuts after working fine for weeks.
So that’s it in a nutshell.
Thanks,
SP
- The topic ‘Clicking a product category links to the Cart page’ is closed to new replies.