• Resolved niznotthewiz

    (@niznotthewiz)


    Is there a way for the “ADD TO CART” button to update to “IN YOUR CART” once a customer has clicked on “ADD TO CART”?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Stef

    (@serafinnyc)

    Hello @niznotthewiz there is a way, but know that eCommerce is a psychological stage. You’re invoking them to do something with Add to Cart whereas In Your Cart assumes that they already added it to the cart.

    So my question is why would you want to change the ATC button to that? Changing the “View Cart” I can see and understand, but not the ATC.

    If you must change the ATC button then you can use a plugin like this one and here’s an article on the best plugins to use for this.

    If you want to hook it let me know and I’ll write a hook for you.

    Thread Starter niznotthewiz

    (@niznotthewiz)

    I think my initial post might be misunderstood.

    I am not looking to change the text of the ATC button. What I am frustrated with is that after the customer has “clicked” the ATC button and has put a particular item(s) in his cart, the ATC button still shows ATC. I want sort of an indicator that that item is now in his cart.

    whether the button shows ” View Cart” or “In your cart” is fine with me.

    Stef

    (@serafinnyc)

    Hello @niznotthewiz thanks for clarifying. Well your current theme is showing the “view to cart” If you want to hide the ATC after the action, then it will require some CSS.

    You can add this to your Additional CSS section inside Customizer

    .add_to_cart_button.added{ display: none !important; }

    Thread Starter niznotthewiz

    (@niznotthewiz)

    Thank you Stef. Very helpful

    But when the page is refreshed, the “View Cart” disappears and the ATC button stays the same.

    I think it would be very helpful to customer if there was a indicator that a particular item was already in their cart if they left the page and came back to visit the same product again

    Stef

    (@serafinnyc)

    Hey there @niznotthewiz that’s normal for that to happen. Why would a customer refresh the page like you just did? The actions on your website are pretty standard right now. You click ATC it adds it to the cart. You even have a sticky header and in that the mini cart where yet another indicator is showing items in the cart. I’m not sure what more you would / could want.

    Every theme is different and they all come with different actions and events. Maybe your theme is limited to those that you seek. Others have cart drawers and banners flying out letting the user know, but all that is outside this forum’s support measures per TOS guidelines. This is strictly for WooCommerce core and no customization.

    Hi @niznotthewiz,

    Thank you for reaching out.

    It is possible to change the “ADD TO CART” button to “IN YOUR CART” once a product has been added to the cart, however, this would require some custom coding to achieve.

    I would recommend hiring a developer as this out of our support scope.

    I hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change the behavior of ADD TO CART button’ is closed to new replies.