In XStore theme Magic checkout is not working properly

This topic has 4 replies, 2 voices, and was last updated 1 weeks ago ago by Luca Rossi

  • Avatar: Deepak
    Deepak
    Participant
    May 30, 2025 at 04:03

    In XStore theme Magic checkout is not working properly.

    I have two issues these are very important :

    1 : Basically what happens “add to cart” and “checkout” button coming twice with
    different functionality,
    I want only magic checkout functionality once, Because others buttons are taking
    me to the woocomerce functionality. I want that popup ones.

    2 : When I’m clicking on size and then clicking on buy now button its giving error
    “Your cart is empty, please add few items”

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    May 31, 2025 at 02:48

    Dear @Deepak,

    We hope this message finds you well.

    We would like to inform you that the second “Buy Now” button has been removed as requested. Additionally, we have added the following custom code to the functions.php file located within your child theme:

    
    add_action( 'woocommerce_before_add_to_cart_quantity', 'bbloomer_display_dropdown_variation_add_cart' );
    
    function bbloomer_display_dropdown_variation_add_cart() {
       global $product;
       if ( $product->is_type( 'variable' ) ) {
          wc_enqueue_js( "
             $( 'input.variation_id' ).change( function(){
                if( '' != $(this).val() ) {
                   $('#btn-1cc-pdp').attr({
                       product_id: $(this).val(),
                       value: $(this).val(),
                       quantity: $('.woocommerce-variation-add-to-cart input.qty').val()
                   })
                }
             });
             $('.woocommerce-variation-add-to-cart input.qty').change( function() {
                $('#btn-1cc-pdp').attr({
                    quantity: $(this).val()
                })
             })
          " );
       }
    }
    

    Could you kindly review the changes and let us know if everything is working as expected?

    Best regards,
    The 8Theme Team

    Avatar: Deepak
    Deepak
    Participant
    May 31, 2025 at 13:06

    I aslo have other issue like in quick cart view, Two checkout buttons are comming.

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    May 31, 2025 at 17:45

    Hi @Deepak,

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    .elementor-widget-theme-etheme_cart #btn-1cc-mini-cart {
    		display: none !important;
    }
    

    Kind regards,
    The 8Theme Team

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

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

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