Hi,
%PRODUCT_URL% works in search results but I tried to use it as following in Prices Each:
<tr>
<td><a href='%BUY_URL%'><nobr>%MERCHANT%</nobr></a></td>
<td><a href='%PRODUCT_URL%'><nobr>%ORIGINAL_NAME%</nobr></a></td>
<td>%PRICE%</td>
%IF_VOUCHER_CODES%<td>%VOUCHER_CODE%</td>%ENDIF_VOUCHER_CODES%
<td><a href='%PRODUCT_URL%'><nobr>See more</nobr></a></td>
</tr>
But then I get the following non-working link:
http://www.example.com/the-wordpresspage-where-the-shortcode-is-used/%PRODUCT_URL%
I'm using the [pto prices=""] shortcode.
Hi Marco,
To add support for %PRODUCT_URL% to Prices / Each, edit pto_product.php and look for the following code at line 83:
$each = str_replace("%BUY_URL%",pto_common_buyURL($product),$each);
...and REPLACE with:
$each = str_replace("%BUY_URL%",pto_common_buyURL($product),$each);
$each = str_replace("%PRODUCT_URL%",pto_common_productHREF($product),$each);
Cheers!
David.
--
PriceTapestry.com