PluginUs.Net - Công cụ kinh doanh cho WooCommerce và WordPress

[hiện thực hóa ý tưởng của bạn - biến ước mơ của bạn thành hiện thực]

Hỗ trợ Forum

Bạn cần đăng nhập để tạo yêu cầu (chủ đề) cho bộ phận hỗ trợ

[woof_text_filter] > As main search filters current page... It doesn't reset the search...

Bộ phận hỗ trợ không làm việc vào Thứ Bảy và Chủ Nhật, vì vậy một số yêu cầu vào Thứ Sáu có thể được trả lời vào Thứ Hai. Nếu bạn gặp vấn đề với việc đăng ký, hãy yêu cầu trợ giúp về Liên hệ với chúng tôi làm ơn trang
Nếu bạn không nhận được email trong vòng 24 ~ 36 giờ làm việc, trước tiên hãy kiểm tra hộp thư rác của bạn và nếu không có email nào từ bộ phận hỗ trợ ở đó - hãy quay lại diễn đàn và đọc câu trả lời tại đây. KHÔNG TRẢ LỜI VỀ EMAIL [noreply@pluginus.net] TỪ DIỄN ĐÀN !! Email chỉ là thông tin của bạn, tất cả các câu trả lời chỉ nên được xuất bản ở đây.
Bộ phận hỗ trợ không hoạt động vào Thứ Bảy và Chủ Nhật, vì vậy, một số yêu cầu vào Thứ Sáu có thể được trả lời vào Thứ Hai.

Chào,

In order to take advanatge of the filters correctly, I replaced the WooCommerce standard product search with your '[woof_text_filter]' as the main search throughout the entire website... It works very well, although have found one issue...

If you're on a page with the results you just searched for... then you go to the top search again, it tries to filter the curent product category/result, VS searching again from the start/reseting... and will likely result in a 'No products found'...

How can you make it so the text search, performs a clean search each time when using the 'main search' input? e.g. can you add a line to the shortcode e.g. [woof_text_filter results_page=""] (just as an example).

Example: (searching for the word, 'badge'...)

1. /products/?filter=1&woof_text=badge   <<<< This is perfect....

But if I search for 'badge' on a category page, for example it does this:

/products/c/some-category/?filter=1&woof_text=badge&paged=1&really_curr_tax=96-product_cat

^ So what i'd like to achieve is no matter what page I'm on, the search results for the top bar will always goto  '/products/?filter=1&woof_text=badge' ... and never use a category indicator.

Cập nhật:

Still not working, but using something like this:
[woof by_only="by_text" tax_only="none" is_ajax="0" ajax_redraw="0" redirect="/products/"]

Gives half the required results e.g. ....if you go on a category and search.... it will still wrongly populate the catgeory URL e.g.  /products/c/some-category/?filter=1&woof_text=badge&paged=1&really_curr_tax=96-product_cat...~
BUT, if you refresh on the catgeory....and search again using the header search...it'll redirect to the /products URL correctly.... e.g. /products/?filter=1&woof_text=badge ....

Not sure why a refresh would make it work, it's not to do with template caching (I'm not using any caching plugin).... but even if I go onto the category again...I still have to refresh after a search to make it work.... which isn't right...

I am using Ajax mode for main filtering on categories (I also have text_search on the side filters on categories/products index), as it's just the best way to filter products and keeps the user on the same page...

Although, from my 2nd post above, you can see, I need the header/top search to work without Ajax, and just take the users search results always to /products ...... (note it 'almost' works, but the current bug/issue is you have to refresh the page, then use the top search).... if you can help in getting it to work without a page reload, that would be perfect, or at least what to add to the shortcode to make that search box work without using the Ajax method.

Cảm ơn bạn.

Xin chào

Vui lòng thả cho tôi liên kết chính xác đến vấn đề