Post by iankey » Sun Oct 20, 2013 7:08 pm

Hello

I've just downloaded the 'change_index_php_route.xml' file provided by fullphat. When I've tested my shop I've spotted a small bug: 'account/return/insert' & 'account/return' are two different destinations but they will be both renamed with: 'returns' that means that customers can't access the 'view your return repuests' page when they're logged in be directed to the 'returns request' page. I've changed the 'account/returns' SEO URL to 'returned' and it's working properly. Thanks to Ahnung & fullphat and there is the fixed file for download:

Newbie

Posts

Joined
Sun Oct 20, 2013 5:57 pm

Post by AllenConquest » Wed Oct 30, 2013 6:25 am

This is a great little mod, and I've done a bit of debugging to fix the outstanding issue:

Replace

Code: Select all

        } elseif (isset($data['route']) && $data['route'] == 'account/order') {
with

Code: Select all

        } elseif (isset($data['route']) && $data['route'] == 'account/order' && $key != 'order_id') {
I have also added some more urls to fix on the account page:

Code: Select all

        } elseif ($this->request->get['_route_'] ==  'your-reward') { 
            $this->request->get['route'] =  'account/reward';
        } elseif ($this->request->get['_route_'] ==  'address-book') { 
            $this->request->get['route'] =  'account/address';
        } elseif ($this->request->get['_route_'] ==  'password') { 
            $this->request->get['route'] =  'account/edit';
        } elseif ($this->request->get['_route_'] ==  'account-edit') { 
            $this->request->get['route'] =  'account/password';
I hope this helps someone.

Cheers,

Allen

Attachments


New member

Posts

Joined
Tue Sep 06, 2011 9:13 pm

Post by el3ati2 » Thu Nov 28, 2013 9:30 am

Guys has anyone tried this mod on v1.5.6?

I have the file in my XML folder in VQMOD, I have my SEO URL turned on, my htaccess renamed.
In fact the SEO URLs for my products work fine.
But after adding this mod, none of my pages (index,account,checkout etc..) have changed URLs. Am I missing something? or this mod must be modified for v1.5.6?

Cheers

Newbie

Posts

Joined
Thu Nov 28, 2013 9:25 am

Post by vera6000 » Thu Dec 19, 2013 7:43 am

[quote="But after adding this mod, none of my pages (index,account,checkout etc..) have changed URLs. Am I missing something? [/quote]

Have the same question about those pages. Only the products URLS have changed.
Help is appreciated. Thanks.

New member

Posts

Joined
Mon Nov 25, 2013 10:52 pm

Post by el3ati2 » Thu Dec 19, 2013 6:14 pm

vera6000 wrote:[quote="Have the same question about those pages. Only the products URLS have changed.
Help is appreciated. Thanks.
If you're on v1.5.6 then checkout how I solved it here.

Newbie

Posts

Joined
Thu Nov 28, 2013 9:25 am

Post by jodysykes » Wed Mar 05, 2014 12:41 am

If SEO URL's is on Yes - does this change the URL's on site?

Newbie

Posts

Joined
Wed Mar 05, 2014 12:32 am

Post by rthompsonit » Sun Jun 08, 2014 7:31 am

Apologies for digging up an oldish thread, but thought my question could assist others looking for the same solutions.

I've got it working fine, and it's a grand job but I need it to also fix other pages.

The main one at the moment is the compare page located @ index.php?route=product/compare

If anyone can help that would be grand.

Newbie

Posts

Joined
Sun Jun 08, 2014 7:29 am

Post by admiss » Thu Apr 02, 2015 3:53 pm

Hi guys,

I have an issue with ordr history -> reorder

} elseif ($this->request->get['_route_'] == 'order-history') {
$this->request->get['route'] = 'account/order';

} elseif (isset($data['route']) && $data['route'] == 'account/') {
$url .= '/order-history';

works fine, but if I want to reorder my previous order, I get Page not found
Could you fix it?

Newbie

Posts

Joined
Thu Mar 26, 2015 4:57 pm

Post by msbree » Mon Apr 27, 2015 8:18 pm

Hey guys!

This xml file worked great for changing the My Account, Wishlist, Shopping Cart, Checkout, bla, bla, bla links; however, when I tested them, they all took me to "page not found"! In addition, WITHOUT this xml file, my logo on the home page takes me to a 'page not found', but with this xml file, it's normal.

I have followed ALL the instructions on:
http://www.nixstudio.com/seo-friendly-url-opencart/

All my category and product pages are SEO Friendly, but not these core files!

Can someone please tell me (and others with this problem) how to fix this? Is there an updated change_index_php_route.xml file that corrects this?

If there's no fix, how can I at least correct the link on my logo?

thanks!!!

Newbie

Posts

Joined
Mon Apr 27, 2015 8:08 pm

Post by Dolpheria » Mon Jan 18, 2016 11:11 am

The change_index_php_route.xml files provided are excellent - but does anyone have a complete working file for Opencart 2.x?

I have NO FREAKIN IDEA as to why this wouldn't be a standard option in OC admin (assume it is for extension $$$ - though why would you hurt the mother product this much for so little gain?). I have wasted hours trying to solve it properly.

Help would be greatly appreciated - for OpenCart 2.x

Newbie

Posts

Joined
Thu Jan 07, 2016 10:51 am

Post by kjshier » Sun Mar 13, 2016 4:42 am

Hi,
I too could do with a complete file fix for OpenCart V2.x

Anyone?

Newbie

Posts

Joined
Wed Jul 30, 2014 5:29 pm
Location - South Wales UK

Post by guntis.e » Mon Aug 28, 2017 8:36 pm

here is extension for 2.3 (tested on 2.3.0.2)

Attachments


Guntis
Image Partneris.lv - opencart web site development and support


Active Member

Posts

Joined
Fri Jan 28, 2011 4:20 am
Who is online

Users browsing this forum: Amazon [Bot] and 15 guests