Post by fullphat » Tue Nov 27, 2012 10:47 pm

Ive tried everything listed here but still can't find a solution for doing this with 1.5.4.1, it just won't work.

Ive tried all the VQmods, changed the seo_url.php file, made the database changes but nothing works?

User avatar
New member

Posts

Joined
Wed Oct 19, 2011 4:47 pm

Post by fullphat » Tue Nov 27, 2012 10:50 pm

Can I also just check, is this supposed to update the footer links and breadcrumb links automatically?

User avatar
New member

Posts

Joined
Wed Oct 19, 2011 4:47 pm

Post by tulip_craft » Sat Dec 08, 2012 5:18 am

amdev wrote: there r 2 things to do.
1. edit catalog/controller/common/seo_url.php this is my code(Backup your file before edit)
2.goto url_alias table (PHPmyadmin) and inset

query field = common/home(add another route ie. checkout/cart,checkout/checkout,information/sitemap,...)
keyword = home(or u need).
Thanks a lot amdev.!!
on step 2, is the first thing that i have to do is import my database store to phpMyadmin.??
if yes, i am failed to import it.. it said:
Error

SQL query:

TRUNCATE TABLE `tc_address` ;

MySQL said: Documentation
#1046 - No database selected
there is some index.php?route in my website url, can anyone help me.??

All about Crochet and Knitting, a Handicraft Store -> http://tulip-craft.com


User avatar
New member

Posts

Joined
Tue Dec 04, 2012 5:54 pm

Post by goodasian73 » Mon Dec 24, 2012 8:00 pm

amdev wrote:Hi, u need to modify seo_url.php controller.
I'm tried and work fine for my site.
http://www.luxurywatchesbrands.co.cc/home

and see another link like account , checkout , login ...

oc 15x easier than 14x because it just edit 1 file.
In 14x need to edit 2 file and need to load tool/seo_url before to rewite.
But in 15x no need.

there r 2 things to do.
1. edit catalog/controller/common/seo_url.php this is my code(Backup your file before edit)

Code: Select all

<?php
class ControllerCommonSeoUrl extends Controller {
	public function index() {
		// Add rewrite to url class
		if ($this->config->get('config_seo_url')) {
			$this->url->addRewrite($this);
		}
		
		// Decode URL
		if (isset($this->request->get['_route_'])) {
			$parts = explode('/', $this->request->get['_route_']);

			$route = "";
			
			foreach ($parts as $part) {
				$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE keyword = '" . $this->db->escape($part) . "'");
				
				if ($query->num_rows) {
					$url = explode('=', $query->row['query']);

					if(count($url) > 1){
					
					if ($url[0] == 'product_id') {
						$this->request->get['product_id'] = $url[1];
					}
					
					if ($url[0] == 'category_id') {
						if (!isset($this->request->get['path'])) {
							$this->request->get['path'] = $url[1];
						} else {
							$this->request->get['path'] .= '_' . $url[1];
						}
					}	
					
					if ($url[0] == 'manufacturer_id') {
						$this->request->get['manufacturer_id'] = $url[1];
					}
					
					if ($url[0] == 'information_id') {
						$this->request->get['information_id'] = $url[1];
					}
					}else{
						$route = $url[0];
					}
				} else {
					$this->request->get['route'] = 'error/not_found';	
				}
			}
			
			if (isset($this->request->get['product_id'])) {
				$this->request->get['route'] = 'product/product';
			} elseif (isset($this->request->get['path'])) {
				$this->request->get['route'] = 'product/category';
			} elseif (isset($this->request->get['manufacturer_id'])) {
				$this->request->get['route'] = 'product/manufacturer/product';
			} elseif (isset($this->request->get['information_id'])) {
				$this->request->get['route'] = 'information/information';
			}else {
				$this->request->get['route'] = $route;
			}

			
			if (isset($this->request->get['route'])) {
				return $this->forward($this->request->get['route']);
			}
		}
	}
	
