Code change on a button (add to cart)

Completed Posted Jan 12, 2012 Paid on delivery
Completed 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;

PHP

Project ID: #1384745

About the project

2 proposals Remote project Active Jan 12, 2012

Awarded to:

AlinGhinoiu

Hello ! I can help you out with your osC add-to-cart button. I am free now. Thank you !

$30 USD in 0 days
(97 Reviews)
6.8

2 freelancers are bidding on average $40 for this job

AKSolutions

Please check the details in pmb.

$50 USD in 1 day
(7 Reviews)
4.2