Post by Tee.Mothiba » Mon May 24, 2021 6:22 am

I have a problem on my oc 3.0 hoping someone would be able to shed some light

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

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by halfhope » Mon May 24, 2021 7:16 am

Hi!

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 ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by by mona » Mon May 24, 2021 12:55 pm

Refine 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

Attachments

Screen-Shot-2021-05-24-at-05.48.28.jpg

Screen-Shot-2021-05-24-at-05.48.28.jpg (185.21 KiB) Viewed 1655 times

Screen-Shot-2021-05-24-at-05.47.11.jpg

Screen-Shot-2021-05-24-at-05.47.11.jpg (45.52 KiB) Viewed 1655 times

Screen-Shot-2021-05-24-at-05.45.49.jpg

Screen-Shot-2021-05-24-at-05.45.49.jpg (105.09 KiB) Viewed 1655 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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Mon May 24, 2021 7:16 pm

Tee.Mothiba wrote:
Mon May 24, 2021 6:22 am
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.
This isn't related to your .htaccess, it's most likely a problem with your theme.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Tee.Mothiba » Tue May 25, 2021 7:26 am

halfhope wrote:
Mon May 24, 2021 7:16 am
Hi!

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
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 changes

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

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by Tee.Mothiba » Tue May 25, 2021 7:28 am

by mona wrote:
Mon May 24, 2021 12:55 pm
Refine 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
That is correct. some of my categories have not been assigned the relevant paths with a majority of them assigned

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

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by Tee.Mothiba » Wed May 26, 2021 12:19 pm

Thank 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

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

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm

Post by OSWorX » Wed May 26, 2021 2:47 pm

Tee.Mothiba wrote:
Wed May 26, 2021 12:19 pm
Thank 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
One more reason to read this here before posting: viewtopic.php?f=176&t=200480

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Majnoon » Thu Feb 09, 2023 3:16 am

halfhope wrote:
Mon May 24, 2021 7:16 am
Hi!

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
I have PM you.

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm
Who is online

Users browsing this forum: nonnedelectari and 400 guests