Flux Posted December 6, 2004 Posted December 6, 2004 I've been trying to make a change to the shopping cart but i cannot seem to find the code to do it. The part i want to change is when you go go from product_info.php to shopping_cart.php after clicking 'add to cart'. Instead of directing the user to shopping_cart.php i want to direct them elsewhere. Anybody know where the code to change this is?
boxtel Posted December 6, 2004 Posted December 6, 2004 Anybody? <{POST_SNAPBACK}> you will find this in application_top.php // 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); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Treasurer MFC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.