- This topic has 8 replies, 4 voices, and was last updated 13 years, 11 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 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 Tweaks › How do you create a fancy 1 or 2 Buy It Now button using PHP?
Tagged: buy it now, fancy, PHP
Hello,
We are trying to create a Buy It Now button using fancy1 or fancy2 with PHP. The shortcodes documentation only lists a regular Buy It Now button option with PHP. Please let me know what the appropriate code would be.
Thanks,
Bryan
Anyone have an idea?
Thanks,
Bryan
This shortcode should help:
[wp_eStore_buy_now_fancy id=1]
That worked… thanks!
Whoops. That wasn’t PHP code. Can you please provide the PHP code?
Hi, You can find a list of all the shortcodes and PHP functions here: http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Let us know if you need anything eles.
Cheers,
Ivy
Hi Ivy,
If you look at my first post you will see that I have already looked there. I need the PHP code not the shortcode. There is no PHP code example for what I asked for which is why I am asking.
Use the following:
<?php
$id = 1; //The product ID
show_product_fancy_style($id,$button_type=2);
?>
is there a way to customize those shortcodes? or to create other ones? (without killing our future upgrades by hardcoding badly)