- This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 Addon Related › [wp_eStore_display_compact_cart4] – How to not display when empty ?
Hi,
I am using the addon for codes and specifically this one : [wp_eStore_display_compact_cart4]
I see there is a way with other cart short codes to set the parameter “show_empty” to either 0 or 1.
Is there a way to do this with compact cart 4 ? I tried setting”show_empty=0″ but it does not work with this short code as far as I can see.
Or is there a PHP line I can insert somewhere ?
Many thanks,
Jeremy.
That shortcode doesn’t take any parameter. It kind of works as is shown in the example. If you are familiar with PHP code then I can tell you which file handles the code for it and you can modify it however you like.
Thanks, can you advise how to edit the PHP code ? (I am familiar with PHP editing.)
Open the “shortcode_include.php” file from the extra shortcodes addon and find the following function:
eStore_display_compact_cart4()
This function renders that compact cart so you can customize it to your liking.