Code change on a button (add to cart)
$30-250 USD
Paid on delivery
I need to change the code below to instead of adding the product to the cart it will select a link from the database in a column called "products url" (this is already in my d/b) based on the "products_id" (each item has its own unique url in the column "products_url") so basically taking the customer to that url also.
if someone can give me an estimate we will agree pay you (through escrow or something like that) and you can email the code we will test it and release the funds.
This is very time sensitive.
// customer adds a product from the products page
case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
$attributes = isset($HTTP_POST_VARS['id']) ? $HTTP_POST_VARS['id'] : '';
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes);
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;
Project ID: #1384745