Hi David,
Hope all's going well. Wondering if you're able to help here, please see:
{link saved}
You should see a big yellow "Compare 2 Prices" box, a couple of queries:
1) How would we customise the look of the box?
2) When clicking on the link you are currently taken to the main product with no price comparison - I expect we may have removed a bit of code here - any ideas on how we can fix?
Many Thanks,
Stew
Hello Stew,
To customise your "Compare x Prices" box, in your Search Results / Each template (wp-admin > Settings > PriceTapestry.org) look for the &lr;a> tag within the %IF_COMPARED% section;
<a href='%PRODUCT_URL%'>Compare Prices</a>
...and apply a class attribute e.g.
<a class='pto_cp' href='%PRODUCT_URL%'>Compare Prices</a>
And then in the plugin file resources/pto.css create a style definition for .pto_cp as required e.g.
.pto_cp {
background-color: blue;
}
If you find any styles you attempt to use having no effect, you may need to include the !important flag for example;
.pto_cp {
background-color: blue !important;
}
Regarding the comparison missing from your product pages, first check in pto.php that the price comparison table component of the product page hasn't been disabled in the call to pto_product() - look for the following code at line 484:
$html .= pto_product(TRUE,TRUE,FALSE,$pto_config_useRelated);
The TRUE / FALSE flags correspond to the function definition as follows;
function pto_product($main=FALSE,$prices=FALSE,$reviews=FALSE,$related=FALSE)
...so if the second parameter is FALSE, change back to TRUE and that should be all it is. Otherwise, check that the Prices Before / Each / After templates are not empty - default values as folows;
Prices / Before:
<div class='pto_prices'>
<table>
<tr>
<th>Stockist</th>
<th>Catalogue Product Name</th>
<th>Price</th>
%IF_VOUCHER_CODES%<th>Voucher Code</th>%ENDIF_VOUCHER_CODES%
<th> </th>
</tr>
Prices / Each:
<tr>
<td class='pto_prices_merchant'><a href='%MERCHANT_SEARCH_URL%'>%MERCHANT%</a></td>
<td>%ORIGINAL_NAME%</td>
<td>%PRICE%</td>
%IF_VOUCHER_CODES%<td>%VOUCHER_CODE%</td>%ENDIF_VOUCHER_CODES%
<td class='pto_prices_link'><a href='%BUY_URL%'>Visit Store</a></td>
</tr>
Prices / After:
</table>
</div>
If that all looks in place but price comparison table still not showing let me know and I'll check it out further with you...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com