Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding to basket from Remote link/url?


inveritas

Recommended Posts

Posted

We have several single product websites and we're developing a store now where we have all these products combined.

 

What we want to do is send our clients from our single product sites to the checkout process over at the OSC store. Is this a possibility? Anybody have a how-to or link I can read up on this?

 

Thanks.

Posted
We have several single product websites and we're developing a store now where we have all these products combined.

 

What we want to do is send our clients from our single product sites to the checkout process over at the OSC store. Is this a possibility? Anybody have a how-to or link I can read up on this?

 

Thanks.

 

I tried this:

http://internet/osc/index.php?cPath=68&amp...cart_quantity=8

 

I ads 1 item to the cart, not 8.

 

Also, I'd rather have it going straight to checkout_shipping.php IF possible.

Posted
I tried this:

http://internet/osc/index.php?cPath=68&amp...cart_quantity=8

 

I ads 1 item to the cart, not 8.

 

Also, I'd rather have it going straight to checkout_shipping.php IF possible.

 

I fixed it. For anybody else who needs it:

 

URL

http://internet/index.php?action=buy_remot...products_id=181

 

I added this in application_top.php, somewhere around line 336, before

...

case 'update_product'

...

 

 

 

case 'buy_remote_sites' : 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'], $HTTP_GET_VARS['cart_quantity'], $attributes, false);

}

}

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

break;

 

Cést ca.

Archived

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

×
×
  • Create New...