	public function rewrite($link) {
		if ($this->config->get('config_seo_url')) {
			$url_data = parse_url(str_replace('&', '&', $link));
		
			$url = ''; 
			
			$data = array();
		
			parse_str($url_data['query'], $data);
			
			foreach ($data as $key => $value) {
				if (($key == 'product_id') || ($key == 'manufacturer_id') || ($key == 'information_id')) {
					$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'");
				
					if ($query->num_rows) {
						$url .= '/' . $query->row['keyword'];
						
						unset($data[$key]);
					}					
				} elseif ($key == 'path') {
					$categories = explode('_', $value);
					
					foreach ($categories as $category) {
						$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = 'category_id=" . (int)$category . "'");
				
						if ($query->num_rows) {
							$url .= '/' . $query->row['keyword'];
						}							
					}
					
					unset($data[$key]);
				}elseif ($key == 'route') {
					$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($value) . "'");
				
					if ($query->num_rows) {
						$url .= '/' . $query->row['keyword'];
						
						unset($data[$key]);
					}					
				}
			}
		
			if ($url) {
				unset($data['route']);
			
				$query = '';
			
				if ($data) {
					foreach ($data as $key => $value) {
						$query .= '&' . $key . '=' . $value;
					}
					
					if ($query) {
						$query = '?' . trim($query, '&');
					}
				}

				return $url_data['scheme'] . '://' . $url_data['host'] . (isset($url_data['port']) ? ':' . $url_data['port'] : '') . str_replace('/index.php', '', $url_data['path']) . $url . $query;
			} else {
				return $link;
			}
		} else {
			return $link;
		}		
	}	
}
?>

2.goto url_alias table (PHPmyadmin) and inset

query field = common/home(add another route ie. checkout/cart,checkout/checkout,information/sitemap,...)
keyword = home(or u need).

See my attach file.


Sorry for my bad english.

Good luck sir. :) :) :)
Many thanks. You are a awesome. It works great but I am using news/blogs module. Have some issues, please help if you can. Thanks.

Newbie

Posts

Joined
Mon Dec 24, 2012 7:52 pm

Post by hawkinsjon » Fri Feb 22, 2013 4:52 am

Guys i need help. I made one small modification to catalog/controller/common/seo_url.php to try this and then saved. Then i accessed the site and I get the not found for all admin pages (cart, about us, etc). So i reverted my change in seo_url.php and saved again and now the site is not changing back.

I cleared the cache, but i suspect this is somethign different. can you help me find out what to do to fix the problem?

Thanks,
Jon

site is aromaessentials.com ( I currently have SEO urls off so the site can still function)

Newbie

Posts

Joined
Fri Feb 22, 2013 4:49 am

Post by Dana » Fri Feb 22, 2013 5:02 am

Hi Jon, do you have vqmod installed by any chance? If so, try cleaning its cache too. :)

User avatar
New member

Posts

Joined
Tue Jun 29, 2010 8:13 pm

Post by hawkinsjon » Fri Feb 22, 2013 5:05 am

I do, can i delete all contents of public/vqmod/vqcache ?

Newbie

Posts

Joined
Fri Feb 22, 2013 4:49 am

Post by hawkinsjon » Fri Feb 22, 2013 5:09 am

I just did it and that worked! Thank you for helping out this noob so quickly, thank you!!!

Newbie

Posts

Joined
Fri Feb 22, 2013 4:49 am

Post by Dana » Fri Feb 22, 2013 5:09 am

I'm glad it worked for you! :)

User avatar
New member

Posts

Joined
Tue Jun 29, 2010 8:13 pm

Post by SabinVI » Mon Mar 11, 2013 1:56 am

I just wanted to post an update for what worked for me so that it will hopefully also help others. I am on 1.5.5.1 with quite a few custom modules and VQmods. I did try updating my database with the routes/keywords posted earlier and using the posted version of seo_url.php. While it did mostly work, I had a couple problems with some URL's still showing the un-friendly versions and I also had a compatibility issue with my one page checkout extension. This method broke when I tried to go to the shopping cart..

