- This topic has 1 reply, 2 voices, and was last updated 14 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › estore in wordpress theme
Tagged: wordpress
Hi
I’ve got the WordPress template shortcode working fine in a theme, but I don’t seem to be able to use methods like product_price to show the price.
print_eStore_buy_now_button($pid)
Is there anyway to do this?
TIA
When you call a PHP function you need to make sure that the place you are trying to use the code on can execute PHP. If you adding this on your template file then try adding the following:
$pid = 2;
<?php echo print_eStore_buy_now_button($pid); ?>
2 is an example value here.