-
AuthorSearch Results
-
June 7, 2016 at 11:29 am #47681
In reply to: Select2 Orderby Not displaying
AnonymousInactiveThanks, my final code looks like below incase anyone else finds they need a similar solution, I had to change the opening and closing brackets after the select2 initilization to get it working:
var $j = jQuery.noConflict(); $j(document).ready(function() { "use strict"; $j(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); //so load your lightbox or JS scripts here again+ $j('.woocommerce-ordering select').select2({ //re-init select2 minimumResultsForSearch: Infinity }); }); });
June 7, 2016 at 10:20 am #47671In reply to: Select2 Orderby Not displaying
RossKeymasterAh this may be an option of select2 – that S&F has enabled by default, but I guess WooCommerce didn’t – take a look at this quick google result 🙂
http://stackoverflow.com/questions/17480040/select2-hiding-the-search-box
Thanks
June 7, 2016 at 8:48 am #47668
TrevorParticipantHi Lisa
Does the page have a search form on it, but instead you are using the WooCommerce sort by function?
June 4, 2016 at 10:37 pm #47495In reply to: Select2 Orderby Not displaying
AnonymousInactiveI believe I now have it working. I changed the line from this:
$j('.searchandfilter select').select2(); //re-init select2
to this:
$j('.woocommerce-ordering select').select2(); //re-init select2
And it is successfully adding the select2 js to the drop-down!. However, how do I remove the extra search field it’s adding to the drop-down?.
June 2, 2016 at 1:03 pm #47300In reply to: Filter page deletes my page settings
AnonymousInactiveWooCommerce and I use the WooCommerce Shop display method.
June 2, 2016 at 12:28 pm #47297In reply to: Filter page deletes my page settings
TrevorParticipantWhat type of shop? WooCommerce, EDD, …? What display results method are you using?
May 31, 2016 at 6:40 pm #47155In reply to: Woocommerce Product Category Search
RossKeymasterHi Aaron
What you have done is completely change the way the shop page works so it is no longer a shop.
S&F works with WooCommerce, however, if you are preventing the normal function of WooCommerce it cannot be reasonably expected that a WooCommerce compatible plugin would work in your environment too.
S&F even supports the category view of the shop by WooCommerce – where the categories are listed above the products.
However, considering what you are doing with that page it sounds like there is a better implementation that could get around your issues.
To me it seems this is a simple gateway page, to easily choose a gender. Instead of hacking the shop page, why not just create a new page with this selection on, and throughout your site link to this page as your “shop”, so they will have gender selection before accessing the shop…
This will leave WooCommerce in tact and operating correctly whilst also having the functionality you want? And then in turn S&F will be allowed to work correctly too.
I’m only saying this because really there isn’t an issue with WooCommerce & S&F together, its the hack / modification of the shop page which is causing issues.
Thanks
May 26, 2016 at 3:26 pm #46800In reply to: Woocommerce Product Category Search
RossKeymasterHi Aaron
Sorry for the delay.
Are you talking about the plugin “WooCommerce Mix & Match Products”? Because that is not part of WooCommerce.
In addition, where can I see a S&F search form to see the problem you are describing?
Thanks
May 20, 2016 at 8:55 pm #46210In reply to: Select2 Orderby Not displaying
AnonymousInactiveI have found how the theme is adding the select2 to the woocommerce sorting select:
$j(document).ready(function() { "use strict"; $j('.price_slider_wrapper').parents('.widget').addClass('widget_price_filter'); initSelect2(); initAddToCartPlusMinus() }); <strong>function initSelect2() { $j('.woocommerce-ordering .orderby, #calc_shipping_country, #dropdown_product_cat').select2({ minimumResultsForSearch: -1 }); $j('.woocommerce-account .country_select').select2();</strong> }
I tried adding the search and filter select class .searchandfilter .sf-input-select into the function
but unfortunately it didnt work.
I feel this script is close to what I need but I dont know how to combine it with the script you started for me above.May 18, 2016 at 3:42 pm #45911In reply to: Make a filter over a resutl page
AnonymousInactiveHi, No I’ using my wordpress page as a catalogue of products. I’m using a custom post type named Products to show the products, no woocommerce.
-
AuthorSearch Results