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
Remove cpath
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- 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_id
Code: Select all
$extract = ['cPath', 'manufacturers_id']; // removes cPath and manufacturers_id
-
- Posts: 96
- Joined: Thu Mar 11, 2021 2:16 am
- 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
-
- Posts: 96
- Joined: Thu Mar 11, 2021 2:16 am
- 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.
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact: