Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link with session


snights

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...