Bagisto Forum

    Bagisto

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

    How is working Add to cart section ? Please tell me

    General Discussion
    2
    4
    365
    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.
    • _
      _developer_12 last edited by

      I have customized product attributes on front end and now i want to add product on cart so how can i set of cart session and also please tell me how to set cart's validation

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @_developer_12

        you can check flow of add to cart process from here;
        https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Shop/src/Http/Controllers/CartController.php

        1 Reply Last reply Reply Quote 0
        • _
          _developer_12 last edited by

          I have already checked i have print request like this "print_r(request()->all())" after this i got this response :

          Array ( [is_buy_now] => 0 [_token] => wiJIemaf5rBStxjx5VNGoZJHmhnIX1IQHcP7wo9s [product_id] => 10 [quantity] => 1 [selected_configurable_option] => 11 [super_attribute] => Array ( [23] => 1 [24] => 6 ) )

          How can i pass new key(attribute value) in this array for custome attribute ?
          thanks

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            Hi @_developer_12
            If you are working on core, you can merge the custom attribute value in the request, then check response again.

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