- This topic has 2 replies, 2 voices, and was last updated 13 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › Problem with PHP Function
Tagged: php function references
I have been trying to add a Fancy Buy Now button directly to my template, basically the PHP version of this shortcode: [wp_eStore_buy_now_fancy id=2]
I downloaded and installed the Extra Shortcodes plugin and used:
<?php echo show_wp_eStore_product_fancy(2,2,2); ?> where I am using Product ID 2, Buy Now Button, and Fancy Button 2. The problem is that I still get the Add To Cart button, not the Buy Now button.
Any ideas?
Had to use this to get it to work:
<?php echo show_wp_eStore_product_fancy(2,2,1); ?>
Guess it only works with Fancy 1 option???
The following should work fine:
<?php echo show_wp_eStore_product_fancy(2,2,2); ?>
As explained in the documentation it will work with any fancy style. You need to make sure you have the latest version of the extra shortcodes plugin. So delete the one you have completely then download a fresh one from here and try it out:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460