Add product into basket

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Fanfe Yvon
Posts: 5
Joined: 16 Feb 2019, 09:57

Add product into basket

Post by Fanfe Yvon » 16 Feb 2019, 10:33

Hello,

I'm new to aimeos and have some issue.
I have products into my website that i'm uploading to the aimeos database from a remote server throw a csv file.
Now i want to add a product to the basket from the front end and what it does not work.
It always says "Basket empty"

This is my form :

Code: Select all

<form method="POST" action="{{url('/basket')}}" id="formbasket" name="formbasket">
                <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
                
                <div class="addbasket">
                    <div class="input-group">
                        <input type="hidden" name="b_action" value="add">
                        <input type="hidden" name="b_prod[0][prodid]" value="{{$data['product_id']}}">
                        <input type="hidden" name="b_prod[0][quantity]"  value="1">
                        <button class="btn btn-primary btn-lg" type="submit" value="">
                            Add to basket               
                        </button>
                    </div>
                </div>
 </form>
Please can some one help?

Fanfe Yvon
Posts: 5
Joined: 16 Feb 2019, 09:57

Re: Add product into basket

Post by Fanfe Yvon » 16 Feb 2019, 15:00

Problem solved,

I had to add a categorie to each product

Post Reply