Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping Cart


Flux

Recommended Posts

Posted

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?

Posted

 

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

Archived

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

×
×
  • Create New...