ianric Posted August 17, 2006 Share Posted August 17, 2006 Hi When a customer adds a product to their cart, I have a JS popup window which shows the shopping cart. The popup is working but I can't get the item added to the cart. This is the code I am using case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '" onClick="java script:MiniNewWindow(\'shopping_cart.php?action=add&popup=yes\'); return false;">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; If I manually paste the products_id and ocs_id=blah into the URL at the end of the code below produces it gets added to the cart '" onClick="java script:MiniNewWindow(\'shopping_cart.php?action=add&popup=yes&<products_id variable needs to go here>\'); return false;">' Also the new popup window doesn't recognise the customer who is logged in - it says shopping cart for guest contains 0 items. Hope someone can help many thanks Ian Link to comment Share on other sites More sharing options...
ianric Posted August 18, 2006 Author Share Posted August 18, 2006 Still struggling with this. Any ideas??? I figured the 2nd part to the question would have been solved with cookies so I installed the autologin_secure 2.01. It still worked but I got the famous "Unable to determine link" error but if I refreshed the product was added to the cart?? Ian Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.