Was wandering if anyone could help me with this one.
I’m trying to create an input fields for when I put in a product code and press eneter it would add it to the cart automatically. Can any one help me with this simple code? I have tried myself but haven’t had any luck.
Was wandering if anyone could help me with this one.
I'm trying to create an input fields for when I put in a product code and press eneter it would add it to the cart automatically. Can any one help me with this simple code? I have tried myself but haven't had any luck.
Create simple form (with POST method) with the following inputs
dispatch = checkout.add - hidden
product_data[1][product_id] = 1 - hidden
product_data[1][amount] - input
product_data[2][product_id] = 2 - hidden
product_data[2][amount] - input
product_data[3][product_id] = 3 - hidden
product_data[3][amount] - input
submit button
where 1,2,3 - IDs of the required products