kgui87 Posted February 9, 2008 Posted February 9, 2008 Hello all, When I press "Add to Cart" or "Buy Now," it doesn't correctly redirect back to the previous page. Why? the original code in application_top.php is: case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; I added the quantity module (I forget the name) so the "+1" simply changed to "+$quantity." So, it should be fine, but it's not. What happens? Well, when you press "Add to Cart" or "Buy Now," it brings the user to a blank page, but doesn't redirect back to the previous page Any suggestions?
kgui87 Posted February 10, 2008 Author Posted February 10, 2008 I guess no suggestions. I've been stuck on this for awhile now.
kgui87 Posted February 10, 2008 Author Posted February 10, 2008 If anyone wants to know what my problem is: 1) Go to http://www.injurypacks.com 2) Go to any of the products_info pages by clicking on any of the products 3) Try to add any of them to cart with your quantity or click Buy Now at the products listing page 4) If it leads to a blank white page, ding, that's my problem. I don't understand why it does that. Can anyone show me their products_info.php and application_top.php codes for reference?
Mav666 Posted February 10, 2008 Posted February 10, 2008 Looks like the checkout links have a similar problem ... have you tried to roll back to the backup before you installed the contribution? You do have one, right? Even at a Mensa convention someone is the dumbest person in the room.
kgui87 Posted February 10, 2008 Author Posted February 10, 2008 Looks like the checkout links have a similar problem ... have you tried to roll back to the backup before you installed the contribution? You do have one, right? Yes, I was thinking about doing that but I just didn't want to sit around another 2+ hours trying to get it back to the way it is now. I have an off day tomorrow so I guess I have no choice. Thanks anyway.
koskay Posted April 21, 2008 Posted April 21, 2008 I have similar problem, anyone else get a solution?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.