March 28, 2013 at 10:45 pm #21678
Hello Dear support team!
veganohooligano.com.ua have a new topic =))
It’s very useful button – product order on the top of shop, but it not useful to have it there, in individual place, far from main widgets… How can i put it on widget sidebar?
Thanks a lot for your advice!!!March 30, 2013 at 6:21 am #112703
I did not test it but you can try to add following code into a text widget:
<form class="woocommerce-ordering" method="get">
<select name="orderby" class="orderby">
<option value="menu_order" >Default sorting</option><option value="popularity" selected='selected'>Sort by popularity</option><option value="rating" >Sort by average rating</option><option value="date" >Sort by newness</option><option value="price" >Sort by price: low to high</option><option value="price-desc" >Sort by price: high to low</option> </select>
<input type="hidden" name="attest" value="true" /></form>
Probably it will work just fine.March 30, 2013 at 3:25 pm #112704
Dude! It works!
Thanks a lot!
But it’s only one bug. Check how this widget working now. Default ordering is set to popularity, but when i’m choosing other kind of ordering, i can’t make popularity again… Have you some suggestions?
Thanks a lot!March 31, 2013 at 7:38 am #112705
And Extra question – where i can change localization for this widget? It’s not in woocommerce localization file…
And again – address of page http://vegansupermarket.com.ua (widget area is on the right side)April 1, 2013 at 3:29 pm #112706
The translation would have to be done within the code that Dude provided (ie its not set to be translatable as part of a po file or anything because its just a text widget).
When I look at it, popularity is always an option.
DevinApril 1, 2013 at 4:44 pm #112707
Devin! It’s really works with localization in code!
But still works strange with selection of ordering type. Just try to select any kind of ordering and then use popularity (за популярністю) again, and you can’t use it. it’s will stay same kind of ordering.
And again – address of page http://vegansupermarket.com.ua (widget area is on the right side)
And THANKS a lot!
Support Dream Team! =)April 2, 2013 at 12:38 pm #112708
I’m not sure if its working correctly or not actually. I know it is supposed to be popularity, I just don’t know what that is calculated under. Right now its using popularity the same as Rating which sounds like it may be correct unless woocommerce has an actual way of determining popularity outside of a rating.
DevinApril 2, 2013 at 3:48 pm #112709
Dear Devin! Thanks a lot for respond.
Let me explain problem exactly:
filter now is set to popularity as default, but if you choose other kind of ordering, you’ll never get a chance to change it back to popularity untill you’ll reload a page. Just try. за популярністю – is popularity.
And again, thanks a lot for not leave me with this question!!!
))April 4, 2013 at 2:00 am #112710
I am getting an error on your page coming from google translate
XMLHttpRequest cannot load http://translate.googleapis.com/translate_a/t?anno=3&client=te&format=html&v=1.0&logld=v10. Origin http://veganohooligano.com.ua is not allowed by Access-Control-Allow-Origin.
Here it says how to fix that. http://stackoverflow.com/a/7403271/1245478
Take a look – > bad formatting .. http://i.imgur.com/Kw3lmzS.png
NickApril 5, 2013 at 1:12 am #112711
Thanks a lot for advice! I’ll try to figure it out a will let you know the result!April 8, 2013 at 5:45 am #112712
The topic ‘WOOCOMMERCE DEFAULT SORTING BUTTON/SELECTOR – need to put it on widget column’ is closed to new replies.