Content of the page



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: resolved programmatically Fixed: bug with chosen in mobile view New extension: Statistic – New extension: Radio or checkbox in drop-down – New extension: 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