开发者

Send users to a pre-filled Amazon cart checkout

开发者 https://www.devze.com 2023-01-20 22:25 出处:网络
I\'m working on a site that will create pre-set packages of items. To start, I\'m using Amazon to test the idea, pulling some affiliate sales, and then I\'ll fulfill orders myself if the idea deems su

I'm working on a site that will create pre-set packages of items. To start, I'm using Amazon to test the idea, pulling some affiliate sales, and then I'll fulfill orders myself if the idea deems successful.

My goal is to have a "buy now" type button, and upon clicking, the user will arrive at an Amazon checkout now page, with a cart pre-filled with items of my choosing, and my affiliate number.

I'm a PHP developer, so if a solution must be language specific, that's the language to go with. If it's more of a conceptual answer, or if there's an API for this, that works too.

Thanks in ad开发者_StackOverflow社区vance.


You may use link that contains ASINs and their quantity. It doesn't add items to someone's cart but confirms to add to cart.

URL:
http://www.amazon.com/gp/aws/cart/add.html

Parameters:
- AssociateTag
- ASIN.<number>        <number> starts at 1
- Quantity.<number>    one quantity parameter for each ASIN parameter

Example (parameters separated by line break for visibility):
http://www.amazon.com/gp/aws/cart/add.html
    ?AssociateTag=your-tag
    &ASIN.1=B003IXYJYO
    &Quantity.1=2
    &ASIN.2=B0002KR8J4
    &Quantity.2=1
    &ASIN.3=B0002ZP18E
    &Quantity.3=1
    &ASIN.4=B0002ZP3ZA
    &Quantity.4=2

One line example: https://www.amazon.com/gp/aws/cart/add.html?AssociateTag=your-tag&ASIN.1=B003IXYJYO&Quantity.1=2&ASIN.2=B0002KR8J4&Quantity.2=1&ASIN.3=B0002ZP18E&Quantity.3=1&ASIN.4=B0002ZP3ZA&Quantity.4=2&ASIN.5=B004J2JG6O&Quantity.5=1

ASINs are found in the product's page URL or by searching for "ASIN" on the product page. More details here


Amazon does not allow you to add items to someone's cart. They require that the user making the purchase click the add to cart button.

The best you can do for this is to create a Listmania! list with the items. You can see more details about how to do that here.

You then need to make an affiliate link to the list, and instruct the user to click the 'Add all Items to Cart' button at the bottom of the list.

Unfortunately, there is no way to make this take less clicks for the user since Amazon does not want users accidentally purchasing items they did not want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号