How can i check if a product is in cart or not?
-
This post is deleted! -
@jaseelpv
Yes, you may check the below link to change add to cart button in home page
https://forums.bagisto.com/topic/1647/how-to-delete-add-to-card-button-from-front-page
https://forums.bagisto.com/topic/345/where-to-find-products-page-blade-file/2 -
Hi @Vaishali-Agarwal
I dont want to remove the add to cart button. If a product is in cart, the add to cart button should turn to go to cart button.
Is there any function or method to find a product is in cart or not by providing product id? -
Hi @jaseelpv,
You need to check this component i.e.
packages/Webkul/Velocity/src/Resources/assets/js/UI/components/add-to-cart.vue
. Here you need to write your logic for text.