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?
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.
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.
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.
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.
> 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.