snights Posted February 21, 2010 Posted February 21, 2010 Hi, Do someone know how to make a buy now button with session? I have on my mainpage done my own buy me buttons and info buttons to products that i selected.. And have done links like this <a href="http://www.xxxxxx.com/t-shirt-c-3_14_55.html?products_id=102&action=buy_now&sort=2a">Buy this relly cool t-shirt</a> I have used force cookie true before.. Therefor i haved no problem with these kind of links. But now im gonna set force cookie to false and let in customers that dont have accepted cookies on there browser. and i have to do link with tep_href_link so sessions dont get lost. To get to a product info page a link lookes like this <a href="<?php echo tep_href_link('product_info.php', 'products_id=84'); ?>"> But how do i do for a buy now link? And second question. On shopping_cart.php you have a back button. But that button only works on that page.. I want same button on product info and checkout.. so on. A javascript:history.go(-1) that dosent drop session. Many thanks
snights Posted March 3, 2010 Author Posted March 3, 2010 What i can see javascript:history.go(-1) dosent drop session... So it seems to work.. Question about buy now button remains
Recommended Posts
Archived
This topic is now archived and is closed to further replies.