Bagisto Forum

    Bagisto

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

    "POST api/checkout/cart" Limitation on the number of items added to the cart.

    Bug Report
    2
    2
    142
    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.
    • T
      tmss last edited by

      thank you for your hospitality

      When adding products to the cart with "POST api/checkout/cart", is the "Bagisto" validated for the "quantity"?

      It seems to be buggy if there is no maximum quantity limit, because of the following "js" specification
      (The maximum number should be 15 digits or less due to the "js" specification)

      Example.)
      Input quantity
      "quantity": 999999999999999999999
      ↓↓
      Result of request in js
      "quantity": 1e+21
      ↓
      "Bagisto".
      {"data":{"product_id":1, "quantity":1.0e+21}}
      ↓
      Added in Result 1

      Sorry if I'm wrong, it's a difficult subject.
      Best regards.

      ashish2409 1 Reply Last reply Reply Quote 0
      • ashish2409
        ashish2409 @tmss last edited by

        @tmss

        Thank you so much for bringing your query to us.
        We will be checking and updating you on the same.
        We really appreciate your participation on the Bagisto ECommerce Platform.

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