PDA

View Full Version : AWS availability



Chris
02-05-2004, 08:24 AM
Amazon reports product availability as out of stock or discontinued when it is sold by anyone other than amazon (for instance marketplace sellers, all of apparel).

To get around this I changed the following code on my search/item/category viewing pages:



<!-- availability -->
<?php if($Availability != ''){ ?>
<strong>Availability:</strong> <?=$Availability?><br /><br />
<?php } ?>



To this:



<?php
if(strstr($Availability, "discontinued")){
$Availability = '';
}

if($Availability != ''){ ?>
Availability:_<?=$Availability?><br />
<?php } ?>


I figure that the availability message might have been discouraging some clicks so I'd rather it not show if its bad news.

incka
02-05-2004, 09:35 AM
Good idea Chris, I'll implement this into my script.

Mike
02-05-2004, 09:46 AM
I'm glad this was posted, it was the reason I wasnt having availability on.

chromate
02-05-2004, 10:47 AM
Yeah, I get quite a few "discontinued" items showing up.

pas
02-05-2004, 10:39 PM
I don't understand. Now visitors will click through to Amazon to find out the product is discontinued?

eMEraLdwPn
02-05-2004, 10:44 PM
it sounds more like a fix for a mistake on amazon's part to me...

ozgression
02-06-2004, 06:27 PM
Thanks for the tip, Chris
________
iphone games (http://macgame.org)