Would anybody know if there is any scripts that could be incorparated into pricetapestry that would automatically spin the descriptions?? would be really usful and make every more unique
Hi Jonny,
You could just create a simple search and replace array for some common words, such as:
$search = array ("suberp","Superb","great","Great");
$replace = array ("excellent", "Excellent","very good","Very good");
$newDescription = str_replace($search, $replace, $oldDescription);
Something like that.
Cheers.
Keeop
Cheers for the ideas , yeh guess i could just use the filters :) to search and replace , will give it a try
Dave do you know of a way to produce spin descriptions with like a synonym database of something of the sort?
Hi Rocket,
Do you mean something along the lines of the modification 3 comments up (a simple search / replace) on the description? It would certainly be possible to make this database (or text file) driven if a suitable synonym data source is available - let me know if you have a source that you'd like to use and I'll take a look...
Cheers,
David.
--
PriceTapestry.com
Hi,
have tried this snippet of code, nothing shows:
<?php
$productUseDescription = array_rand($product["products"]);
if ($productUseDescription["description"])
{
print "<p>".$productUseDescription["description"]." [<small><em>as described by <a href='".tapestry_buyURL($productUseDescription)."'>".$productUseDescription["merchant"]."</a></em></small>]</p>";
}
?>
Hello Tony,
Have a go with:
<?php
$productUseDescription = $product["products"][array_rand($product["products"])];
if ($productUseDescription["description"])
{
print "<p>".$productUseDescription["description"]." [<small><em>as described by <a href='".tapestry_buyURL($productUseDescription)."'>".$productUseDescription["merchant"]."</a></em></small>]</p>";
}
?>
Cheers,
David.
--
PriceTapestry.com
Thats it. spot on.
Thanks again for great support.
Tony
Hi Jonny,
One thing to do would be to use the description from a random merchant on each product page view. On comparison sites, merchants like it to be made clear that it is their description that has been used, so I suggest appending an "as described by [merchant name]" with "merchant name" a link to their Buy URL even if they are not the cheapest. To do this, look for the following code at line 14 of html/product.php
<p><?php print $mainProduct["description"]; ?></p>
...and REPLACE with:
<?php
$productUseDescription = array_rand($product["products"]);
if ($productUseDescription["description"])
{
print "<p>".$productUseDescription["description"]." [<small><em>as described by <a href='".tapestry_buyURL($productUseDescription)."'>".$productUseDescription["merchant"]."</a></em></small>]</p>";
}
?>
Cheers,
David.
--
PriceTapestry.com