- This topic has 4 replies, 2 voices, and was last updated 11 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › eStore – price is displayed despite show_price=0
Tagged: display price, fancy display
Hi,
in my index.php template I use this code to display products:
<?php echo (do_shortcode(‘[wp_eStore_category_products_fancy id=2 style=2 show_price=0]’)); ?>
It used that same shortcode on a page an it worked, but on the index.php the price is displayed (which I don’t want to)
You can take a look here:
[www.fotocampus.de]
Please help, thanks
For some reason your theme is not passing the value of the show_price parameter correctly. Try to put them in quotes like the following:
<?php echo (do_shortcode('[wp_eStore_category_products_fancy id="1" style="2" show_price="0"]')); ?>
Alternatively, directly call the PHP function like the following:
<?php echo show_wp_eStore_category_products_fancy("2","2","1","1","0","0"); ?>
I used the second one – works! Thanks!
Could you tell me what the variables stand for ( I mean in that sequence?)
Here is the parameter details in order:
$id,
$fancy_style,
$sort_order,
$button_type,
$number_of_items_to_show,
$show_price