After removing the product in cart, again it has been added to your cart automatically

This topic has 9 replies, 4 voices, and was last updated 2 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: vjm
    vjm
    Participant
    July 27, 2024 at 14:49

    check the screenshot

    Files is visible for topic creator and
    support staff only.
    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 28, 2024 at 07:52

    Hello vjm,

    Thank you for reaching out to us.

    1/ We recommend that you disable all third-party plugins that are not included with XStore
    (https://www.8theme.com/documentation/xstore/plugins/included-plugins/). After doing so, please clear your browser’s cache and check again. It is possible that one of these additional plugins is causing the issue.

    2/ Update the theme and plugins https://www.8theme.com/documentation/xstore/theme-installation/theme-update/ https://www.8theme.com/documentation/xstore/plugins/plugins-update/ , clear cache and check the result.

    3/ Do you have this problem when another theme is activated, for example – Storefront?
    Go to Appearance > Themes > Install and activate Storefront (default WooCommerce theme) to test this and let us know the result.

    Best Regards,
    8Theme’s Team

    Avatar: vjm
    vjm
    Participant
    July 29, 2024 at 06:40

    our installed plugin list
    1. Contact Form 7
    2. Elementor
    3. MC4WP: Mailchimp for WordPress
    4. PRO Elements
    5. WooCommerce
    6. XStore Core

    after updating the xstore themes and plugin still same issue can you check it from your end

    Avatar: vjm
    vjm
    Participant
    July 29, 2024 at 07:22

    continue shopping option not display in cart page, it display in checkout page

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 29, 2024 at 07:28

    Dear vjm,

    We’ve checked and see that removing from the cart works fine when the parent theme is activated https://gyazo.com/a5afb53f0129b7bc4d5f796d723c95c4
    Please check the custom code in your child theme files (temporarily remove code and test the result) to find our what exactly caused the issue.

    Best Regards,
    8Theme’s Team

    Avatar: vjm
    vjm
    Participant
    July 29, 2024 at 07:53

    below codes in theme child functions.php

    below code to disable offer product in shop page

    function custom_pre_get_posts_query( $q ) {
    
        $tax_query = (array) $q->get( 'tax_query' );
    
        $tax_query[] = array(
               'taxonomy' => 'product_cat',
               'field' => 'slug',
               'terms' => array( 'offers' ), // Don't display products in the clothing category on the shop page.
               'operator' => 'NOT IN'
        );
    
        $q->set( 'tax_query', $tax_query );
    
    }
    add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' );

    below code is added by your team regarding cart icon in related products add to cart button

    add_action('wp_footer', 'n2t_wp_footer');
    function n2t_wp_footer(){
    	if(is_product()){
    		?>
    		<script>
                jQuery( function($){
                    $(document).ready(function(){
                        $('.elementor-widget-woocommerce-product-etheme_related .add_to_cart_button').html('<i aria-hidden="true" class="et-icon et-shopping-cart"></i> <span class="button-text">Add to cart</span>');
                    })
                });
    		</script>
    		<?php
    	}
    }

    after removing the above code same error showing

    check the screenshot

    Files is visible for topic creator and
    support staff only.
    Avatar: vjm
    vjm
    Participant
    July 29, 2024 at 08:02

    check the screenshot

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 29, 2024 at 10:05

    Dear @vjm,

    We hope this message finds you well.

    We would like to inform you that we have been unable to replicate the issue you reported on our local site. We have recently switched to using the Cart of Elementor, and it appears that the issue has been resolved. You can view the changes here: https://prnt.sc/tVnVSnHhMMhy.

    Could you please verify this on your end and confirm if the issue persists?

    Thank you for your cooperation.

    Best regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 29, 2024 at 11:28

    Dear vjm,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘after removing the product in cart, again it has been added to your cart automatically’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.