product name repeating in description
Im getting the product name repeating itself in front of the description field on all feeds. Why is this happening or is it meant to be like this?
http://www.gift-mania.co.uk/product/Ultimate-Indulgence-at-Brooklands-Retreat-and-Spa.html
regards
Dave
This is my product.php - I'm not sure what to change
regards
<?php
$mainProduct = $product["products"][0];
print "<h2><a target='_BLANK' href='".tapestry_buyURL($mainProduct)."' title='".$mainProduct["name"]."' ".javascript_statusBar(translate("Go to")." ".$mainProduct["merchant"]).">".$mainProduct["name"]."</a></h2>";
if ($mainProduct["image_url"]) {
echo "<p><a target='_BLANK' href='".tapestry_buyURL($mainProduct)."' title='".$mainProduct["name"]."' ".javascript_statusBar(translate("Go to")." ".$mainProduct["merchant"])."><img width='180' src='".$mainProduct["image_url"]."' alt='".$mainProduct["name"]."' title='".$mainProduct["name"]."' /></a></p>";
}
if ($mainProduct["description"]) {
echo "<h3>".translate("Product Information")."</h3>";
echo "<p>".$mainProduct["description"]."</p>";
}
if (isset($mainProduct["extraHTML"])) print $mainProduct["extraHTML"];
?>
This is NOT a template issue as I've looked through the template file and there is nothing there that would cause this. I've also tested it on a demo server with no repetition.
Please check the datafeed at http://www.magicparser.com/demo to see whether the title is included in the description field by the merchant.
Hi Ole,
The template code looks fine.
I also checked a couple of your feeds, and the product name is not being
pre-pended there; but I notice that it is coming out of the database
like this as the search results show the same thing.
Could you email me your includes/admin.php and i'll
check that it's not happening because of anything to do with the import
record handler...
Cheers,
David.
Hi Ole,
This is a feature of the template that you have purchased from Price Tapestry Templates and is not part of the original distribution.
It should be easy to change back however; if you look in html/product.php for where the following variable is used:
$mainProduct["description"];...you should see at that point where the product name is being printed out before it; using the variable $mainProduct["name"]. If you're not sure of the exact PHP syntax, you could remove simply by replacing:
$mainProduct["name"]with:
""(i.e. an empty string)
Cheers,
David.