PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 6/20/2020 4:17 AM by  3ART Technologies
Qty in add to cart with decimal value
 5 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





Basic Member






--
6/14/2020 4:03 PM
    Hi,
    There is problem, I hope there will be some solution. In our situation, the quantity is adding as 0.5 instead of 1 like 0.5 KG. Add to cart option only allowed the int, how to taking care of this in cart.

    If anyone has an idea please inform me ASAP.





    Basic Member






    --
    6/14/2020 6:36 PM
    Is there any quick fix for this issue, I saw in the db it's int.





    Veteran Member






    --
    6/18/2020 12:37 PM
    I can't think of a fix for this off of the top of my head, because there's not really anything I can think of to fix. Can you please help me understand a use case where quantities should not be whole numbers?
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    6/19/2020 5:06 AM
    I think you shouldn't use quantity as you intended.
    The shop is made to sell products, not increments of goods.

    To solve your problem you could create a product (a 'virtual' Package) that contains 0.5kg of your goods.
    Then the client can add multiple of this products to the basket.

    I think Will is right here: I too can't think of a case where a client can only buy half of a product.





    Veteran Member






    --
    6/19/2020 3:35 PM
    [quote=Reto Cossalter;1447]To solve your problem you could create a product (a 'virtual' Package) that contains 0.5kg of your goods.
    Then the client can add multiple of this products to the basket.[/quote]

    This is a fantastic suggestion/workaround. Thank you! :)
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: