Content of the page

realmag777

Website

All posts by realmag777

Working with WPML

WOOF is absolutely compatible with WPML. All taxonomies labels can be translated into all languages in: tab Advanced -> “WPML taxonomies labels translations” using next syntax-example (english is default in the example): es:Locations^Ubicaciones es:Size^Tamano de:Locations^Lage de:Size^Grobe    

Styles and codes which are applied on the demo site

To make demo site more attractive and demonstrated different features the next code is applied: In the plugin settings -> tab Advanced -> “Custom CSS code” .woof_price3_search_container{ width: 100% !important; clear: both; } .woof_sid_auto_shortcode .woof_container_radio .woof_block_html_items, .woof_sid_auto_shortcode .woof_container_checkbox .woof_block_html_items, .woof_sid_auto_shortcode .woof_container_label .woof_block_html_items { min-height: 160px; max-height: 160px; overflow: auto; padding: 0 0 0 7px; }… read more

Update of WooCommerce Products Filter v.2.1.6

Fixed: site migration now works fine and WOOF settings are migratable with all components of the site Fixed: http://www.woocommerce-filter.com/filtering-by-product-attribute-doesn-work/ resolved programmatically Fixed: bug with chosen in mobile view New extension: Statistic – http://www.woocommerce-filter.com/extencion/statistic/ New extension: Radio or checkbox in drop-down – http://www.woocommerce-filter.com/extencion/radio-or-checkbox-drop-down/ New extension: By rating – http://www.woocommerce-filter.com/extencion/by-rating/ synchronizing of WOOF functionality with the native… read more

How to save a selected filter in a session so the website keeps it remembered for the user

Works from v.1.1.6/2.1.6. PHP 5.4 is minimum requirement. Drop the next script example in the functions.php file of the current wp theme: add_filter(‘send_headers’, function() { if ($_SERVER[‘SCRIPT_URL’] === ‘/’ OR $_SERVER[‘SCRIPT_URL’] === ‘/shop/’) { global $WOOF; if (!$WOOF->is_isset_in_request_data($WOOF->get_swoof_search_slug())) { $woof_last_search_request = $WOOF->storage->get_val(‘woof_last_search_request’); if (!empty($woof_last_search_request) AND is_array($woof_last_search_request)) { unset($woof_last_search_request[‘wc-ajax’]); unset($woof_last_search_request[‘page’]); unset($woof_last_search_request[‘paged’]); //*** $_GET = $woof_last_search_request; add_filter(‘woof_get_request_data’,… read more

Actions after AJAX filtering done

There is in-built javascript event in the filter: woof_ajax_done So, if you want to apply any js code after WOOF searching by AJAX done, for example reinitialization of product galleries, use next code construction somewhere in js file of current wp theme (better use child theme): jQuery(document).on(“woof_ajax_done”, woof_ajax_done_handler); function woof_ajax_done_handler(e) { //write your code here }… read more

How to set logic ‘AND’ for taxonomies in the search request

Question: Is it possible for product tags (when displayed as checkbox) to filter products according to an “AND” logic? Question: If I use a query like this: “?swoof=1&pa_attr1=value_a,value_b” That gives me the products with value_a OR value_b. Is there a way to get only the products that have value_a AND value_b at the same time?  Answer: http://www.woocommerce-filter.com/hook/woof_main_query_tax_relations/ Works… read more