Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding to cart from external link help needed


jgarniss

Recommended Posts

Posted

Hi everyone,

 

I am hoping someone can help me out with this. I have a marketing site that has specific links for each type of product (i.e., a "Buy Now" button for a specific color and size product). When a customer clicks on the buy now button I would like them to have the product added to their shopping cart. No problem IF there are no product attributes (i.e., size, color, etc), I get the link on the buy now button to add the product to the shopping cart.

 

However, if there are product attributes, it won't add the item to the pcart, because I am not sure how to pass the attributes in the link.

 

For example, the link for an item with no attributes looks like this:

 

http://store.mycompany.com/products_new.ph.../products_id/43

 

This puts it right into the shopping cart.

 

What do I do to get the size and color. for example, passed into the link?

 

Please help!

 

Thanks in advance,

 

Jon

Posted

Some more info, I have tried doing this:

 

/product_info.php?products_id=56{5}9&action=add_product

 

Where the option ID Value = 5 and the option selection is 9, but it still doesn't work.

  • 2 months later...
  • 2 weeks later...
Posted

and how does one specify the product? Is there a link format? Is there a way to add a product to the cart from another website - like a link-to with

 

www.website.com/add-product.php/?keywords=id

 

there must be a format to add it directly w/ a link... can't find the solution anywhere. :blush:

Archived

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

×
×
  • Create New...