dumspiro44
Forum Replies Created
-
I can’t do this – immediately after activating the plugin, when I try to go into the settings, I get an eternal loading screen
10Web Booster
Optimize your website speed and performance with 10Web Booster by compressing CSS and JavaScript.
Version 2.27.4 | By?10Web – Website speed optimization team?|?View details
WordPress 6.5
Php 8.2.17
Thank you
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] PaginationThank you, everything worked using GPT – here is the code:
// Make the Husky product filter work with page builder layouts
add_action(‘pre_get_posts’, function ($query) {
// Проверяем, является ли запрос объектом и установлен ли тип записи
if (is_object($query) && isset($query->query[‘post_type’])) {
// Проверяем, является ли тип записи “product”
if ($query->query[‘post_type’] === ‘product’) {
// Проверяем, установлен ли параметр wc_query и его значение равно ‘product_query’
if (isset($query->query[‘wc_query’]) && $query->query[‘wc_query’] === ‘product_query’) {
return $query; // Если условие выполняется, возвращаем запрос без изменений
}// Проверяем, существует ли объект $WOOF и не пуст ли массив данных запроса woof if (is_object($WOOF) && !empty(woof()->get_request_data())) { // Дополнительная проверка для таксономии 'regions' if (isset($query->query['tax_query']) && is_array($query->query['tax_query'])) { foreach ($query->query['tax_query'] as $tax_query) { if ( isset($tax_query['taxonomy']) && $tax_query['taxonomy'] === 'regions' && isset($tax_query['field']) && $tax_query['field'] === 'slug' && isset($tax_query['terms']) && in_array($tax_query['terms'], array( 'vseukrainskie', 'vinnitsa', 'dnipro', 'europe', 'zhytomyr', 'zakarpattya', 'ivano-frankivsk', 'kiev', 'krivoy-rog', 'kropyvnytskyi', 'crimea', 'lutsk', 'lviv', 'mariupol', 'mykolaiv', 'odesa', 'poltava', 'rivne', 'sumy', 'ternopil', 'uzhgorod', 'uman', 'kharkiv', 'kherson', 'khmelnytskyi', 'cherkasy', 'chernihiv', 'chernivtsi' )) ) { // Выполняем необходимые действия для выбранной таксономии // Например, можно добавить свою логику фильтрации // woof()->custom_taxonomy_filter_logic(); break; } } } // Предсказываем идентификаторы продуктов с помощью Husky woof()->woof_products_ids_prediction(true); // Устанавливаем параметр post__in для запроса с идентификаторами из woof_wp_query_ids $query->query_vars['post__in'] = $_REQUEST['woof_wp_query_ids']; } } } return $query; // Возвращаем измененный или неизмененный запрос
});
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] PaginationBrands are there by default in Woocommerce – they are just renamed
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] Pagination
These are renamed brandsForum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] PaginationI’ll try to clarify – in the previous video you can see that the category filter worked fine. Regions taxonomy doesn’t work. I’ve removed the latest changes to functions.php for now
- This reply was modified 1 year, 4 months ago by dumspiro44.
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] PaginationUnfortunately it didn’t help
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] PaginationThanks, it helped. but not really
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] TaxonomySorry. Ajax. Problem solved
Forum: Plugins
In reply to: [Booster for WooCommerce] Sorting byoops
Forum: Plugins
In reply to: [Booster for WooCommerce] Sorting bythank you
Forum: Plugins
In reply to: [Booster for WooCommerce] Sorting byI answered the email, now I’ll repeat it here, thank you
Thanks for the tip – deleted all the template animations and everything worked
Unfortunately, none of these methods helped. Turning off the preloader gives a white screen, and changing the mode did not change anything
Thanks, issue resolved