Hi,
I am testing something and in order to do so want to be able to see the merchant name in the search results.
I tried to just add
<?php print $mainProduct["merchant"]; ?><br />
in searchresults.php but that does not show the merchant up in the results.
Do I need do something in search.php as well, or have I made error in the merchant code there?
Thankyou in advance :)
Oh I see, I hadnt considered that, it was only to check a few products that werent linking through correctly to check which feed was responsible, to narrow down my search a bit. I only just noticed after uploading many feeds that some had a # in the product name, that caused a problem when the name is clicked. It is easy to filter out, but rather than put the filter on all previous merchants I was going to only do it on those that had the problem, but I probably need to put the filter on them all anyway, as in future the # could crop up.
Thanks
Hi Clare,
The merchant name can be displayed in the search results; however as the search results are generated using a summary query it is not possible to define which of the merchants the product is available from is in the merchant variable.
Instead of $mainProduct["merchant"], within html/searchresults.php you need to use $product["merchant"] within the loop. If you're using Price Tapestry in what I call "store mode" - i.e. as where there is only ever one merchant per product, then this would work fine...
Cheers,
David.