I downloaded almost every free version extension of SEO URLs just to test them, and there was one that worked flawlessly. I also saw it posted earlier:

http://www.opencart.com/index.php?route ... on_id=3802

The latest version lists support up to 1.5.4, but I installed it on 1.5.5.1, and like I said, it is flawless (for me). Every single URL is changing to SEO friendly versions, even on my custom modules and checkout. Also, the extension is awesome because it is a single VQMod file. Other extensions I tried were multiple files. Note that with this extension, you still have to enter your own SEO keywords for products, categories, and the information pages in admin that give you the option to do so. This extension only fixes all the URLs that the Admin doesn't have a chance to change.

I'm sure that there are paid extensions that work to, but for me, this free extension was a huge timesaver!

Newbie

Posts

Joined
Mon Mar 11, 2013 1:44 am

Post by yowchuan » Thu Apr 04, 2013 4:42 am

Hi amdev, i implemented your latest code as per http://forum.opencart.com/viewtopic.php ... 40#p211510

I got it working fine for almost all pages, but I've lost the seo-url capability for my Manufacturers. Before the changes to the seo_url.php, all the manufacturer's can be accessed directly via their respective seo-urls, but after following your modifications, it has stopped working and is now only accessible via the non-seo-url link.

Do you have any idea what could have caused that?

Anyway, thank you for this great mod, but I would really love to get my Manufacturers' seo-url working again.

I'm using OC 1.5.5.1

[RESOLVED]
I followed the instruction here: http://forum.opencart.com/viewtopic.php ... 80#p350327

Now my Manufacturers pages are working!

New member

Posts

Joined
Wed Feb 06, 2013 2:39 am

Post by syamsul111 » Mon Apr 22, 2013 12:55 am

amdev wrote:There r many people PM to me about solution for oc149x.
I'm tested with 1495 it work.
amdev wrote:Ok follow these steps.(Backup your systems before)
1.edit this file.

Code: Select all

\catalog\controller\common\seo_url.php
copy my code and paste to your file.

Code: Select all

<?php
class ControllerCommonSeoUrl extends Controller {
   public function index() {
      
      // Decode URL
      if (isset($this->request->get['_route_'])) {
         $parts = explode('/', $this->request->get['_route_']);

         $route = "";
         
         foreach ($parts as $part) {
            $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE keyword = '" . $this->db->escape($part) . "'");
            
            if ($query->num_rows) {
               $url = explode('=', $query->row['query']);

               if(count($url) > 1){
               
               if ($url[0] == 'product_id') {
                  $this->request->get['product_id'] = $url[1];
               }
               
               if ($url[0] == 'category_id') {
                  if (!isset($this->request->get['path'])) {
                     $this->request->get['path'] = $url[1];
                  } else {
                     $this->request->get['path'] .= '_' . $url[1];
                  }
               }   
               
               if ($url[0] == 'manufacturer_id') {
                  $this->request->get['manufacturer_id'] = $url[1];
               }
               
               if ($url[0] == 'information_id') {
                  $this->request->get['information_id'] = $url[1];
               }
               }else{
                  $route = $url[0];
               }
            } else {
               $this->request->get['route'] = 'error/not_found';   
            }
         }
         
         if (isset($this->request->get['product_id'])) {
            $this->request->get['route'] = 'product/product';
         } elseif (isset($this->request->get['path'])) {
            $this->request->get['route'] = 'product/category';
         } elseif (isset($this->request->get['manufacturer_id'])) {
            $this->request->get['route'] = 'product/manufacturer/product';
         } elseif (isset($this->request->get['information_id'])) {
            $this->request->get['route'] = 'information/information';
         }else {
            $this->request->get['route'] = $route;
         }

         
         if (isset($this->request->get['route'])) {
            return $this->forward($this->request->get['route']);
         }
      }
   }
   
  }
?>
2.edit this file.

Code: Select all

\catalog\model\tool\seo_url.php

Code: Select all

