Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty cart after adding items


Eitan

Recommended Posts

Hello,

 

ok, to break it down im using 2.2 and it is running on IIS6 with latest php, and mysql. now, the problem i am having only seems to come from older pc's or macs. after addings items to the cart, when u proceed to checkout, you get no items in the cart, even though you have added them. I get this problem only with my G5, and i have had costumer complains of the same, after talking to them, one costumer was using win 98 system but with IE6. tried searching the forums for this bug, coudlnt find it. any suggestions and help is appricaited

 

Thanks in advance

 

Eitan

Link to comment
Share on other sites

After further review of the problem, and readying through these forums, i have figured out that it is related to the php version im using. I have messed around with different versions and have got it to work on my Mac G5, but it stopped working on an xp pro system. So any imput on what imd oign wrong, or what hte optimal version of php to use, or how to tweek to make it work.

 

Thanks

Link to comment
Share on other sites

The problem is still ungiong, changed through countless versions of php. works on different platforms each time i change it, unsure of how i could go about fixing this. any info would be greatly appricaited

 

 

eitan

Link to comment
Share on other sites

can you describe the problem in terms of files a bit? so the shopping_cart.php is ok but the checkout_confirmation.php does not show the items? what happens if you go back to the cart contents from the confirmation page? the items re-appear?

Link to comment
Share on other sites

can you describe the problem in terms of files a bit? so the shopping_cart.php is ok but the checkout_confirmation.php does not show the items? what happens if you go back to the cart contents from the confirmation page? the items re-appear?

 

thanks for the quick reply.

 

Interestingly enough, as i was testing some more I realised that the problem only occurs when you click Buy now! but not when u go to product description and then click add to cart, Basicly when you click buy now! it takes you to your shopping cart, and sais ur shopping cart is empty.

 

Thanks again

 

Eitan

Link to comment
Share on other sites

Hello,

 

ok, to break it down im using 2.2 and it is running on IIS6 with latest php, and mysql. now, the problem i am having only seems to come from older pc's or macs. after addings items to the cart, when u proceed to checkout, you get no items in the cart, even though you have added them. I get this problem only with my G5, and i have had costumer complains of the same, after talking to them, one costumer was using win 98 system but with IE6. tried searching the forums for this bug, coudlnt find it. any suggestions and help is appricaited

 

Thanks in advance

 

Eitan

Dont Quote me on this? But there is a mod you do ? dont ask me where to look as I cant remember back that far,but when you have Zero store onhand in your database and the customer proceeds to purchase anyway they are unable to complete the check out process returning an empty cart.

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Dont Quote me on this? But there is a mod you do ? dont ask me where to look as I cant remember back that far,but when you have Zero store onhand in your database and the customer proceeds to purchase anyway they are unable to complete the check out process returning an empty cart.

 

hm, ive been searching forums and bug reports for days now. Cant seem to find the solution, but i think i found the problem, it seems that clickinb buy now doesnt work, but going into product info and then clicking add to cart does work. I figure this is because some sort of mod i installed, and never noticed the problem until to late. How cna i go about changing the way the buy now function works and make it similar to the add to cart function.

 

Thanks again

 

Eitan

Link to comment
Share on other sites

can you post the lines of code from the "buy now" button? Should be in one of the listing files. (dont post the entire file)

 

// performed by the 'buy now' button in product listings and review page

case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

} else {

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

}

 

this in application_top.php, im thinking thats it, not sure how to go about fixing it.

 

Eitan

Link to comment
Share on other sites

that part should be ok as far I can see.

 

With the default core when you click a category that has products it loads the product_listing.php from the modules subdir. In there (near the end) there is a case statement like this:

 

          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']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
           break;

 

make sure is there is this tep_href_link for the redirection or you could post that part of the file if its different

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...