Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 291 through 300 (of 1,497 total)
  • Author
    Search Results
  • #239523

    Trevor
    Participant

    Is this data term in the WooCommerce SKU field? Or a product title?

    #239336

    Anonymous
    Inactive

    Thank you for your suggestions. Changing the NULL value to a word worked perfectly. I wrote this and it seems to be working just like I needed it to.

    //Add flatrate to database
    add_action( 'woocommerce_update_product', 'hm_sync_on_product_save', 10, 1 );
    function hm_sync_on_product_save( $product_id ) {
         $product = wc_get_product( $product_id );
         $person_multiplier = get_post_meta( $product_id, '_wc_booking_person_cost_multiplier', true);
    		if( empty( $person_multiplier )){
    			update_post_meta($product_id, '_wc_booking_person_cost_multiplier', 'false');
    		}
    	 
    }	
    #239073

    Anonymous
    Inactive

    Hi,

    I’m using Pods and have two custom field on WooCommerce products event_date and end_date and I need the end user to be able to filter for these on the front end.

    I’m also using Beaver Builder, Beaver Themer and PowerPack Content Grid.

    Help is very much appreciated.
    Thanks,
    Dave


    Anonymous
    Inactive

    Check the box “Printer”, then uncheck the box “Printer”. Now it’s displaying all products. Is it possible that when the filter is cleared, it will go back to the original page? Because right now it goes to the shop page.

    Thanks

    #238962

    Anonymous
    Inactive

    Thank you for your response. Woocommerce booking is creating a database table for a NULL value.

    This will be used on the front end. Our customers will be selecting if they want an event that is priced per person (value=”1″) or flat rate (value=””).

    When I test the Post Meta condition “not exists” no products show up but then when I create a condition that says “not equal” to 1, the appropriate products show up. So I would like the filter to do this. How can I sort that out?

    #238789

    Anonymous
    Inactive

    This would be really useful for me to see. I’m trying to set up a WooCommerce shop with Divi and Search & Filter and would love some help.

    #238775

    Trevor
    Participant

    Chosen is included with our plugin by default. However, it is now pretty much abandoned and has not received any major updates in a long time. It has poor support for iOS devices for example.

    One of the reasons so many themes/sites use ‘Select’ replacement scripts is that much of the formatting of standard select controls is done by the browser, and so you have little or no control over that.

    There is an option in our settings page to choose which Combobox script to use. If you change this to Select2, that script is then available for you to apply to the form (see below for how). Select2 is maintained now by the WooCommerce team, who are, of course, owned by Automattic, the owners of WordPress, and as such is used by a lot of themes and plugins.

    If you want the select box with a search box at the top, you need to add this JavaScript to the page:

    <script>
    (function ( $ ) {
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        $('select.sf-input-select').select2();
      });
    }(jQuery));
    jQuery(document).ready(function($){
      $('select.sf-input-select').select2();
    });
    </script>

    If you want it without the search box at the top of the select boxes, then this:

    <script>
    (function ( $ ) {
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        $('select.sf-input-select').select2({minimumResultsForSearch: -1});
      });
    }(jQuery));
    jQuery(document).ready(function($){
      $('select.sf-input-select').select2({minimumResultsForSearch: -1});
    });
    </script>

    This post shows the complete Select2 CSS that we already include in our plugin:

    https://support.searchandfilter.com/forums/topic/customise-dropdown-combobox/#post-180345

    At the end is an example of how to modify it.

    #238395

    Anonymous
    Inactive

    Nevermind, i figured it out, it was a woocommerce Setting i have to turn on

    #238161

    Anonymous
    Inactive

    I tried all of those ways, I kept only search & filter + woocommerce and default wp theme (Twenty Nineteen), still same issue. 🙁


    Anonymous
    Inactive

    Hello,

    My configuration:
    – WordPress 5.3.2
    – Astra theme (child)
    – Elementor v2.9.7 (basic version)
    – Woocommerce 4.0.1

    I used a shortcode and I managed to place two filters for a product page:
    – Taxonomy with a Checkbox (the data is detected correctly)
    – Post Meta with a Range-dropdown (data is also detected well)

    Filters are displayed correctly on the page, but they have no effect on product selection. I click on it (after updating and refreshing the page, of course) and nothing happens.

    I must say that I only used the shortcode called “Search Form Shortcode”. Because by using the other two it displayed the wrong products and distorted the product images.

    Thanks for your help. Sorry for the translation errors, I’m French, I do my best

Viewing 10 results - 291 through 300 (of 1,497 total)