Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 1,381 through 1,390 (of 1,497 total)
  • Author
    Search Results
  • #9938

    Ross
    Keymaster
    This reply has been marked as private.
    #9937

    Ross
    Keymaster

    Your 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 use ul.products instead of #content.

    Let me know ๐Ÿ™‚

    Thanks

    #9935

    Anonymous
    Inactive

    Hi 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

    #9934

    Ross
    Keymaster

    Hi 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.

    #9931

    Ross
    Keymaster

    Hey 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!

    #9929

    Anonymous
    Inactive

    Hi 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

    #9926

    Anonymous
    Inactive

    Hi Ross,

    Unfortunately the meta key isn’t availible.
    I need the following key: variable_stock

    #9924

    Ross
    Keymaster

    Hey 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 using product-archive.php in his theme – I added an option, goto the advanced tab in the settings & 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

    #9920

    Anonymous
    Inactive

    Hi 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

    #9898

    Ross
    Keymaster

    Hey 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

Viewing 10 results - 1,381 through 1,390 (of 1,497 total)