com2 Posted November 19, 2002 Posted November 19, 2002 I try to create one URL that would add a product automatically to the cart. I look at the content of the page and send the same what a form submittion would do. The id[4] and id[7] are from two pulldown boxes to choose the options of this product: =1&id[7]=29]http://shop/product_info.php?products_id=3...d[4]=1&id[7]=29 Problem is that the shopping_cart comes up without the product added and with the following error at the left top corner, just above the table where the cathegories appear: Warning: Wrong datatype for second argument in call to in_array in c:localpathshopincludesboxescategories.php on line 31 Warning: Wrong datatype for second argument in call to in_array in c:localpathshopincludesboxescategories.php on line 38 What am I doing wrong?
Guest Posted November 19, 2002 Posted November 19, 2002 try looking at the call for the buy now button
com2 Posted November 20, 2002 Author Posted November 20, 2002 I did, but it doesn't give me a clue about the options. When there are options in a product, the buy now button will NOT add the product to the cart, but gives you the choice of options and sends me to product_info.php?products_id=32. What I want is make the choice for the client automatically. I will have a look at the code though, to see what it does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.