Hi David
I am trying to put adverts down the right side of the product page, is it possible?
Regards
Brent
Hi David
I am looking to put ads on the right of the search page as well as the product pages , is that possible, also is there any way of getting the merchant logo on the search page listing also.
Brent
Hi Brent,
Here's an html/user_footer_before.php with an IF statement for products.php, reviews.php and search.php...
</td>
<td valign='top'>
<?php if
(
(strpos($_SERVER["PHP_SELF"],"products.php")!==FALSE)
||
(strpos($_SERVER["PHP_SELF"],"reviews.php")!==FALSE)
||
(strpos($_SERVER["PHP_SELF"],"search.php")!==FALSE)
): ?>
<!-- insert your right column advertising HTML here -->
<?php endif; ?>
</td>
</tr>
</table>
Merchant logos on search listings is possible, but bear in mind that search results are generated from a summary query so unless numMerchants is 1, you can't be sure which merchant has been selected by the database to be in the merchant field. However if numMerchants is 1 then it is safe to display the logo. Let's say you want to display the logo below the price; in html/searchresult.php look for the following code starting at line 29:
<span class='nobr'><a href='<?php print $product["productHREF"]; ?>'><?php print translate("More Information"); ?></a></span>
<?php endif; ?>
...and REPLACE with;
<span class='nobr'><a href='<?php print $product["productHREF"]; ?>'><?php print translate("More Information"); ?></a></span>
<?php print (file_exists("logos/".$product["merchant"])?"<br /><img src='".$config_baseHREF."logos/".$product["merchant"]."' border='0' />":""); ?>
<?php endif; ?>
Cheers,
David.
--
PriceTapestry.com
Hi Brent,
Sure - add the following 2 files to your /html/ folder, placing your advertising HTML where indicated....
user_header_after.php
<table width='100%'>
<tr>
<td valign='top'>
user_footer_before.php
</td>
<td valign='top'>
<?php if (strpos($_SERVER["PHP_SELF"],"products.php")!==FALSE): ?>
<!-- insert your right column advertising HTML here -->
<?php endif; ?>
</td>
</tr>
</table>
Hope this helps!
Cheers,
David.
--
PriceTapestry.com