How Do You Create A Page That Shows All Products With A Proper Url

How Do You Create A Page That Shows All Products With A Proper URL

it's for www.eliteliquid.co.uk - the website only has 42 products. For SEO purposes and ranking in Google I want to create a page that shows all these products with a proper, fixed URL. How would I do this?

Create a category and assign all the products to it.

Duh - haha thanks. I was overthinking things!

Also with our SEO Rules addon you can add seo rules for any URL. In your case it can be empty search which shows all items on one page:

index.php?dispatch=products.search&search_performed=Y&items_per_page=999 

Duh - haha thanks. I was overthinking things!

You are welcome. :)

If a category is hidden, google can still crawl it and customers can still find it via google (when ranked up) - correct?

If a category is hidden, google can still crawl it and customers can still find it via google (when ranked up) - correct?

Yes, if this category exists in the sitemap.xml or was indexed earlier

How can I have one category page that shows all products. I don't want this across the whole site, just this one category. 68 products on one page.

- enable My changes module

- create the app/addons/my_changes/controllers/frontend/categories.pre.php file

use Tygh\Registry;

if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }

if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) {
return;
}

if ($mode == ‘view’) {
if ($_REQUEST[‘category_id’] == 123) {
Registry::set(‘settings.Appearance.products_per_page’, 9999);
}
}

- replace 123 with the required category ID

- save the file and check the result

Thanks for suggestion. Followed exactly, didn't work though. Anything needs changing?

[url=https://postimg.cc/image/3wjiv0xd7/]Capture3.jpg[/url]


<?php>

use Tygh\Registry;

if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }

if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) {
return;
}

if ($mode == ‘view’) {
if ($_REQUEST[‘category_id’] == 7) {
Registry::set(‘settings.Appearance.products_per_page’, 9999);
}
}

Hm.. It works on my local installation. Try to delete var/cache directory and make sure that the My changes addon has the Active status

Sorted, Thanks again