Home Forums Basel support forum Change “add to cart” button behavior

Change “add to cart” button behavior

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13976

    alexsupra
    Participant

    Hi. After pressing on “add to cart” button on some product it changes its state to “view cart”. It is necessary to change this button behavior to allow user to add to cart the product one more time (without need to refresh the page or go to cart page). It means that after pressing “add to cart” button once or several times the button should not change it state to allow user to add the product to cart so many times as it needed. How to do it?

    #13979

    Artem Temos
    Keymaster

    Hello,

    Thank you for choosing our theme and contacting us.

    Try to add this code snippet to change this button

    .product-grid-item .add_to_cart_button.added {
        display: inline-block;
    }
    
    a.added_to_cart {
    	display:none;
    }

    Kind Regards
    XTemos Studio

Viewing 2 posts - 1 through 2 (of 2 total)