- This topic has 3 replies, 2 voices, and was last updated 14 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 Tweaks › More than 2 widgets, please?
Hi, I’m using multiple sidebars in a theme, and I’ve run out of shopping cart sidebar widgets. It seems that two come with the plugin – how can I add more instances of the shopping cart widget, please?
I know I could code my sidebars differently so that I wouldn’t need so many cart widgets, but for this particular theme I’d like to put the cart in different positions (in regards to the order of the widgets in each sidebar).
I know it would be silly to expect you to include more than two cart widgets in the standard plugin, so I’m just hoping for a code snippet, file name and the line number so I can extend it myself. I’m not afraid of coding.
Thanks,
Trisha
Wollongong, Australia
I’m working a lot with my sidebars right now, and it occurred to me to mention that many of my widgets seem to be like ‘bottomless pits’ in that I can drag one from Available Widgets into as many sidebars as I like, and one of them still remains in the Available Widgets section. Perhaps widget functionality has improved since you created the cart widget? Or do other factors dictate that you can only have a certain number in the Available section?
Hi Trisha, you simply have to use the function and you can display as many shopping carts as you want:
<?php echo eStore_shopping_cart(); ?>
All the PHP function references are listed in the shortcodes and php function references document:
If you don’t know how to use PHP function calls then this page will come in handy(read the “How to Display Button(s) on the Sidebar” section on that page)
Alternatively, you can read this post:
Using PHP on the Sidebar or Widget (example: to display a button)
Which part of Wollongong are you in?
Okay, thanks.
I’m in Woonona. I know you went to Wollongong Uni, didn’t you? Are you still in the area?