Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Keep shopping cart info


maakum

Recommended Posts

Hi all,

 

We have an osCommerce shop that is only a small part of our website. The site has many more pages.

We have a problem integrating the shop-part with the other pages of our site.

 

Every time a visitor leaves the shop-pages, the cart is emptied when he returns to the shop. Also he is logged out as soon as he leaves the shop-pages.

 

Does anyone have a solution for this problem?

 

Thanks for helping.

 

Paul and Helga

Link to comment
Share on other sites

The issues are not simple here. There are session variables you'd have to keep somehow. I'm no coder, but my cart is successful so my advice is:

Really, from a marketing standpoint you want to keep them in the store anyway, so you should try hard to avoid linking out. It would be better to keep them in by adding information pages within the store. Use the outside site to get them in (if you really even need it) but have all information inside. You can add extra pages easily in the information area (there's even a Contribution to help with that). Improve the content of your category and product descriptions, too. That will help with rankings and keep them even closer to the Add to Cart buttons! Then, make the checkout quick and painless (again with contribs) to get them to that most important button; the one that completes the sale!

Link to comment
Share on other sites

Thanx for the reply Dan, but i solved it in the mean time:

 

By adding:

 

<? output_add_rewrite_var('osCsid', $_GET['osCsid']); ?>

 

in the other pages of our website.

 

It passes on the 'osCid' in the URL with every link you click on.

 

Sometimes the issues are simple! :D

 

 

Hope this also helps someone else.

Link to comment
Share on other sites

  • 3 weeks later...
Thanx for the reply Dan, but i solved it in the mean time:

 

By adding:

 

<? output_add_rewrite_var('osCsid', $_GET['osCsid']); ?>

 

in the other pages of our website.

 

It passes on the 'osCid' in the URL with every link you click on.

 

Sometimes the issues are simple! :D

Hope this also helps someone else.

 

Simple but loaded with pitfalls. Normally on a site with the sessions/cookies working correctly there's no session id in the url.

 

With your method it's there and if someone bookmarks the page or a spider captures it all hell will break loose because you'll have multiple visitors coming in with the same session id.

 

Result? Angry emails from people that are seeing other people's private info.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...