Bagisto Forum

    Bagisto

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

    unable to add configurable-product in bagisto.

    General Discussion
    2
    2
    526
    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.
    • S
      sohaib last edited by

      We are unable to add configurable products to cart in bagisto.. as mentioned in documentation we used the following api
      /api/checkout/cart/add/ and created json to push item to cart which results in getting 200 response with error proudct_id index of undefined.

      {
      quantity: 1,
      is_configurable: false,
      selected_configurable_option:$('#variant_id').val(),
      super_attribute : {

              24 : $('#size_id').val(),
              35 : $('#flav_id').val()
          }
      }
      

      need some guidance please.

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

        Hi @sohaib,

        Please check here,
        https://devdocs.bagisto.com/1.x/api/cart.html#_3-adding-more-products-to-the-same-cart

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