- This topic has 1 reply, 2 voices, and was last updated 14 years, 1 month 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 Tweaks › Pulling in title and price with get_button_code_for_product
Tagged: PHP, template function
I am calling the template function get_button_code_for_product which shows the Drop down selector and buy button for that products id. How can I also have it print the title and price of that item?
Thanks for any help.
Zac
You are using the PHP function that only displays the button. Find a different shortcode that displays the product the way you want it then use the corresponding PHP function for that shortcode. All the shortcodes and PHP functions can be found here:
For example the following will display the product in a certain way (1 is the product ID):
<?php echo show_product_fancy_style(1); ?>