Amazon.com Affiliate Direct to Cart Auto Embed [Deleted]

That update is out, already, so download the add-on and install it.

You can configure a Amazon.com, Amazon.co.uk and an Amazon.de affiliate ID.

Due to the limitation of products between stores, an Amazon.co.uk link will appear as an Amazon.co.uk link for everyone - but anyone from the UK who uses it and buys it within 90 days will get you the commission :)
 
Ok...

I can make the title fetching a configurable option, so you can turn it off. But that means fetching the title automatically will just never work... though I will look into it a little bit more.
next update right?
 
Absolutely.

I'll tell you what I'm working on though. But it's being a pain in the arse.

There's an Amazon API for product advertising. I should be able to query that and retrieve the product name. This should be way more efficient than the existing XenForo helper because it doesn't have to load the full HTML for the page to collect each title.

I can currently pull certain information through... but the title? I'm about to claw my own eyes out with frustration.
 
Yep, I've got it collecting the complete product details like this:

Code:
[SIZE=4][FONT=Times New Roman][COLOR=#000000]SimpleXMLElement Object ( [OperationRequest] => SimpleXMLElement Object ( [RequestId] => eb9f5715-341b-470b-b4a9-bb749f7a5b20 [Arguments] => SimpleXMLElement Object ( [Argument] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Operation [Value] => ItemLookup ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Service [Value] => AWSECommerceService ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Signature [Value] => r7NMTjOpg7UdV4VqcZFio0MKAsPYXTi6iKVhMwcGoGA= ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => AssociateTag [Value] => A ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Version [Value] => 2009-03-31 ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => ItemId [Value] => B006EKJ8UI ) ) [6] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => AWSAccessKeyId [Value] => AKIAJIGDN7DQMH5LPZ7A ) ) [7] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Timestamp [Value] => 2012-06-09T19:45:37Z ) ) [8] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => ResponseGroup [Value] => Medium ) ) ) ) [RequestProcessingTime] => 0.0196420000000000 ) [Items] => SimpleXMLElement Object ( [Request] => SimpleXMLElement Object ( [IsValid] => True [ItemLookupRequest] => SimpleXMLElement Object ( [IdType] => ASIN [ItemId] => B006EKJ8UI [ResponseGroup] => Medium [VariationPage] => All ) ) [Item] => SimpleXMLElement Object ( [ASIN] => B006EKJ8UI[/COLOR][/FONT][/SIZE]
... SNIP ...
[SIZE=4][FONT=Times New Roman][COLOR=#000000]Designed to withstand shocks and vibration for high durability ) [IsAutographed] => 0 [IsMemorabilia] => 0 [ItemDimensions] => SimpleXMLElement Object ( [Height] => 39 [Length] => 278 [Weight] => 79.5 [Width] => 396 ) [Label] => SanDisk [ListPrice] => SimpleXMLElement Object ( [Amount] => 39999 [CurrencyCode] => USD [FormattedPrice] => $399.99 ) [Manufacturer] => SanDisk [Model] => 619659073435 [MPN] => 0619659073435 [NumberOfItems] => 1 [PackageDimensions] => SimpleXMLElement Object ( [Height] => 70 [Length] => 520 [Weight] => 10 [Width] => 390 ) [PackageQuantity] => 1 [PartNumber] => 0619659073435 [ProductGroup] => Personal Computer [ProductTypeName] => COMPUTER_DRIVE_OR_STORAGE [Publisher] => SanDisk [Size] => 240 GB [SKU] => q3315-005 [Studio] => SanDisk [Title] => SanDisk Extreme SSD 240GB SATA 6.0 Gb-s 2.5-Inch Solid State Drive- SDSSDX-240G-G25 [UPC] => 619659073435 [UPCList] => SimpleXMLElement Object ( [UPCListElement] => 619659073435 ) [Warranty] => 3-year limited ) [OfferSummary] => SimpleXMLElement Object ( [LowestNewPrice] => SimpleXMLElement Object ( [Amount] => 22000 [CurrencyCode] => USD [FormattedPrice] => $220.00 ) [TotalNew] => 63 [TotalUsed] => 0 [TotalCollectible] => 0 [TotalRefurbished] => 0 ) [EditorialReviews] => SimpleXMLElement Object ( [EditorialReview] => SimpleXMLElement Object ( [Source] => Product Description [Content] => Upgrade your laptop for better performance and extend its reliability by replacing your hard disk drive with the SanDisk Extreme SSD. You'll enjoy faster boot-ups and open files compared to a 7200 RPM hard drive. The SanDisk Extreme SSD is backed by rigorous shock and vibration testing and a 3-year limited warranty. The SanDisk SSD features no moving parts, quiet operation, and low power consumption as compared to a 7200 RPM hard drive. [IsLinkSuppressed] => 0 ) ) ) ) )
[/COLOR][/FONT][/SIZE]

Just by providing the ASIN code. And I can extract SOME things, so I can do
PHP:
{$result->Items->Item->ASIN}
to get it to read back the ASIN or I can get it to give me an image of the product... Yet, I can't do
PHP:
{$result->Items->Item->Title}
. It's always blank :mad:
 
Will this work with the embed widget that my site already uses? I can't remember what addon is turning it into a picture link currently...
 
Will this work with the embed widget that my site already uses? I can't remember what addon is turning it into a picture link currently...
I suspect not.

If you find what add-on it is, I will investigate or customise your existing one to use the direct to cart thing which should use the 90 day cookie thing.
 
Tried to implement it, but for some reason all requests for Italian product names were completely denied.

I'm going to have to investigate this further.

Was also aiming to implement Amazon China and Japan but same problem.
 
Will this work in conjunction with the Book Reviews by Waindigo add-on?
I believe the book reviews add-on only sets the 24hour cookie. It would be awesome if this add-on will transform the book review posts to the 90 cookie.

Anyway - thanks so much for the share!

J.
 
Tried to implement it, but for some reason all requests for Italian product names were completely denied.
I'm going to have to investigate this further.
Chris can you give some indication to activate Amazon IT? So if you don't have to much time me and giorgino can try to make it (IT :D) works.

edit:
on the description of this resource I taken the "add to cart link" of the example and changed from .com to .it and it works. maybe will not work with all the products.
I test it also the "reverse mode" getting the link of an "italian only" product and switching from .it to .com, it don't give any problem, amazon.com is only saying that the product is not available at the moment.
 
I seem to be getting some javascript errors with this. I got one the first time I tried it, then it stopped and seemed to work fine.

Then I entered the two AWS keys and activated 'Fetch Product Title from Amazon' and I get JS errors everytime I tried to use it, so I had to disable that and it seems to work again.

Is it possible to change it so that the link goes to the product page, not the cart? The cart doesn't even have a link to the product and I can't imagine a lot of users going straight to checkout without reading about the product first.

Also, any chance that it can also convert amazon links that people attach to text using the 'Insert/Edit Link' button? link.webp
 
Back
Top Bottom