Hi David,
Hope you are well, I have started to take another look at the wordpress installation.
my theme (rehub) includes some build in shortcodes for things like buttons.
[rehub_affbtn btn_text="TEXT" btn_url="BUY_URL" btn_price="PRICE"]
I have tried to add this to the product / price / each in the wordpress settings as follows
[rehub_affbtn btn_text="Check Latest Price" btn_url="%BUY_URL%" btn_price="%PRICE%"]
When it displays in the post the variables %BUY_URL% seem to work find however the actual button is only text as follows.
[rehub_affbtn btn_text="TEXT" btn_url="http://click.linksynergy.com/link?id=*YJXllJNpkI&offerid=309588.10885189270&type=15&murl=https%3A%2F%2Fau.amara.com%2Fproducts%2Findigo-rain-dinner-plate" btn_price="34.00"]
Is there a way to make this work? Im assuming I need to add this code after the PT template has been generated.
Thanks
Richard
Hello Richard,
It should just be a case of passing the generated HTML through do_shortcode() - to do this for all product page related templates edit pto_product.php and look for the following code at line 553:
return $html;
...and REPLACE with:
return do_shortcode($html);
For Featured Products, edit pto_featured.php and look for the following code at line 215:
return $html;
...and REPLACE with:
return do_shortcode($html);
And for Search Results, edit pto_search.php and look for the following code at line 639:
return $html;
...and REPLACE with:
return do_shortcode($html);
Hope this helps!
Cheers,
David.
--
PriceTapestry.com