- This topic has 2 replies, 2 voices, and was last updated 8 years, 2 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 › WP eStore Troubleshooting › PHP function product fancy displays truncated product price
Hello,
I notice this when I tried to get the product id from URL as a parameter and display the product information using
<?php echo show_wp_eStore_product_fancy($prod_id,1,10); ?>
By using the PHP function, the price shown was $9.00 when it should be $229.00, and the old price was $9.95 when it should be $329.95.
When I use the shortcode
[wp_eStore_fancy_display id=1 type=1 style=10]
it works fine (the only problem is I can’t use the parameter I passed from the URL for this option, can I?)
Thanks,
Syed
Before calling the function, make sure to echo the value of the $prod_id variable and check that it has the product ID value that you are expecting.
The shortcode basically calls that other function underneath so that function has to be working correctly (otherwise the shortcode wouldn’t work).
You can also try directly calling the fancy10 product display function using the following function:
<?php echo show_wp_eStore_fancy10($prod_id); ?>
I found what really causing the problem. It was actually the Insert PHP plugin that I’m using.
I tried creating my own shortcode to call the fancy display 10 function and it works fine.
Sorry and thanks again for your response.