Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How can i check if a product is in cart or not?

    Knowledge Base
    3
    4
    343
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post