-
AuthorSearch Results
-
January 8, 2015 at 2:42 pm #9938
In reply to: Woocommerce integration
RossKeymasterThis reply has been marked as private.January 8, 2015 at 2:41 pm #9937In reply to: Woocommerce integration
RossKeymasterYour results container is ‘#content’ – this means that this container is emptied, and replaced with your results. Because your search form is inside this container it also disappears.
You must either move the shortcode out the container called
#content
or use a more specific results container (in your ajax settings) – it looks like you may be able to useul.products
instead of#content
.Let me know ๐
Thanks
January 8, 2015 at 2:20 pm #9935In reply to: Woocommerce integration
AnonymousInactiveHi Ross,
my lay-out is okay now, thanx for the help. I put the shortcode on the /Product page but upon ajax-reload the shortcode is not displaying my search form. Anyway to solve that?
I’m almost done now ๐
Best regards, Janno
January 8, 2015 at 2:05 pm #9934In reply to: WooCommerce product attributes stock
RossKeymasterHi Marc
If it is not in the list then I don’t think it exists as a meta key…
I just had a look, and to test for out of stock I would use either of these keys:
_stock_status
or_stock
(notice the underscore)….I just did a test on an old setup and set the following options:
_stock_status
|char
|= (equals)
|instock
And this returned only products that are in stock.
January 8, 2015 at 1:04 pm #9931In reply to: Woocommerce integration
RossKeymasterHey Janno
I would say this is a theme specific issue and not a plugin issue. I generally do not provide support for customising your theme template files – as these are more to do with your theme than the plugin – for example you can use this template anywhere in your theme (that is not the product archive) and I’m sure you would find similar results/problems.
However, that being said, the first thing to do with this kind of problem is check what the differences are between these two pages.
So I had a quick look at the source of the both the pages – although very similar there is one big difference.
If you take a look at the opening body tag you will notice the woocommerce page formatted in a grid has the class
woocommerce-page
and the results page does not.I added it via the dom inspector to http://vanka.magicservices.nl/producten and the grid works ๐
So there are two approaches to fixing this – the first – edit your css rules so the grid classes are also applied to the Search & Filter results page…
or
Add this class to the body tag on your results page ๐ This option is easier and only requires copying and pasting some code into
functions.php
:add_filter('body_class','add_body_class_to_search_filter'); function add_body_class_to_search_filter($classes) { global $sf_form_data; if ($sf_form_data->is_valid_form()) { $classes[] = "woocommerce-page"; } // return the $classes array return $classes; }
Hope that helps!
January 8, 2015 at 10:52 am #9929In reply to: Woocommerce integration
AnonymousInactiveHi Ross,
I checked force is_search always be true (it was not set before). But no difference. I added a H2 tag to archive-product.php and it is shown in the results. So it’s definitely loading the template.
Do you need login credentials to WordPress and FTP?
Best regards, Janno
January 8, 2015 at 7:50 am #9926In reply to: WooCommerce product attributes stock
AnonymousInactiveHi Ross,
Unfortunately the meta key isn’t availible.
I need the following key: variable_stockJanuary 7, 2015 at 11:55 pm #9924In reply to: Woocommerce integration
RossKeymasterHey Janno
Can you give me a run down of your settings?
I had another user report that he needed
is_search
to be set to true in order to display products properly usingproduct-archive.php
in his theme – I added an option, goto theadvanced
tab in thesettings & defaults
box…Tick “force is_search to always be true” – let me know if that helps?
If not the next question is, is it actually using product archive? Have you tried customising the results or putting some text in the template to see if it is actually being loaded by this plugin for your results?
Thanks
January 7, 2015 at 11:35 pm #9920In reply to: AND filtering not working
AnonymousInactiveHi Ross,
thank you! I created a new taxonomy Landen (countries) and am able to do an AND selection. It works!!!!
You can mark this thread as solved.Thank you very much. Can you please look to my other topic on Woocommerce integration?
Best regards, Janno
January 7, 2015 at 5:33 pm #9898In reply to: WooCommerce product attributes stock
RossKeymasterHey Marc
You need to use the new options to configure it – so there in the “settings & defaults” box there is a tab – post meta…
Here you can create meta queries to modify your search results.
I can’t remember right now how woocommerce handles instock/out of stock but the data is definitely stored in a meta key somewhere… ๐
Hope that helps for now, let me know if you still have problems with the meta query.
Thanks
-
AuthorSearch Results