Error in cart page
-
Hi @mistertool,
Just to check further the cause, try creating a new cart page with no other modifications or text apart from the [woocommerce_cart] shortcode. Assign it as the cart page from WooCommerce → Settings → Advanced. From there repeat adding and removing the coupon code to see if the issue persists.
If the issue persists, kindly try doing a full conflict test to see if you can narrow down to the cause of the issue.
Let us know how it goes.
Thanks.I’ll try, sorry but the link is broken.
Thanks!PS i’ve tried the test and also in that page the error occurs.
Every update of the page to insert the promo code but also to remove it or any change and refresh of the page as change of the quantity i want to buy create the duplicates, and every time a new cart block it’s added.
Thanks in advance!Hi @mistertool,
The conflict test link referenced by @abwaita is loading for me when trying.
Could you provide a link to your site so we can see the cart page in action, please? Being able to see the cart page would really help.
Thanks for your reply, now i can see the link too.
This is my ecommerce https://www.mistertool.it/
You can add any products, then you can insert this code mtfirst10 to simulate a purchase, you will see that after refresh the cart box will be 2.
If you delete the promo code the page refresh and you will see 4 box.
Thanks in advance!Hi @mistertool
I have tested this in a fresh WooCommerce installation and I could not reproduce the same issue. So it’s likely caused by your theme or plugins.
Just to clarify, were you able to run a conflict test? (switch your theme to Storefront, deactivate all plugins except for WooCommerce, and check if the issue is still there.)
If the issue still persists with the Storefront theme and other plugins disabled, please share a copy of your site’s System Status so we can take a further look. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
### WordPress Environment ### WordPress address (URL): https://www.mistertool.it Site address (URL): https://www.mistertool.it WC Version: 5.6.0 REST API Version: ✔ 5.6.0 WC Blocks Version: ✔ 5.5.1 Action Scheduler Version: ✔ 3.2.1 WC Admin Version: ✔ 2.5.1 Log Directory Writable: ✔ WP Version: 5.8 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: it_IT External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.21 PHP Post Max Size: 300 MB PHP Time Limit: 900 PHP Max Input Vars: 10000 cURL Version: 7.78.0 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 5.7.33-36-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: 5.6.0 WC Database Prefix: wp737_ Dimensione totale database: 14.67MB Dimensione dati database: 11.26MB Dimensione indice database: 3.41MB wp737_woocommerce_sessions: Dati: 0.03MB + indice: 0.02MB + motore InnoDB wp737_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_woocommerce_attribute_taxonomies: Dati: 0.05MB + indice: 0.02MB + motore InnoDB wp737_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp737_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_woocommerce_order_itemmeta: Dati: 0.11MB + indice: 0.09MB + motore InnoDB wp737_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp737_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_actionscheduler_actions: Dati: 0.09MB + indice: 0.13MB + motore InnoDB wp737_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_actionscheduler_logs: Dati: 0.08MB + indice: 0.03MB + motore InnoDB wp737_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_comments: Dati: 0.06MB + indice: 0.09MB + motore InnoDB wp737_csp3_subscribers: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_mailchimp_carts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_mailchimp_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_options: Dati: 3.50MB + indice: 0.08MB + motore InnoDB wp737_pmxi_files: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_pmxi_hash: Dati: 0.05MB + indice: 0.00MB + motore InnoDB wp737_pmxi_history: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_pmxi_images: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_pmxi_imports: Dati: 0.27MB + indice: 0.00MB + motore InnoDB wp737_pmxi_posts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_pmxi_templates: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_postmeta: Dati: 1.52MB + indice: 0.77MB + motore InnoDB wp737_posts: Dati: 1.52MB + indice: 0.13MB + motore InnoDB wp737_revslider_css: Dati: 0.13MB + indice: 0.00MB + motore InnoDB wp737_revslider_css_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_layer_animations: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_layer_animations_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_navigations: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_navigations_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_sliders: Dati: 0.11MB + indice: 0.00MB + motore InnoDB wp737_revslider_sliders_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_slides: Dati: 1.52MB + indice: 0.00MB + motore InnoDB wp737_revslider_slides_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_static_slides: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_revslider_static_slides_bkp: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_termmeta: Dati: 0.06MB + indice: 0.03MB + motore InnoDB wp737_terms: Dati: 0.08MB + indice: 0.09MB + motore InnoDB wp737_term_relationships: Dati: 0.06MB + indice: 0.05MB + motore InnoDB wp737_term_taxonomy: Dati: 0.09MB + indice: 0.11MB + motore InnoDB wp737_tm_taskmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_tm_tasks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_usermeta: Dati: 0.11MB + indice: 0.09MB + motore InnoDB wp737_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp737_wc_admin_notes: Dati: 0.06MB + indice: 0.00MB + motore InnoDB wp737_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp737_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp737_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB wp737_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_wpforms_tasks_meta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp737_yith_wcwl: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_yith_wcwl_lists: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_yoast_indexable: Dati: 0.38MB + indice: 0.44MB + motore InnoDB wp737_yoast_indexable_hierarchy: Dati: 0.06MB + indice: 0.05MB + motore InnoDB wp737_yoast_migrations: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp737_yoast_primary_term: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp737_yoast_seo_links: Dati: 0.23MB + indice: 0.20MB + motore InnoDB wp737_yoast_seo_meta: Dati: 0.05MB + indice: 0.00MB + motore InnoDB ### Post Type Counts ### attachment: 121 custom_css: 2 customize_changeset: 4 mas_static_content: 25 mc4wp-form: 1 nav_menu_item: 237 oembed_cache: 7 page: 23 post: 6 product: 50 revision: 65 seedprod: 1 shop_coupon: 4 shop_order: 51 shop_order_refund: 2 wpforms: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (30) ### Redux: by Redux.io – 4.2.14 Akismet Anti-Spam: by Automattic – 4.1.12 Adhoc2Cart Connector: by – 1.0.0 Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: by SeedProd – 6.6.0 Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.1.3 Electro Extensions: by MadrasThemes – 2.6.1 Envato Market: by Envato – 2.0.6 Header and Footer Scripts: by Digital Liberation – 2.2.1 WPBakery Page Builder: by Michael M - WPBakery.com – 6.2.0 Loco Translate: by Tim Whitlock – 2.5.3 Mailchimp for WooCommerce: by Mailchimp – 2.5.2 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6 MAS Static Content: by MadrasThemes – 1.0.4 MAS Brands for WooCommerce: by MadrasThemes – 1.0.4 Facebook for WordPress: by Facebook – 3.0.6 One Click Demo Import: by OCDI – 3.0.2 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Slider Revolution: by ThemePunch – 6.2.10 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.9 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.2 WooCommerce Pixel Manager: by woopt – 1.11.5 WP All Import - WooCommerce Add-On: by Soflyy – 1.4.9 WooCommerce: by Automattic – 5.6.0 Yoast SEO: by Team Yoast – 17.1 WP All Import Pro: by Soflyy – 4.6.9 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.1.12 Smart Image Resize PRO: by Nabil Lemsieh – 1.5.4 WPForms Lite: by WPForms – 1.6.9 YITH WooCommerce Compare: by YITH – 2.5.4.1 YITH WooCommerce Wishlist: by YITH – 3.0.25 ### Inactive Plugins (1) ### Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.9 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### Aruba WordPress checker: by http://www.aruba.it – 14 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right 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: #3853 - /shop/ Carrello: #3134 - /carrello/ Pagamento: #3135 - /checkout/ Il mio account: ❌ La pagina non contiene lo shortcode [woocommerce_my_account]. Termini e condizioni: #7151 - /condizioni-generali/ ### Theme ### Name: Electro Version: 3.1.3 Author URL: https://madrasthemes.com/ Child Theme: ❌ – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child WooCommerce Support: ✔ ### Templates ### Overrides: electro/woocommerce/archive-product.php electro/woocommerce/global/quantity-input.php ### Action Scheduler ### Completato: 206 Oldest: 2021-08-09 11:16:27 +0200 Newest: 2021-09-08 14:21:16 +0200 In attesa: 5 Oldest: 2021-09-09 05:47:30 +0200 Newest: 2021-09-15 14:21:16 +0200 ### Status report information ### Generated at: 2021-09-08 15:24:38 +02:00Hey @mistertool,
Looking at your site for us I can see the same behaviour as you describe displaying on the cart page.
Image Link: https://cloudup.com/cBa-qW6n1hA
I’ve performed some cross-testing for us today on several of my sites which have the latest versions of WordPress, WooCommerce and our free Storefront theme as the only enabled software. When doing so I’ve not been able to replicate any similar behaviour with cart duplications related to coupons being added or removed.
Test Site: https://woostaging.mystagingwebsite.com/
Coupon:20couponThe results of this testing indicate that what your experiencing is isolated to something other than the WooCommerce plugin itself on your particular WordPress installation.
It’s likely to be could be code from another plugin or theme which has caused a possible conflict and affected the functionality of WooCommerce. it could also be the page builder plugin your using on the cart page of your site.
To see if that is the case we’d suggest carrying out a conflict test on your site by disabling all other plugins aside from WooCommerce along with switching to a theme like Storefront. This will help with trying to and locate what software you have installed which could possibly be causing this behaviour? You could use a free plugin called Health Check and Troubleshooting to carry out such testing.
When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.
Once you have disabled all other plugins and switched theme if the behaviour is resolved you can then enabled your theme and sites plugins testing after each one is enabled until the behaviour returns to locate the culprit.
https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Hi @mistertool
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
The topic ‘Error in cart page’ is closed to new replies.