"Featured Items" Custom Box using asin.txt

Find addons/modules/scripts for AOM. Post your own.
fshagan
Experience Level 3
Experience Level 3
Posts: 119
Joined: Sun May 21, 2006 12:42 pm
Location: CA
Contact:

"Featured Items" Custom Box using asin.txt

Post by fshagan » Wed Jan 09, 2008 11:40 pm

I created a small program to read in the "asin.txt" file used in building a category page of static asins within AOM, and output a set number of them in a random fashion. This program is used at one of my client's sites, http://dealhunters.us, to create the custom box "Featured Items" in the left column. It is called from the "Custom Box" section, as shown in the picture below.

Instead of building an associate link that takes the person to Amazon.com, the link takes them to the detail page for that product on your site. There, they can "add to cart" and continue shopping, or choose to check out and leave your site. Therefore, there is no associates ID to change in the code.

I'm an amateur coder, so any suggestions are welcome. The program does require php5 for the functions it uses.

Download the attached "featured.zip" file, unzip it on disk and then edit the "featured.php" file where indicated at the top of the file. Then upload it to your AOM root directory, where your "asin.txt" file is located. If you don't have an "asin.txt" file, you can create one in Notepad and upload it (use 10 ASINs per line, separated by commas).

Let me know how it works for you!
Attachments
featured.zip
'featured.php', version 0.1 of the "Featured Items" utility for AOM
(26.6 KiB) Downloaded 1113 times
featured.jpg
Call the program from the Custom Box section
featured.jpg (35.34 KiB) Viewed 14975 times
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

User avatar
bmcaulif
Experience Level 3
Experience Level 3
Posts: 190
Joined: Tue Jun 27, 2006 11:06 pm
Location: USA
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by bmcaulif » Mon Apr 14, 2008 10:35 pm

Hmmm... The board says I do not have the permissions needed to see the atachment, and I'd really like to take a look at it. Can you pop it up on a site somewhere that I could download it and post a url for it's location? Thanks...
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Gracklor
Posts: 1
Joined: Sat Jun 21, 2008 11:42 am
Location: Colorado Springs, CO
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by Gracklor » Sat Jun 21, 2008 11:50 am

It looks like it's trying to work, but the images don't seem to be displaying. Any thoughts?
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

fshagan
Experience Level 3
Experience Level 3
Posts: 119
Joined: Sun May 21, 2006 12:42 pm
Location: CA
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by fshagan » Sat Jun 21, 2008 4:13 pm

Images are not always provided in all of the sizes, so the code displays the "image not available - click for details" link to take the person to that product's detail page.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

lindner
Posts: 9
Joined: Fri May 23, 2008 7:32 am

Re: "Featured Items" Custom Box using asin.txt

Post by lindner » Sun Jul 27, 2008 12:17 am

Is there any way to show the featured items horizontally. I would like to include them at the top of my home page. I tried to work it out myself, but couldn't do it.
Merridy
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

p3rf3ctg3ntl3m4n
Posts: 3
Joined: Thu Oct 23, 2008 1:47 am
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by p3rf3ctg3ntl3m4n » Thu Oct 23, 2008 1:56 am

i can't download the attach file :(
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

blacknight
Experience Level 2
Experience Level 2
Posts: 71
Joined: Wed May 10, 2006 1:51 pm

Re: "Featured Items" Custom Box using asin.txt

Post by blacknight » Thu Oct 23, 2008 2:32 am

I suspect it's a forum config issue, as I used to be able to download the files
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by mcarp555 » Thu Oct 23, 2008 3:24 am

I just downloaded it with no problems.

fshagan - FYI, I helped someone with this code a few weeks ago, and edited it to include some AOM formatting to make it blend in better with whatever site it's included on. If you'd like to discuss it in detail, let me know.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

blacknight
Experience Level 2
Experience Level 2
Posts: 71
Joined: Wed May 10, 2006 1:51 pm

Re: "Featured Items" Custom Box using asin.txt

Post by blacknight » Thu Oct 23, 2008 3:31 am

mcarp555 wrote:I just downloaded it with no problems.
I'm getting an error saying that I don't have permissions to view the attached file
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by mcarp555 » Thu Oct 23, 2008 8:00 am

Hmm. What about a direct link?
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

blacknight
Experience Level 2
Experience Level 2
Posts: 71
Joined: Wed May 10, 2006 1:51 pm

Re: "Featured Items" Custom Box using asin.txt

Post by blacknight » Thu Oct 23, 2008 9:55 am

mcarp555 wrote:Hmm. What about a direct link?
Nope

I get: "You are not authorised to download this attachment."
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

associate-o-matic
Admin
Admin
Posts: 1879
Joined: Fri Oct 01, 2004 10:40 pm
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by associate-o-matic » Sat Oct 25, 2008 7:47 am

The forum permissions are a bit finicky.

Can you try downloading the attachment again and let us know if it works?

Thanks,
Justin
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

lectronix
Posts: 2
Joined: Tue Aug 05, 2008 3:46 pm

Re: "Featured Items" Custom Box using asin.txt

Post by lectronix » Wed Feb 04, 2009 5:40 am

I downloaded this mod for my UK AOM. It Displays "Click For Details" link but no price or image:

Image
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Wes
Posts: 3
Joined: Thu Jul 26, 2007 10:39 am
Location: Texas
Contact:

Re: "Featured Items" Custom Box using asin.txt

Post by Wes » Thu Mar 05, 2009 10:32 pm

Same results: Displays "Click For Details" link but no price or image.

Any thoughts, suggestions?
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Bdub
Posts: 7
Joined: Mon Mar 02, 2009 10:38 am

Re: "Featured Items" Custom Box using asin.txt

Post by Bdub » Wed Mar 25, 2009 8:32 am

Click for details can depend on the type of products you are featuring, I believe this is build into the item itself through Amazon when you need to select color or some other option.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest