Skip Navigation

[Resolved] AJAX updating of parametric search is unreliable – keeps sticking….

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by Geoffrey Cleverley 7 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#561679

Hey there,

So... bit of a problem with Toolset / WooCommerce / Genesis...

I am building an eCommerce site, it's basically a luxury fashion wholesale catalog site.

The shop / product archive page doesn't need big pictures or much really. It's just a long table, customers will filter the table list by Brands, Categories, Seasons, Gender, and I would like it to be sortable by price (most/lease expensive).

So, we will be dealing with about 200 brands, each has a catalog of upto 200 Brands, there will be somewhere in the order of 30,000 items.

I have a parametric search set up, so can filter the search as I need it.... Showing 20 items per page, with Ajax pagination when clicked.

I need the results to update by Ajax when a visitor changes any settings. Or would certainly like that.

I have it working.... until a visitor goes to view one of the items. When they return to the shop/product-archive page, then the ajax will have stopped working.

Its infuriating hahah, seriously losing my mind. After an indeterminate amount of time it will start working again, I have no idea why or how long, I've not been able to discern any pattern.

It's quite important to update the results like this so that when a user wants to reorder based on price the list reorders.

I have included a link to an uploaded clone of my site, as it's still only on my local dev.

Hope you can help me work this out.

Thanks again

Jeff

#561695

Just an update...

The Ajax stops working when you go to the shop page from a product page.

Thanks

#561850

Dear Jeff,

I am downloading the duplicator package file you provided, will feedback if there is anything found.

#561862

Here is what I found:
1) The problem page "Shop" page is archive page of post type "Products"

2) You are using a layout "Burbillon Shop" to design above archive page, there are two Views cell in it:
a) Custom search form of view "Shop Search"
b) Search result of view "Shop Search"

3) The view "Shop Search" is a normal view, which can not work as expected in the archive page.

I suggest you edit the layout "Burbillon Shop", add a wordpress archive cell,
https://toolset.com/documentation/user-guides/wordpress-archive-cell/
It will create a Views wordpress archive, in the wordpress archive, you can setup your custom search form and filters:
https://toolset.com/documentation/user-guides/front-page-filters/

#561866

Hey Luo,

Thanks for your assistance. I will get onto that and let you know how I get on.

Nice one

Jeff

#561898

OK, Please update this thread when you need more assistance for it, thanks

#561952

Hey Luo,

Well, I set up the search in an archive cell.

I thought everything was working great. Certainly regarding the search and the front end functionality it is, but...

In the back end, admin screen for the archive custom search, there seems to be something funky going on.

None of the changes to the loop output are being registered. I wanted to change the linking button to open in same page, but nothing seemed to register.

I then attempted to swap out some of the things being displayed for other views shortcodes and nothing changed.

No matter what changes I make in the loop output the front end stays the same. I am on my local machine, but flushed all the caches nonetheless...

I'm pretty certain it's my mistake somewhere, but can't work it out.

I have uploaded new duplicator files to that download folder, if the link is still active, otherwise I can send another link...

Thanks again

Jeff

#562184

For the new problem you mentioned above:
None of the changes to the loop output are being registered...

It is abnormal, please check these:
1) Edit the problem layout "Burbillon Shop", remove those two normal view cell, display only one wordpress archive cell, in this wordpress archive cell, setup the custom search form and search result.
2) I tried the duplicator package link you provided, there is only a archive file of 08/20, which is outdated, please check it.

#562201

Hey Luo,

1. I had already done as per your initial instructions. The Burbillon Shop Layout contained only one cell, the archive cell with a custom search.

2. I needed to send you a new link, but I think the situation is resolved.

---

I redid the view from loop template. Previously I had just copied and pasted in my old views setup. I should have thought about it.

The code I used was setup for a sortable list. Archives searches don't have that option in the loop output.

I set it up as standard, but then redited the table headers, and seems to be fine now. If causes any problems I will remove them again.

Thanks again Luo

Jeff