Skip Navigation

[Resolved] View Search & Pagination Results Display

This support ticket is created 6 years, 1 month 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/Karachi (GMT+05:00)

This topic contains 7 replies, has 3 voices.

Last updated by Waqar 6 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1171208

Hi,

I currently have a View with search and pagination results display for all site products. I would like to duplicate this View and set it to display a different product array using a second content template.

Can the duplicate View contain the same "search and pagination" HTML filter setup, the same search form and results display?

#1171214

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Chuck

If from the list of Views at Toolset > Views you hover over a View you will see the option to duplicate it.

That will make an exact copy (except for the title). All of the settings, including the filter controls inserted in the Search and Pagination section, will be duplicated on the new View, which you can then edit as required.

#1171278

Hi Nigel,

Thank you for responding. However, I was already aware of the "Duplicate" link.

The question I posted was:

Can the duplicate View contain the same "search and pagination" HTML filter setup, the same search form and results display?

The search form for the first View is here: hidden link

Can the duplicate View Search and Pagination output to the same search form and results display?

#1171279

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'm not sure I understand the question.

The only thing I think you could mean is if you have one View where you have the search form on one page and the search results on another.

You want to know if you can create another View with a different search form, but you want the results to be output where you already output the results of the first View.

If that's the case then the answer would be no. The Views have unique IDs which would affect pagination.

The filters might still work, they operate by listing to URL parameters, and the URL parameters would be included in the page regardless of which View search initiated loading the results page.

#1171285

Nigel,

If I duplicate the first view, can both Views display posts from the same post-type (Products)?

1. Display the Products in the search results.

2. Display the same products on a marketing page.

Will the posts in the duplicate View show in the search results of the first View?

#1172273

Hi Charles,

Nigel will be away for the next few days, but I'll be happy to follow up on this ticket.

A view is just a method to show a list/group of specific content (e.g. posts) based on the set criteria. You can create unlimited views to show the same list/group of posts from the same post-type (e.g. Products).

Following scenarios will answer your questions:

1. Suppose you have a View named "A" which is set to show a list of products on Page "X".

2. You duplicated the View "A" and named the duplicated View "B" and set it to show on Page "Y".

3. As a result, both Pages X and Y will show the same list of products.

4. Suppose you next added some changes to the criteria of products to show in settings of your View "B" (the duplicate).

5. As a result, the list of products on the Page "Y" will change, but the Page "X" will continue on showing the old list of products.

Hope this clarifies and please let me know if any point is still not clear.

regards,
Waqar

#1172291

Hi Waqar,

I experimented with this topic myself a couple of times unsuccessfully.

The objective is for me to be able to create random landing pages to display select products for marketing.

For example The following link displays the same product image for three different size product offers hidden link

The three product summaries are from the view that displays in the search results, the two larger sizes can be seen here hidden link

The problem is I want to show an Add To Cart button in the product summary for the marketing pages but I do not want the Add To Cart button to display in the regular search results that the product summary View is linked to.

Essentially I want to be able to create marketing landing pages with Add To Cart buttons that will link to the cart and checkout pages without changing the current search and pagination display of products in search results.

Do you have any suggestions?

#1172537

Hi Charles,

> Essentially I want to be able to create marketing landing pages
> with Add To Cart buttons that will link to the cart and checkout
> pages without changing the current search and pagination
> display of products in search results.

- This is fairly simple to achieve and here are the steps:

1. Duplicate your view "Single Product List Entry" which is being used of the search page.
( hidden link )

2. Name the newer duplicated view as you like, and add it to your marketing landing page(s).

3. Open the new duplicated view for editing and insert the add to cart button (or any other changes) to its content template.

4. Changes to duplicated view will reflect on the marketing landing page(s), but not on the original search results page.

Note: if these steps don't work as expected, please share the links to the duplicated view and the landing page, for further troubleshooting.

regards,
Waqar