<?php
class ModelToolSeoUrl extends Model {
 public function rewrite($link) {
      if ($this->config->get('config_seo_url')) {
         $url_data = parse_url(str_replace('&', '&', $link));
      
         $url = '';
         
         $data = array();
      
         parse_str($url_data['query'], $data);
         
         foreach ($data as $key => $value) {
            if (($key == 'product_id') || ($key == 'manufacturer_id') || ($key == 'information_id')) {
               $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'");
            
               if ($query->num_rows) {
                  $url .= '/' . $query->row['keyword'];
                  
                  unset($data[$key]);
               }               
            } elseif ($key == 'path') {
               $categories = explode('_', $value);
               
               foreach ($categories as $category) {
                  $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = 'category_id=" . (int)$category . "'");
            
                  if ($query->num_rows) {
                     $url .= '/' . $query->row['keyword'];
                  }                     
               }
               
               unset($data[$key]);
            }elseif ($key == 'route') {
               $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($value) . "'");
            
               if ($query->num_rows) {
                  $url .= '/' . $query->row['keyword'];
                  
                  unset($data[$key]);
               }               
            }
         }
      
         if ($url) {
            unset($data['route']);
         
            $query = '';
         
            if ($data) {
               foreach ($data as $key => $value) {
                  $query .= '&' . $key . '=' . $value;
               }
               
               if ($query) {
                  $query = '?' . trim($query, '&');
               }
            }

            return $url_data['scheme'] . '://' . $url_data['host'] . (isset($url_data['port']) ? ':' . $url_data['port'] : '') . str_replace('/index.php', '', $url_data['path']) . $url . $query;
         } else {
            return $link;
         }
      } else {
         return $link;
      }      
   }   
   
  }
?>
3.goto your database Run this mysql command.

Code: Select all

    INSERT INTO url_alias (query, keyword) VALUES ('common/home', '');
    INSERT INTO url_alias (query, keyword) VALUES ('account/account', 'my-account');
    INSERT INTO url_alias (query, keyword) VALUES ('checkout/cart', 'shopping-cart');
    INSERT INTO url_alias (query, keyword) VALUES ('checkout/checkout', 'checkout');
    INSERT INTO url_alias (query, keyword) VALUES ('account/login', 'login');
    INSERT INTO url_alias (query, keyword) VALUES ('account/logout', 'logout');
    INSERT INTO url_alias (query, keyword) VALUES ('account/order', 'order-history');
    INSERT INTO url_alias (query, keyword) VALUES ('account/newsletter', 'newsletter');
    INSERT INTO url_alias (query, keyword) VALUES ('product/special', 'specials');
    INSERT INTO url_alias (query, keyword) VALUES ('product/manufacturer', 'brands');
    INSERT INTO url_alias (query, keyword) VALUES ('information/contact', 'contact-us');
    INSERT INTO url_alias (query, keyword) VALUES ('information/sitemap', 'sitemap');
    INSERT INTO url_alias (query, keyword) VALUES ('account/forgotten', 'forgot-password');
    INSERT INTO url_alias (query, keyword) VALUES ('account/download', 'downloads');
    INSERT INTO url_alias (query, keyword) VALUES ('account/return', 'returns');
    INSERT INTO url_alias (query, keyword) VALUES ('account/transaction', 'transactions');
    INSERT INTO url_alias (query, keyword) VALUES ('account/register', 'create-account');
    INSERT INTO url_alias (query, keyword) VALUES ('product/search', 'search');
    INSERT INTO url_alias (query, keyword) VALUES ('account/edit', 'edit-account');
    INSERT INTO url_alias (query, keyword) VALUES ('account/password', 'change-password');
    INSERT INTO url_alias (query, keyword) VALUES ('account/address', 'address-book');
'account/account' this is a route.
'my-account' this is your keyword can edit it if u want.

4.goto

Code: Select all

\catalog\controller\common\header.php
You will see this code

Code: Select all

