Forums › Forums › Search & Filter Pro › Customer option to display only in-stock product
- This topic has 117 replies, 2 voices, and was last updated 6 years ago by Anonymous.
-
Anonymous(Private) September 28, 2018 at 6:52 pm #189722
Heard back from Ben:
I suggest adding this css:
#topbar-search form {
border: 1px solid #999;
}
#topbar-search .search-icon {
color: #444;
}
#topbar-search .form-search ::-webkit-input-placeholder {
color: #555;
}
#topbar-search .form-search ::-moz-placeholder {
color: #555;
}
#topbar-search .form-search :-ms-input-placeholder {
color: #555;
}
The search form file is searchform.php. It’s in the main folder of the theme.Here is how you can re-load isotope on an event:
$(window).on(‘customEvent’, function( event ) {
var $container = $(‘.reinit-isotope’),
iso_selector = $(‘.reinit-isotope’).data(‘iso-selector’);
$container.isotopeb({masonry: {columnWidth: iso_selector}, transitionDuration: ‘0s’});
});
If you can tell me what event the plugin uses on a filter I can get you exactly what you need. Also, you could use a different search output that doesn’t use a grid if you like. That is controlled in your theme options > misc settings.In a second response, he wrote:
Just thought of this. You don’t have to use the normal search. You can add any widget or shortcode into your topbar so if you don’t want to override files you can just add the plugins search shortcode into the topbar and turn off the search that is there.
Any suggestions?
Trevor(Private) October 1, 2018 at 4:01 pm #189823The gaps thing. My basic script would look something like this:
(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); var $container = $('.reinit-isotope'), iso_selector = $('.reinit-isotope').data('iso-selector'); $container.isotopeb({masonry: {columnWidth: iso_selector}, transitionDuration: '0s'}); }); }(jQuery));
It would have to be inside script tags or in the Simple Custom CSs and javascript plugin (which does the script tags for you).
Anonymous(Private) October 2, 2018 at 1:52 pm #189896Hi, Trevor; This time of day is probably the busiest time for me as I need to be sure everyone knows where they are and what needs to be done today. I also have some tasks of my own that others need for me to complete before they can take whatever to the next step. How much time will you need do you think?
-
AuthorPosts