If i click my categories under the mega menu i get the correct seo url however if i click on the same category from the product page i get an unfriendly url.
For instance https://braga.co.za/oem-satnav has several child pages,
https://braga.co.za/oem-satnav/a-c-gps
https://braga.co.za/oem-satnav/a-c-gps/acura-navigation
If i click acura-navigation on the mega menu the correct url is displayed
if i click the same category on the product page screen, i get an unfriendly url
here's a snippet snippet of my .htaccess
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Worthy to mention that product pages seem to be working fine except for category pages only
Seo changes i have made accordingly
Rename .htaccess.txt to .htaccess
Enable Seo rewrite under system>settings>server
Assigned seo url on the category page
Thank you
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
Module "REFINE SEARCH" generate links that doesn't contain full &path to category. You shoud fix code. I can help you with that for a cup of coffe
Path attribute in a link should contain parent categories, like this https://braga.co.za/index.php?route=pro ... 31_529_532
My extensions in marketplace. [ security | flexibility | speedup ]
I can not reproduce because your mega menu does not have the oem-satnav in it
Nevertheless a few of your mega menu links are also incorrect -
DG
Accessories
Amplifiers
Boxes
Crossovers
Radios
My guess is that you do not have everything to your SEO table
Attachments
Screen-Shot-2021-05-24-at-05.48.28.jpg (185.21 KiB) Viewed 1709 times
Screen-Shot-2021-05-24-at-05.47.11.jpg (45.52 KiB) Viewed 1709 times
Screen-Shot-2021-05-24-at-05.45.49.jpg (105.09 KiB) Viewed 1709 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
This isn't related to your .htaccess, it's most likely a problem with your theme.Tee.Mothiba wrote: ↑Mon May 24, 2021 6:22 amIf i click my categories under the mega menu i get the correct seo url however if i click on the same category from the product page i get an unfriendly url.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thank you all for the feedback. I think i should take you up on the offer for coffee as i have tried with no luck. I am now able to reproduce the associated sub category path upon clicking the product page. I have reuploaded my orginal category.tpl file which has restored the changeshalfhope wrote: ↑Mon May 24, 2021 7:16 amHi!
Module "REFINE SEARCH" generate links that doesn't contain full &path to category. You shoud fix code. I can help you with that for a cup of coffe
Path attribute in a link should contain parent categories, like this https://braga.co.za/index.php?route=pro ... 31_529_532
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
That is correct. some of my categories have not been assigned the relevant paths with a majority of them assignedby mona wrote: ↑Mon May 24, 2021 12:55 pmRefine Search is core Opencart and the SEO links seem to work as they should
I can not reproduce because your mega menu does not have the oem-satnav in it
Nevertheless a few of your mega menu links are also incorrect -
DG
Accessories
Amplifiers
Boxes
Crossovers
Radios
My guess is that you do not have everything to your SEO table
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
files altered
1) catalog/view/theme/your-theme/template/extension/module/oclayerednavigation/occategory.twig (duplicates)
2) catalog/controller/product/category.php (restored from original oc source files)
3) oclayerednavigation modification on oc_modification table
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
One more reason to read this here before posting: viewtopic.php?f=176&t=200480Tee.Mothiba wrote: ↑Wed May 26, 2021 12:19 pmThank you to everyone who contributed. halfhope was able to assist with a fix in less than a minute as per paul's advise the issue is not related to opencart but the actual theme installed
files altered
1) catalog/view/theme/your-theme/template/extension/module/oclayerednavigation/occategory.twig (duplicates)
2) catalog/controller/product/category.php (restored from original oc source files)
3) oclayerednavigation modification on oc_modification table
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
I have PM you.halfhope wrote: ↑Mon May 24, 2021 7:16 amHi!
Module "REFINE SEARCH" generate links that doesn't contain full &path to category. You shoud fix code. I can help you with that for a cup of coffe
Path attribute in a link should contain parent categories, like this https://braga.co.za/index.php?route=pro ... 31_529_532
Users browsing this forum: No registered users and 506 guests