App version 3.0.4 Phoenix 1.0.8.4 PHP 7.4
In the readme.html included with the app there is an option in the instructions to "Add cPath to product URLs"
However in Admin->Configuration->USU no such option exists.
My test shop and live shop both display the cpath in their URLs,
I would like them removed, is this possible?
Martin
Ultimate SEO Urls
Remove cpath - Ultimate SEO Urls
- mhsuffolk
- Contributor
- Posts: 199
- Joined: Sat Oct 26, 2019 9:13 am
- Phoenix Version: v1.1.0.6
- Contact:
Re: Remove cpath
Yes, there is a way - I removed the option but kept cPath instead of removing it. Change line 141 of includes\apps\ultimate_seo_urls\page_modules\product_info.php from
to
I'll make it default for future versions.
Code: Select all
$extract = array( 'manufacturers_id'); // removes manufacturers_idCode: Select all
$extract = ['cPath', 'manufacturers_id']; // removes cPath and manufacturers_id-
Piernas
- Member
- Posts: 98
- Joined: Thu Mar 11, 2021 2:16 am
- Phoenix Version:
- Contact:
Re: Remove cpath
I have also noticed that category listing also introduces 'sort' query when acessing a product. For removing it the word can be added to the extract array, too:
Code: Select all
$extract = ['cPath', 'manufacturers_id', 'sort']; // removes cPath and manufacturers_id
-
Piernas
- Member
- Posts: 98
- Joined: Thu Mar 11, 2021 2:16 am
- Phoenix Version:
- Contact:
Re: Remove cpath
Excellent, thank you. That has worked. I prefer a nice clean URL without the cpath and sort. Punters can now see the important info, IMO the cpath and sort are not required to be visible.
- mhsuffolk
- Contributor
- Posts: 199
- Joined: Sat Oct 26, 2019 9:13 am
- Phoenix Version: v1.1.0.6
- Contact: