• Hi, whhen we change the qty to 0 to delete a product in the checkout, it gets back to “1”, the value is fixed.

    / new comments

    In fact, we cant change the qty to any other than 1

    • This topic was modified 3 years, 1 month ago by luiscom.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter luiscom

    (@luiscom)

    Yes, I can change the code, thanks!

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    That’s cool. Please open the file “change-quantity-on-checkout-woocommerce.php” which is located under my plugin folder.

    Then find the below line and its respective closing bracket.
    if ( $form[0].checkValidity() ){

    Once you have closed the above code and the closing bracket then you can update the cart to 0 which will, in turn, delete the cart.

    Note: Please take the backup before applying any changes.

    Please let me know the result.

    Regards,
    Bhavik

    Thread Starter luiscom

    (@luiscom)

    I`ve found the code and it’s already closed, I’ve commented it and it lets me to change the qty to “0” but the carts is not updated. What do I have to change in this lines?

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Can you please explain what does the cart is not updated means?

    Thread Starter luiscom

    (@luiscom)

    I change th qty to “0” but the product is not deleted

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Maybe then we need to apply the custom solution, in this case, please let me know if you want to apply the custom solution. It would be paid solution.

    Thread Starter luiscom

    (@luiscom)

    Sure, please send me an estimation to [email protected]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t change quantity to “0”. The quantity value gets bak to “1”’ is closed to new replies.