PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Пагинация и сортировка товаров

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Есть WP+Woocommerce.

Помогите пожалуйста разобраться с сортировкой и пагинацией в husky - products filter, отказывается работать при ключенном ajax режиме и нажатии на 2 и далее страницу выдает ссылку вида /shop/?orderby=popularitypage/2/

Хотя правильная - /shop/page/2/?orderby=popularity В консоли ссылка выглядит вот так - href="/wp-admin/admin-ajax.php?paged=3"

Отказаться от ajax mode, к сожалению не вариант, так как на нем завязано очень много ункционала.

Заранее спасибо за помощь.

Версия WordPress: 6.6.2

Версия WooCommerce: 9.1.4

Версия HUSKY - Products Filter Professional: 3.3.4.5

Тема: Makenzie Lite v. 1.6

Вроде как нашелся код, который отвечает за пагинацию. Я так понимаю он просто добавляет page/$ к ссылке и в таком случает сортировка остается но в середине ссылки.

function woof_init_pagination() {

if (woof_is_ajax === 1) {
//jQuery('.woocommerce-pagination ul.page-numbers a.page-numbers').life('click', function () {
jQuery('body').on('click', '.woocommerce-pagination a.page-numbers', function () {
var l = jQuery(this).attr('href');

if (woof_ajax_first_done) {
//wp-admin/admin-ajax.php?paged=2
var res = l.split("paged=");
if (typeof res[1] !== 'undefined') {
woof_ajax_page_num = parseInt(res[1]);
} else {
woof_ajax_page_num = 1;
}
var res2 = l.split("product-page=");
if (typeof res2[1] !== 'undefined') {
woof_ajax_page_num = parseInt(res2[1]);
}
} else {
var res = l.split("page/");
if (typeof res[1] !== 'undefined') {
woof_ajax_page_num = parseInt(res[1]);
} else {
woof_ajax_page_num = 1;
}
var res2 = l.split("product-page=");
if (typeof res2[1] !== 'undefined') {
woof_ajax_page_num = parseInt(res2[1]);
}
}

//+++

{
woof_submit_link(woof_get_submit_link(), 0);
}

return false;
});
}
}

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Update the plugin to latest version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Hello!
Thanks for your reply!
Please tell me where I can find the license key in the settings? The site was received"as is", we are putting it in order.
Sorry for the translation - this is Google translate.
As for updating - this is impossible, since adjustments were made (styles/functionality) to the plugin code itself. Updating = erasing it all.

I just have no idea how to solve the problem - the output in the sorting link during pagination AFTER the page and that's all, thanks in advance for the answer!

Hello

To get  license  key - https://codecanyon.net/downloads -> https://c2n.me/49ZXJv0.png

Unfortunately, we do not support old and customized products. Please update the plugin, maybe this problem has already been solved in the new version

You were right - I deleted the plugin and installed the free version, but a fresh one - this bug is solved. Please tell me - how can I find out if I had a license or if it was a zero version? Again - the site was"inherited" and there is no contact with the previous owners.

Hello

You had an old paid version of the plugin. You can get or check the license only on this site -  https://codecanyon.net