<?php   
class ControllerCommonHeader extends Controller {
	protected function index() {

//Remember *** load this model before use seo

			$this->load->model('tool/seo_url');//I'm add this line in index function.


    	if (($this->request->server['REQUEST_METHOD'] == 'POST') && isset($this->request->post['language_code'])) {
			$this->session->data['language'] = $this->request->post['language_code'];
		
			if (isset($this->request->post['redirect']) && strpos($this->request->post['redirect'], HTTP_SERVER) !== false) {
				$this->redirect($this->request->post['redirect']);
			} else {
//Call $this->model_tool_seo_url->rewrite($link) to rewrite url like this.
				$this->redirect($this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=common/home'));
//Old redirec is $this->redirect(HTTP_SERVER . 'index.php?route=common/home');
			}
    	}		
		
		if (($this->request->server['REQUEST_METHOD'] == 'POST') && isset($this->request->post['currency_code'])) {
      		$this->currency->set($this->request->post['currency_code']);
			
			unset($this->session->data['shipping_methods']);
			unset($this->session->data['shipping_method']);
				
			if (isset($this->request->post['redirect']) && strpos($this->request->post['redirect'], HTTP_SERVER) !== false) {
				$this->redirect($this->request->post['redirect']);
			} else {
//This was solved as well.
				$this->redirect($this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=common/home'));
			}
   		}

Then look to bottom code around line 85.

Code: Select all

		$this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
		$this->data['special'] = HTTP_SERVER . 'index.php?route=product/special';
		$this->data['contact'] = HTTP_SERVER . 'index.php?route=information/contact';
    	$this->data['sitemap'] = HTTP_SERVER . 'index.php?route=information/sitemap';
    	$this->data['account'] = HTTPS_SERVER . 'index.php?route=account/account';
		$this->data['logged'] = $this->customer->isLogged();
		$this->data['login'] = HTTPS_SERVER . 'index.php?route=account/login';
		$this->data['logout'] = HTTP_SERVER . 'index.php?route=account/logout';
    	$this->data['cart'] = HTTP_SERVER . 'index.php?route=checkout/cart';
		$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';

replace to.

Code: Select all

		$this->data['home'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=common/home');
		$this->data['special'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/special');
		$this->data['contact'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=information/contact');
    	$this->data['sitemap'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=information/sitemap');
    	$this->data['account'] = $this->model_tool_seo_url->rewrite(HTTPS_SERVER . 'index.php?route=account/account');
		$this->data['logged'] = $this->customer->isLogged();
		$this->data['login'] = $this->model_tool_seo_url->rewrite(HTTPS_SERVER . 'index.php?route=account/login');
		$this->data['logout'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=account/logout');
    	$this->data['cart'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=checkout/cart');
		$this->data['checkout'] = $this->model_tool_seo_url->rewrite(HTTPS_SERVER . 'index.php?route=checkout/shipping');
		
Finished.

Sory for my bad english. :laugh: :laugh: :laugh:

Thanks.

Amdev.
***Note: because 148-149 don't use url class. So u need to load

Code: Select all

$this->load->model('tool/seo_url');
before to rewrite any link.

sorry I was successly to undurstad number 1 and 2 . but I don't understand number 3 and and and 5.

please explain this step with detail . tanks

Newbie

Posts

Joined
Fri Jul 06, 2012 4:53 am

Post by ozstylo » Mon May 27, 2013 1:01 am

uksitebuilder wrote:Nice one amdev

Here is my SQL for anyone wishing to import via phpMyAdmin

Code: Select all

INSERT INTO url_alias (query, keyword) VALUES ('common/home', '');
INSERT INTO url_alias (query, keyword) VALUES ('account/wishlist', 'wishlist');
INSERT INTO url_alias (query, keyword) VALUES ('account/account', 'my-account');
INSERT INTO url_alias (query, keyword) VALUES ('checkout/cart', 'shopping-cart');
INSERT INTO url_alias (query, keyword) VALUES ('checkout/checkout', 'checkout');
INSERT INTO url_alias (query, keyword) VALUES ('account/login', 'login');
INSERT INTO url_alias (query, keyword) VALUES ('account/logout', 'logout');
INSERT INTO url_alias (query, keyword) VALUES ('account/order', 'order-history');
INSERT INTO url_alias (query, keyword) VALUES ('account/newsletter', 'newsletter');
INSERT INTO url_alias (query, keyword) VALUES ('product/special', 'specials');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/account', 'affiliates');
INSERT INTO url_alias (query, keyword) VALUES ('checkout/voucher', 'gift-vouchers');
INSERT INTO url_alias (query, keyword) VALUES ('product/manufacturer', 'brands');
INSERT INTO url_alias (query, keyword) VALUES ('information/contact', 'contact-us');
INSERT INTO url_alias (query, keyword) VALUES ('account/return/insert', 'request-return');
INSERT INTO url_alias (query, keyword) VALUES ('information/sitemap', 'sitemap');
INSERT INTO url_alias (query, keyword) VALUES ('account/forgotten', 'forgot-password');
INSERT INTO url_alias (query, keyword) VALUES ('account/download', 'downloads');
INSERT INTO url_alias (query, keyword) VALUES ('account/return', 'returns');
INSERT INTO url_alias (query, keyword) VALUES ('account/transaction', 'transactions');
INSERT INTO url_alias (query, keyword) VALUES ('account/register', 'create-account');
INSERT INTO url_alias (query, keyword) VALUES ('product/compare', 'compare-products');
INSERT INTO url_alias (query, keyword) VALUES ('product/search', 'search');
INSERT INTO url_alias (query, keyword) VALUES ('account/edit', 'edit-account');
INSERT INTO url_alias (query, keyword) VALUES ('account/password', 'change-password');
INSERT INTO url_alias (query, keyword) VALUES ('account/address', 'address-book');
INSERT INTO url_alias (query, keyword) VALUES ('account/reward', 'reward-points');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/edit', 'edit-affiliate-account');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/password', 'change-affiliate-password');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/payment', 'affiliate-payment-options');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/tracking', 'affiliate-tracking-code');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/transaction', 'affiliate-transactions');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/logout', 'affiliate-logout');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/forgotten', 'affiliate-forgot-password');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/register', 'create-affiliate-account');
INSERT INTO url_alias (query, keyword) VALUES ('affiliate/login', 'affiliate-login');
Please let us know if any pages have been missed

Hi there i am new to open cart i am also having the same seo friendly urls problem in category and sub category and products also. after inserting the above query . it has set the links to seo friendly but it is showing the 404 error please help me as soon as possible.. any one !

Newbie

Posts

Joined
Tue Apr 16, 2013 2:54 am

Post by ozstylo » Mon May 27, 2013 8:44 pm

i think no one want to help me out :(

Newbie

Posts

Joined
Tue Apr 16, 2013 2:54 am

Post by ozstylo » Sat Jun 01, 2013 1:59 am

hey guys . Admin any one ... is here for help or not.

Newbie

Posts

Joined
Tue Apr 16, 2013 2:54 am

Post by jdiai » Fri Jan 03, 2014 6:34 pm

SabinVI wrote:I just wanted to post an update for what worked for me so that it will hopefully also help others. I am on 1.5.5.1 with quite a few custom modules and VQmods. I did try updating my database with the routes/keywords posted earlier and using the posted version of seo_url.php. While it did mostly work, I had a couple problems with some URL's still showing the un-friendly versions and I also had a compatibility issue with my one page checkout extension. This method broke when I tried to go to the shopping cart..

I downloaded almost every free version extension of SEO URLs just to test them, and there was one that worked flawlessly. I also saw it posted earlier:

http://www.opencart.com/index.php?route ... on_id=3802

The latest version lists support up to 1.5.4, but I installed it on 1.5.5.1, and like I said, it is flawless (for me). Every single URL is changing to SEO friendly versions, even on my custom modules and checkout. Also, the extension is awesome because it is a single VQMod file. Other extensions I tried were multiple files. Note that with this extension, you still have to enter your own SEO keywords for products, categories, and the information pages in admin that give you the option to do so. This extension only fixes all the URLs that the Admin doesn't have a chance to change.

I'm sure that there are paid extensions that work to, but for me, this free extension was a huge timesaver!
thanks for sharing this post. i have been searching for a solution for weeks nothing in the forums worked for me. i am on OC 1.5.6 so when i saw ur post i decided to try it. i used the 1.5.4 version on my OC 1.5.6 and it worked!!!!! :banana: i am so happy!!! :banana: words cannot express. thanks to the developer for this extension!! :dance:

Newbie

Posts

Joined
Tue Nov 12, 2013 11:30 pm

Post by DragonJ » Wed Jan 22, 2014 11:38 am

Ditto. Thank you for sharing, SabinVI.

I was using this extension -- http://www.opencart.com/index.php?route ... on_id=2430 -- but it's not supported beyond 1.5.4 and I recently I updated to 1.5.5.1.

BEOP All Clean URLs is exactly the solution I needed and so far is working without incident on 1.5.5.1. :D

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm

Post by arjun02patel » Wed May 14, 2014 3:29 pm

hi..
my product URL is like - http://domainname/abc
now what i have to do if i want to make my product URL like - http://domainname/products/abc
same way i want modify my url like - http://domainname/user/login.

is there any way i can do it with .htaccess file
or
i have to change the code.

thanks :)

Newbie

Posts

Joined
Wed May 14, 2014 3:23 pm

Post by ideep13 » Sat Jun 14, 2014 4:41 am

MrTech wrote:
Rebecka wrote:...But why does it say /information/contact and only /about_us? Why is information before contact?
I've been searching the forums for an answer for a while now and this is the closest I've come to someone else asking the same question, yipppee for me! I'm using oc 1.5.1.3 with seo turned on as well as the deadcow seo extension and everything works marvelously. With seo turned on all the information pages work just fine with basic URL like this:

Code: Select all

www.mystore.com/about_us
www.mystore.com/shipping
www.mystore.com/payments
Except this weird little quirk that Rebecka mentions above where the contact us page can only be linked this way:

Code: Select all

www.mystore.com/information/contact
Looked at the files inside the deadcow seo extension and nothing jumps out at me as being the cause of this abnormality. Having said that, I'm no programmer so I just don't know for sure.

I know, I know, it's a minor irritation but none the less would someone be kind enough to point the way? Is there a file that would allow me to figure out why oh why /information/ must be used in the seo friendly url for the contact page and no other pages? I mean it must have been overlooked as it's the only page requiring this longer url.

Thanks for your time...

well I'm here in 2014 using deadcow extension as well I have seo turned on.. everything else works fine except for this non frinedly seo urls

Code: Select all

http://www.xx.com/index.php?rout…ormation/information&information_id=13
http://www.xx.com/index.php?route=account/login
http://www.xx.com/index.php?route=account/register
http://www.xx.com/index.php?route=account/wishlist
http://www.xx.com/index.php?route=account/account
http://www.xx.com/index.php?route=checkout/cart
http://www.xx.com/index.php?route=checkout/checkout
http://www.xx.com/index.php?rout…ormation/information&information_id=14
http://www.xx.com/index.php?rout…formation/information&information_id=9
http://www.xx.com/index.php?route=information/contact
http://www.xx.com/index.php?route=product/manufacturer
http://www.xx.com/index.php?route=checkout/voucher
http://www.xx.com/index.php?route=product/special
http://www.xx.com/index.php?route=account/login
http://www.xx.com/index.php?route=account/order
http://www.xx.com/index.php?route=account/wishlist
http://www.xx.com/index.php?route=account/newsletter
I am using 1.5.1.3 OC version..
I only managed to change /home to my domain name..

what is the worst thing to happen if I change seo_url.php and udate tables in php admin ?
I really don't want to :choke: myself after everything crashes..

tnx for help ;)

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by pawan.kaushish » Fri Aug 01, 2014 8:14 pm

hi,

its not working with 1.5.6.

please advice.

thanks
Pawan


Posts

Joined
Sun Jul 13, 2014 8:25 pm
Who is online

Users browsing this forum: No registered users and 58 guests