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.
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.