You are here:  » Spinning descriptions

Support Forum



Spinning descriptions

Submitted by jonny5 on Thu, 2011-04-14 14:15 in

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

Submitted by support on Thu, 2011-04-14 14:26

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

Submitted by Keeop on Fri, 2011-04-15 08:31

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

Submitted by jonny5 on Fri, 2011-04-15 13:56

Cheers for the ideas , yeh guess i could just use the filters :) to search and replace , will give it a try

Submitted by Rocket32 on Sun, 2011-05-22 01:35

Dave do you know of a way to produce spin descriptions with like a synonym database of something of the sort?

Submitted by support on Sun, 2011-05-22 07:38

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

Submitted by tonypearce on Tue, 2011-07-12 08:16

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>";
}
?>

Submitted by support on Tue, 2011-07-12 09:38

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

Submitted by tonypearce on Tue, 2011-07-12 09:54

Thats it. spot on.

Thanks again for great support.
Tony