Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! With application_top case...


Rwfresh

Recommended Posts

Hi all,

 

I am pretty new with php and OSC. I am looking for someone who can explain what is happening line by line in the following case taken from application_top.php:

 

case 'add_product' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) {

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity($HTTP_POST_VARS['products_id'])+($HTTP_POST_VARS['cart_quantity']), $HTTP_POST_VARS['id'], true);

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL'));

break;

 

The more detailed the better but any help is appreciated.

 

Specifically i am trying to have the add_product procedure take into consideration some other pricing i have added that cannot be handled by the Options functionality. THANK YOU for any help!

 

rw

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...