Coupon Empties Cart After It’s Applied
-
Hello! I’m struggling with coupons. My cart empties after a coupon code is applied.
I have two fixed product discount coupons set up in WooCommerce. They are for the same product; the codes are different.
Here’s what happens:
1.) Go to product page and add product to cart (I only have one product).
2.) Click View Cart (goes to https://siemachtsewingblog.com/cart/).
3.) The Cart shows the product. There are two buttons on the Cart: Apply Coupon (with a field for the code) and Update Cart.
4.) Enter coupon code.
5.) Click Apply Coupon.
6.) An error appears for a split second that says “Sorry, this coupon is not applicable to selected products.”
7.) A notification pops up that says, “Your cart is currently empty.” A button comes up that says, “Return to Shop.”
If you DO NOT enter the coupon code on the Cart page, click the Proceed to Checkout button, go to https://siemachtsewingblog.com/checkout/, you can enter the coupon code and successfully apply it without the cart emptying.
The coupons are set up with the correct discount type (fixed product discount) and correct usage restriction (set to specific product that I want to discount with the coupon).
I’ve played with this in Chrome and Edge, and I’ve been testing in Chrome Incognito, too.
The cart page is a single block – shortcode. The shortcode is [woocommerce_cart].
I don’t know if this matters, but my store’s main page (https://siemachtsewingblog.com/sie-macht-shop/) is jacked up. It shows one product at full width, and it’s a product I no longer sell.
I’ve set this old product page to Private and hidden its catalog visibility. I’ve also tried to change its status from Published to Draft, but the change doesn’t take.
I figure I can check out some documentation to beautify my store main page. The coupon thing is the big issue right now. I’m desperate to get this fixed ASAP so I can finally sell this product I’ve been working on for two years!
TIA for your help!
The page I need help with: [log in to see the link]
-
Hi there @erinvanhandel
We’ll be happy to help with this.
It will be great if you could share your current System Status Report. You can get it by navigating to the
WooCommerce / Statussection of your site. Once there, click on theGet system reportbutton and then copy it by clicking on theCopy for supportbutton. Then paste it here in a comment.Also, I wasn’t able to test your cart page as we don’t have a coupon code. Do you have a coupon code you would be happy to share for us to test this?
Thanks!
THANK YOU!!!! Anxiously awaiting your reply! <3
Here are the coupon codes. Each is a $5 discount on the Cass T-Shirt and Book of Hacks (https://siemachtsewingblog.com/product/pdf-cass-book-of-hacks/).
CASSSUPERFAN
ILOVECASSHere is the system report:
### WordPress Environment ### WordPress address (URL): https://siemachtsewingblog.com Site address (URL): https://siemachtsewingblog.com WC Version: 6.7.0 REST API Version: ✔ 6.7.0 WC Blocks Version: ✔ 7.8.3 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.30 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1q-fips SUHOSIN Installed: – MySQL Version: 5.7.38-41-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.7.0 WC Database Prefix: wph5_ Total Database Size: 317.34MB Database Data Size: 284.21MB Database Index Size: 33.13MB wph5_woocommerce_sessions: Data: 14.02MB + Index: 2.02MB + Engine InnoDB wph5_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wph5_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wph5_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_actionscheduler_actions: Data: 0.08MB + Index: 0.13MB + Engine InnoDB wph5_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_actionscheduler_logs: Data: 0.11MB + Index: 0.09MB + Engine InnoDB wph5_commentmeta: Data: 0.38MB + Index: 0.17MB + Engine InnoDB wph5_comments: Data: 1.52MB + Index: 0.28MB + Engine InnoDB wph5_gg_attributes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_gg_galleries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_gg_galleries_resources: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_gg_photos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_gg_settings_sets: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wph5_gg_tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_options: Data: 5.34MB + Index: 0.28MB + Engine InnoDB wph5_postmeta: Data: 4.52MB + Index: 0.66MB + Engine InnoDB wph5_posts: Data: 59.52MB + Index: 0.64MB + Engine InnoDB wph5_redirection_404: Data: 193.69MB + Index: 26.63MB + Engine InnoDB wph5_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wph5_redirection_logs: Data: 0.25MB + Index: 0.08MB + Engine InnoDB wph5_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_sbi_feed_caches: Data: 0.11MB + Index: 0.02MB + Engine InnoDB wph5_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_sbi_instagram_posts: Data: 0.22MB + Index: 0.00MB + Engine InnoDB wph5_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wph5_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wph5_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wph5_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wph5_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wph5_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wph5_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wph5_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wph5_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wph5_yoast_indexable: Data: 1.52MB + Index: 0.38MB + Engine InnoDB wph5_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wph5_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wph5_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wph5_yoast_seo_links: Data: 1.52MB + Index: 0.36MB + Engine InnoDB wph5_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### amn_wpforms-lite: 5 attachment: 1695 jp_img_sitemap: 4 jp_sitemap: 4 jp_sitemap_master: 4 jp_vid_sitemap: 4 nav_menu_item: 28 oembed_cache: 28 page: 45 post: 438 post_grid: 1 product: 11 pt_view: 43 revision: 3280 shop_coupon: 6 shop_order: 14 shop_order_refund: 1 shop_subscription: 3 sliders: 7 wp_block: 5 wp_global_styles: 2 wpcode: 2 wpforms: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (23) ### Share Buttons by AddThis: by The AddThis Team – 6.2.7 Akismet Anti-Spam: by Automattic – 5.0 Blogger Importer: by wordpressdotorg – 0.9 Bluchic Instaview: by Bluchic – 15.11 Classic Editor: by WordPress Contributors – 1.6.2 Content Views: by Content Views – 2.4.0.7 Genesis Blocks: by StudioPress – 1.5.1 Health Check & Troubleshooting: by The WordPress.org community – 1.4.5 WPCode - Insert Headers, Footers, and Code Snippets: by WPCode – 2.0.1 Smash Balloon Instagram Feed: by Smash Balloon – 6.0.6 Jetpack: by Automattic – 11.1.2 Mailchimp for WooCommerce: by Mailchimp – 2.7.1 Open External Links in a New Window: by WebFactory Ltd – 1.43 Redirection: by John Godley – 5.3.0 SiteGround Optimizer: by SiteGround – 7.2.0 Site Plugin for siewmachtsewingblog.com: by – Termly | GDPR/CCPA Cookie Consent Banner: by Termly – 3.0.3 Velvet Blues Update URLs: by VelvetBlues.com – 3.2.10 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.12 WooCommerce Payments: by Automattic – 4.5.0 WooCommerce Shipping & Tax: by WooCommerce – 1.26.2 WooCommerce: by Automattic – 6.7.0 Zapier for WordPress: by Zapier – 1.0.4 ### Inactive Plugins (0) ### ### Must Use Plugins (1) ### Health Check Troubleshooting Mode: by – 1.7.2 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) 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: ✔ Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #4332 - /sie-macht-shop/ Cart: #4246 - /cart/ Checkout: #4247 - /checkout/ My account: #4248 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Samantha Version: 21.09 Author URL: https://www.bluchic.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 ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://siemachtsewingblog.com Subscription Statuses: auto-draft: 3 WooCommerce Account Connected: ✔ Yes Active Product Key: ❌ No ### Store Setup ### Country / State: United States (US) — Wisconsin ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method PayPal Standard: subscriptions gateway_scheduled_payments subscription_payment_method_change_customer subscription_cancellation subscription_suspension subscription_reactivation products refunds PayPal Reference Transactions Enabled: ❌ No ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ✔ Next scheduled: 2022-07-28 21:43:29 -05:00 Options: ✔ Notes: 36 Onboarding: completed ### WooCommerce Payments ### Version: 4.5.0 Connected to WPCOM: Yes Blog ID: 122003127 Account ID: acct_1Hsxww2ECrsxWa7M ### Action Scheduler ### Complete: 139 Oldest: 2022-06-27 08:23:46 -0500 Newest: 2022-07-27 20:23:21 -0500 Pending: 1 Oldest: 2022-07-28 15:17:00 -0500 Newest: 2022-07-28 15:17:00 -0500 ### Status report information ### Generated at: 2022-07-28 06:36:47 -05:00Hello,
I was able to reproduce the issue with the first coupon.
To find the cause of the issue you can perform a conflict test as follows:
- Temporarily switch your theme to Storefront
- Clear the site cache
- Disable all plugins except for WooCommerce
- Add the item to cart, and add the coupon
If after completing the conflict test the issue is not present, then you know the problem was with the plugins and/or theme you deactivated. To identify the cause of the problem, reactivate your theme and other plugins one by one, testing after each, until you find the culprit. You can find a more detailed explanation on how to do a conflict test here.
It is recommended to backup your site before running the test, also you can run it using a staging environment, for this purpose you can use WP Staging for quickly spinning up a new test site without affecting your production site.
Let us know how the test goes, thanks.
Hi!
I did the first part of the conflict test:
-Switched to Storefront
-Cleared cache
-Disabled all plugins except WooCommerce
-Added product to cart
-Applied couponIt worked. My cart did not do the auto-empty thing. The cart-checkout process seemed to be smoother and faster, too.
Moving on, I kept everything the same except I reactivated my theme. This is what happened:
1.) Added product to Cart.
2.) Entered coupon code.
3.) Clicked Apply Coupon.
4.) Message: Coupon successfully applied.
5.) Clicked Proceed to Checkout.
6.) Message: Your cart is currently empty.
So, it looks to me like my theme is causing the cart-emptying conflict? Am I interpreting this correctly?
What comes next?
TIA for your help!
Thanks for performing these steps and sharing the details.
Upon trying to proceed to checkout, the message “Your cart is currently empty” is coming up, which did not happen when Storefront was the active theme.
This indicates that the theme is behind this unusual behavior of auto-emptying of the cart!
Your next step is to get in touch with your theme’s author and report this issue. For that you can submit a ticket from this page: https://help.bluchic.com/samantha-theme-overview/
Hoping for a quick resolution.
Cheers
Thanks for your help. I submitted a ticket.
You’re welcome!
I’ll mark this thread closed. Feel free to re-open the thread if you need further help from us on this issue.
If you have a few minutes, we’d love if you could leave a review for WooCommerce:
https://wordpress.org/support/plugin/woocommerce/reviews/Thanks! 🙂
The topic ‘Coupon Empties Cart After It’s Applied’ is closed to new replies.