Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shopping cart issue


jlynskey

Recommended Posts

im having this problem,

 

ok, so ive installed osc 2.2rc2a on localhost, got it working, then i have installed sts for that version, got that working, integrated my existing html/css/javascript template with osc, got that working, but...

 

 

i was tinkering with all the functions to see if everything has been working correctly, for example, adding products to cart (note, just using the fictitious products, not my own).

 

as i started to add some sample products to cart, for example, dvds, everything i added went into the cart, but as soon as i went to another sample product category, for example, computer memory, the cart contents registered as zero.

 

it appears that the contents of shopping cart are removed each time i go to another product category.

 

what am i doing wrong? is there a setting somewhere that i just dont know about? please help.

 

 

 

 

 

also, one last question, is there a limit to how many products you can add to the shopping cart? if so how can it be modified?

Link to comment
Share on other sites

Are you using hardcoded links to the categories in your template? Most likely a missing session id is the culprit that empties the cart. You may check the database table sessions to see if the carts are stored for different session ids.

 

What goes to the item limit, you can set it in admin/configuration/maximum values

Link to comment
Share on other sites

Are you using hardcoded links to the categories in your template? Most likely a missing session id is the culprit that empties the cart. You may check the database table sessions to see if the carts are stored for different session ids.

 

What goes to the item limit, you can set it in admin/configuration/maximum values

 

 

thanks for your help.....

 

 

took me some time to figure out but it appears that a new session id is generated every time i switch to a new category. i just started to add links to my dynamic menus and i removed the session id from the category link and that seemed to work for my dynamic menu but when i click on a category link in the scroll category menu (from sts?) the problem persists.

 

i still have the original category menu on my page (which will be removed when i finish coding my dynamic menu) but that is creating the same problem.

 

i would like to remove the session ids for the drop down category menu because i believe that might solve the problem. anyone know how to do that?

 

also, where can i find a list of source links for each category (that currently exists, or will exist) so that i can paste the links into my dynamic menus later without having to view properties/view selection source on the standard osc category menu?

 

notes:

 

 

*i have session id for spiders turned off,

*force cookie use is turned off (i use firefox, w/ cookie on, but still im getting the "cookies disabled" message (might be my security) so i have this force cookie off)

*my sessions are still stored in folder /tmp

 

Q: is it safer to store sessions in a folder or in mysql? what are the benefits to each one?

Link to comment
Share on other sites

thanks for your help.....

 

 

took me some time to figure out but it appears that a new session id is generated every time i switch to a new category. i just started to add links to my dynamic menus and i removed the session id from the category link and that seemed to work for my dynamic menu but when i click on a category link in the scroll category menu (from sts?) the problem persists.

 

i still have the original category menu on my page (which will be removed when i finish coding my dynamic menu) but that is creating the same problem.

 

i would like to remove the session ids for the drop down category menu because i believe that might solve the problem. anyone know how to do that?

 

also, where can i find a list of source links for each category (that currently exists, or will exist) so that i can paste the links into my dynamic menus later without having to view properties/view selection source on the standard osc category menu?

 

notes:

 

 

*i have session id for spiders turned off,

*force cookie use is turned off (i use firefox, w/ cookie on, but still im getting the "cookies disabled" message (might be my security) so i have this force cookie off)

*my sessions are still stored in folder /tmp

 

Q: is it safer to store sessions in a folder or in mysql? what are the benefits to each one?

 

 

 

correction:

 

i believe sessions are stored in mysql because thats what it says in configure.php

 

 

also, the session change problem persists when i click on a link in my dynamic menu links (errrrrrrrrrrrrr)

 

 

forgive me but im a complete noob!

 

 

any idea as to why a new session id is generated when a new product category is selected?

 

 

also, how to you set permissions?

Link to comment
Share on other sites

It appears you are linking incorrectly within your site http://www.oscommerce.com/forums/index.php?sho...c=330479&hl

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

It appears you are linking incorrectly within your site http://www.oscommerce.com/forums/index.php?sho...c=330479&hl

 

 

thanks spooks times a million!

 

i dont know what i would have done if i dint solve that issue. the problem is a real easy fix, now that i think of it.

 

in case anyone wants to know, this is how:

 

basically, the problem was that every time I clicked on a new link, it kept generating a new session id.

 

the solution: to code the links to recreate the same session as the last.

 

this is how:

 

basically the "tep_href_link" command recreates the same session at the new link. in the bottom case, the link is referenced to file "index.php" command "cPath=3_12". cPath=whatever is the category page to whatever product or category you want to link to. you just change this number to whatever page you want to link to

 

example:

 

<a href="<?php echo tep_href_link('index.php','cPath=3_12'); ?>">example text</a>

 

you can do the same if you want to link to a custom page, for example, contact_us.php in which case your link should look like this:

 

<a href="<?php echo tep_href_link('contact_us.php'); ?>">contact us</a>

 

 

as long as you link to <?php echo tep_href_link('whatever.php'); ?>, you should be fine!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...