Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › More than 2 widgets, please?
- This topic has 3 replies, 2 voices, and was last updated 15 years, 5 months ago by
Blue Owl.
-
AuthorPosts
-
May 11, 2010 at 10:51 am #1186
Blue Owl
SpectatorHi, 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
May 11, 2010 at 11:01 am #20431Blue Owl
SpectatorI’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?
May 11, 2010 at 1:18 pm #20432amin007
ParticipantHi 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?
May 12, 2010 at 12:38 am #20433Blue Owl
SpectatorOkay, thanks.
I’m in Woonona. I know you went to Wollongong Uni, didn’t you? Are you still in the area?
-
AuthorPosts
- You must be logged in to reply to this topic.