• Resolved linkslegend

    (@linkslegend)


    Hi,
    the cart items are not cleared when my site redirects a customer from PayPal back to the /checkout/order-received/ page, even when you force reload. I made a clone of my site and noticed that when this script
    https://chimpstatic.com/mcjs-connected/js/users/dc33750d705aedfe96f08bddd/fbff6e382b96e6dc04c89e897.js
    with this code is loaded
    (function(){if(!window.$mcSite){$mcSite={};}})();
    the cart wont clear.
    How can I fix this? I really need to fix this

    Thanks for your help!

    Host: cloudways.com

    
    ### WordPress Environment ###
    
    WC Version: 3.1.2
    Log Directory Writable: ?
    WP Version: 4.8.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.10 (Debian)
    PHP Version: 7.0.23-1~dotdeb+8.1
    PHP Post Max Size: 60 MB
    PHP Time Limit: 1000
    PHP Max Input Vars: 3500
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.37
    Max Upload Size: 60 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.1.2
    WC Database Prefix: wp_
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (27) ###
    
    EA Share Count: by Bill Erickson & Jared Atchison – 1.8.0
    GWP Custom Product Tabs: by Ohad Raz – 1.2
    WooImporter Aliexpress Variations: by Geometrix – 1.2.8
    WooImporter: by Geometrix – 2.8.2
    Agile CRM WooCommerce: by Agile CRM Team – 1.0
    Breeze: by Cloudways – 1.0.6
    Contact Form 7: by Takayuki Miyoshi – 4.9
    ElasticPress: by Taylor Lovett
    Matt Gross
    Aaron Holbrook
    10up – 2.3.2
    
    Enhanced E-commerce for Woocommerce store: by Tatvic – 1.1.2
    Facebook for WooCommerce: by Facebook – 1.3.2
    MailChimp for WooCommerce: by MailChimp – 2.0.2
    WooCommerce Product Filter: by Mihajlovic Nenad – 6.4.5
    Soil: by Roots – 3.7.0
    TM WooCommerce Compare & Wishlist: by JetImpex – 1.1.7
    WooCommerce - Social Login: by WPWeb – 1.5.1
    Woocommerce Add to cart Ajax for variable products: by Rishi Mehta - Rcreators Websolutions – 1.2.9
    WooCommerce PayPal Express Checkout Gateway: by WooCommerce – 1.4.4
    WooCommerce Stripe Gateway: by WooCommerce – 3.2.3
    WooCommerce WooCart Pro: by Festi Team – 2.5
    WooCommerce: by Automattic – 3.1.2
    Yoast SEO: by Team Yoast – 5.6
    YITH WooCommerce Ajax Search Premium: by YITHEMES – 1.5.5
    YITH WooCommerce Bulk Product Editing Premium: by YITHEMES – 1.2.5
    YITH WooCommerce Mailchimp Premium: by Yithemes – 1.1.0
    YITH WooCommerce Quick View Premium: by YITHEMES – 1.2.4
    YITH WooCommerce Share For Discounts Premium: by YITHEMES – 1.4.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)
    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)
    
    ### WC Pages ###
    
    Shop base: #9 - /shop/
    Cart: #10 - /cart/
    Checkout: #11 - /checkout/
    My account: #12 - /my-account/
    
    ### Theme ###
    
    Name: Sage Starter Theme
    Version: 8.4.2
    Author URL: https://roots.io/
    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: shop/woocommerce/archive-product.php
    shop/woocommerce/auth/footer.php
    shop/woocommerce/auth/form-grant-access.php
    shop/woocommerce/auth/form-login.php
    shop/woocommerce/auth/header.php
    shop/woocommerce/cart/cart-empty.php
    shop/woocommerce/cart/cart-item-data.php
    shop/woocommerce/cart/cart-shipping.php
    shop/woocommerce/cart/cart-totals.php
    shop/woocommerce/cart/cart.php
    shop/woocommerce/cart/cross-sells.php
    shop/woocommerce/cart/mini-cart.php
    shop/woocommerce/cart/proceed-to-checkout-button.php
    shop/woocommerce/cart/shipping-calculator.php
    shop/woocommerce/checkout/cart-errors.php
    shop/woocommerce/checkout/form-billing.php
    shop/woocommerce/checkout/form-checkout.php
    shop/woocommerce/checkout/form-coupon.php
    shop/woocommerce/checkout/form-login.php
    shop/woocommerce/checkout/form-pay.php
    shop/woocommerce/checkout/form-shipping.php
    shop/woocommerce/checkout/payment-method.php
    shop/woocommerce/checkout/payment.php
    shop/woocommerce/checkout/review-order.php
    shop/woocommerce/checkout/terms.php
    shop/woocommerce/checkout/thankyou.php
    shop/woocommerce/content-product.php
    shop/woocommerce/content-product_cat.php
    shop/woocommerce/content-single-product.php
    shop/woocommerce/content-widget-product.php
    shop/woocommerce/emails/admin-cancelled-order.php
    shop/woocommerce/emails/admin-failed-order.php
    shop/woocommerce/emails/admin-new-order.php
    shop/woocommerce/emails/customer-completed-order.php
    shop/woocommerce/emails/customer-invoice.php
    shop/woocommerce/emails/customer-new-account.php
    shop/woocommerce/emails/customer-note.php
    shop/woocommerce/emails/customer-on-hold-order.php
    shop/woocommerce/emails/customer-processing-order.php
    shop/woocommerce/emails/customer-refunded-order.php
    shop/woocommerce/emails/customer-reset-password.php
    shop/woocommerce/emails/email-addresses.php
    shop/woocommerce/emails/email-customer-details.php
    shop/woocommerce/emails/email-footer.php
    shop/woocommerce/emails/email-header.php
    shop/woocommerce/emails/email-order-details.php
    shop/woocommerce/emails/email-order-items.php
    shop/woocommerce/emails/email-styles.php
    shop/woocommerce/emails/plain/admin-cancelled-order.php
    shop/woocommerce/emails/plain/admin-failed-order.php
    shop/woocommerce/emails/plain/admin-new-order.php
    shop/woocommerce/emails/plain/customer-completed-order.php
    shop/woocommerce/emails/plain/customer-invoice.php
    shop/woocommerce/emails/plain/customer-new-account.php
    shop/woocommerce/emails/plain/customer-note.php
    shop/woocommerce/emails/plain/customer-on-hold-order.php
    shop/woocommerce/emails/plain/customer-processing-order.php
    shop/woocommerce/emails/plain/customer-refunded-order.php
    shop/woocommerce/emails/plain/customer-reset-password.php
    shop/woocommerce/emails/plain/email-addresses.php
    shop/woocommerce/emails/plain/email-customer-details.php
    shop/woocommerce/emails/plain/email-order-details.php
    shop/woocommerce/emails/plain/email-order-items.php
    shop/woocommerce/global/breadcrumb.php
    shop/woocommerce/global/form-login.php
    shop/woocommerce/global/quantity-input.php
    shop/woocommerce/global/sidebar.php
    shop/woocommerce/global/wrapper-end.php
    shop/woocommerce/global/wrapper-start.php
    shop/woocommerce/loop/add-to-cart.php
    shop/woocommerce/loop/loop-end.php
    shop/woocommerce/loop/loop-start.php
    shop/woocommerce/loop/no-products-found.php
    shop/woocommerce/loop/orderby.php
    shop/woocommerce/loop/pagination.php
    shop/woocommerce/loop/price.php
    shop/woocommerce/loop/rating.php
    shop/woocommerce/loop/result-count.php
    shop/woocommerce/loop/sale-flash.php
    shop/woocommerce/myaccount/dashboard.php
    shop/woocommerce/myaccount/downloads.php
    shop/woocommerce/myaccount/form-add-payment-method.php
    shop/woocommerce/myaccount/form-edit-account.php
    shop/woocommerce/myaccount/form-edit-address.php
    shop/woocommerce/myaccount/form-login.php
    shop/woocommerce/myaccount/form-lost-password.php
    shop/woocommerce/myaccount/form-reset-password.php
    shop/woocommerce/myaccount/lost-password-confirmation.php
    shop/woocommerce/myaccount/my-account.php
    shop/woocommerce/myaccount/my-address.php
    shop/woocommerce/myaccount/my-downloads.php
    shop/woocommerce/myaccount/my-orders.php
    shop/woocommerce/myaccount/navigation.php
    shop/woocommerce/myaccount/orders.php
    shop/woocommerce/myaccount/payment-methods.php
    shop/woocommerce/myaccount/view-order.php
    shop/woocommerce/notices/error.php
    shop/woocommerce/notices/notice.php
    shop/woocommerce/notices/success.php
    shop/woocommerce/order/form-tracking.php
    shop/woocommerce/order/order-again.php
    shop/woocommerce/order/order-details-customer.php
    shop/woocommerce/order/order-details-item.php
    shop/woocommerce/order/order-details.php
    shop/woocommerce/order/tracking.php
    shop/woocommerce/product-searchform.php
    shop/woocommerce/single-product/add-to-cart/external.php
    shop/woocommerce/single-product/add-to-cart/grouped.php
    shop/woocommerce/single-product/add-to-cart/simple.php
    shop/woocommerce/single-product/add-to-cart/variable.php
    shop/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    shop/woocommerce/single-product/add-to-cart/variation.php
    shop/woocommerce/single-product/meta.php
    shop/woocommerce/single-product/photoswipe.php
    shop/woocommerce/single-product/price.php
    shop/woocommerce/single-product/product-attributes.php
    shop/woocommerce/single-product/product-image.php
    shop/woocommerce/single-product/product-thumbnails.php
    shop/woocommerce/single-product/rating.php
    shop/woocommerce/single-product/related.php
    shop/woocommerce/single-product/review-meta.php
    shop/woocommerce/single-product/review-rating.php
    shop/woocommerce/single-product/review.php
    shop/woocommerce/single-product/sale-flash.php
    shop/woocommerce/single-product/share.php
    shop/woocommerce/single-product/short-description.php
    shop/woocommerce/single-product/stock.php
    shop/woocommerce/single-product/tabs/additional-information.php
    shop/woocommerce/single-product/tabs/description.php
    shop/woocommerce/single-product/tabs/tabs.php
    shop/woocommerce/single-product/title.php
    shop/woocommerce/single-product/up-sells.php
    shop/woocommerce/single-product-reviews.php
    shop/woocommerce/single-product.php
    shop/woocommerce/taxonomy-product_cat.php
    shop/woocommerce/taxonomy-product_tag.php
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there @linkslegend

    Thanks for your post and for providing all these details upfront.

    I can see that this site meets all the required specifications to run MailChimp for WooCommerce. That said, I suspect there may be a plugin conflict going on that’s causing the site to not clear out the cart after the purchase is complete.

    Just to be sure we’re on the samge page, could you clarify a few details to better inform our troubleshooting moving forward?

    – Does this issue only occur when checking out via PayPal?
    – What is the specific plugin being used to enable checkout via PayPal? I can see “WooCommerce PayPal Express Checkout Gateway” in the status report, but I’d like to confirm
    – Does this issue persist when using a different PayPal checkout plugin?
    – What is the specific step by step process you’re taking up to seeing the cart not cleared out?

    Thanks so much for these additional details. I’ll keep an eye out for your reply.

    – Malachite

    Thread Starter linkslegend

    (@linkslegend)

    Hi!
    – Does this issue only occur when checking out via PayPal?
    Yes only PayPal (PayPal and Stripe are in sandbox mode)

    – What is the specific plugin being used to enable checkout via PayPal? I can see “WooCommerce PayPal Express Checkout Gateway” in the status report, but I’d like to confirm
    This Plugin is only for PayPal express checkout. I use the standard PayPal Checkout build into WooCommerce. I have deactivated this plugin but it didn’t help

    – Does this issue persist when using a different PayPal checkout plugin?
    I haven’t tried this but I’m using the build in PayPal plugin. This shouldn’t cause any problems or?

    – What is the specific step by step process you’re taking up to seeing the cart not cleared out?
    The normal process I suppose.
    1. Add product to cart
    2. get redirect to cart or directly to checkout
    3. fill out the form and press “Proceed to PayPal”
    4. then I login to PayPal, pay and get redirected to the order-received page and the product is still in the cart. (When I force reload the cart gets cleared)

    Thanks for your help!

    Hey @linkslegend,

    Thanks for following up here. I was not able to reproduce this issue when using the same workflow and plugins, though with that being said, I am going to pass this along to our developers for further investigation.

    I can’t speak to a firm ETA on when to expect a resolution here, though definitely feel free to let us know if you have questions in the meantime.

    Thanks again for diligently reporting this for us,
    Malachite

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkout cart wont clear’ is closed to new replies.