- This topic has 2 replies, 2 voices, and was last updated 13 years, 4 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 › php function for shopping cart display in child theme template
Tagged: php function, shopping cart, shortcode, widget
Hi, I’m about to go to WPQuestions for this but I want to be sure I give them all the info they need. I want a custom page template for WPFolio that will always display the shopping cart as a widget, or where a widget would be, only on my store related pages. WPFolio does not display widgets on pages, only on posts. this means my template will have to have its own sidebar or some container that expands like a widget for my shopping cart. I’m thinking they can just provide a custom sidebar for those pages and I can add the shopping cart in a text widget (I prefer that to the shopping cart widget of yours, the shortcode cart is prettier and always there when empty). And I want to void any complex widget logic scenario, not even sure conditionals exist for what I need. Finally, getting to my question! Is there some sort of php function code the answerer will need from you (through me) to help do this? I found this code on your forum <?php echo print_wp_digi_cart(); ?>
but I want to be sure that code will make the cart function and look as it does with the shortcode [wp_eStore_cart]
(my favorite) before I send it along. Thanks.
The following line should help:
<?php echo wp_digi_cart_always_show(); ?>
When you place the above line anywhere on your theme’s template file it will show the shopping cart just as it does for the [wp_eStore_cart] shortcode.
Wonderful, thank you.