- This topic has 4 replies, 3 voices, and was last updated 10 years, 5 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 › Photo Seller – Shopping cart code
I need to insert the shopping cart widget in my header.
<div style=”position: absolute; top: 200px; left: 700px;”>
your widget code here
</div>
What is the code I need to write? I tried the shortcode [wps_show_cart] but it did not work.
Hi,
We have the following shortcode you can insert on a page or sidebar widget:
[WPS_display_compact_cart]
When I write that shortcode in my header.php the shopping cart link is not shown in the web page.
In your header.php template file you would need to use the following (a shortcode won’t directly work in a PHP file):
<?php echo do_shortcode('[WPS_display_compact_cart]'); ?>
Thanks a lot. It works perfect