Post by takacspeter » Mon Aug 26, 2013 1:04 am

Hello!

the problem is with the manufacturers list of our site,

I don!t know how can I solve this problem, which is

ALL The SEO pages are exist,
mysite.com/manufacturer

But the links are stoped to translate to SEO friendly, which now looks like this at the address bar after click
http://www.mysite.com/index.php?route=p ... urer_id=17

As I see the seo-url.php perfect url rewriting all of this url's by the aliases, which is existed in our database anyway.

I am not a site builder expert, and don’t know the logical structure how links build or rewrited and how is it happening.

For example the first brand is 4ms Pedals the alias is 4ms-pedals, it should translated like this
http://www.mysite.com/4ms-pedals this page exist anyway when its written to the addressbar manually, but the manufacturer links are not translated

Newbie

Posts

Joined
Mon Aug 26, 2013 12:31 am

Post by takacspeter » Tue Aug 27, 2013 4:38 am

solved

Newbie

Posts

Joined
Mon Aug 26, 2013 12:31 am

Post by dtblingerie » Sat Sep 21, 2013 10:59 am

How did you solve your manufacturer SEO problem? I am having the same problem.

DTB Lingerie ~ Stop in for a look...we dare you.


New member

Posts

Joined
Wed Sep 11, 2013 12:48 am

Post by xdomofab » Sat Sep 21, 2013 11:53 am

check this Optimize Site URL Architecture Technical SEO [VQMOD] extension:
http://www.opencart.com/index.php?route ... =target409

Opencart Development & Consult:
All in One SEO Package: making your Opencart SEO friendly
Product Rich Snippets: Breadcrumb, Product & Product Reviews
Custom Titile H1 Tag: custom category title, h1, bottom description and product title
Optimize Site URL Architecture: unique url w/breadcrumb, seo friendly url architecture


New member

Posts

Joined
Wed Jun 05, 2013 11:03 am

Post by pawan.kaushish » Thu Jul 17, 2014 1:42 pm

hey,

i am having problem with manufacture SEO url problem,
my category, product SEO url's working fine.
please advice how its work.

thanks


Posts

Joined
Sun Jul 13, 2014 8:25 pm

Post by Anthony1632 » Wed Jul 23, 2014 3:15 pm

Can this solution be published if known by someone.

Sharing stuff can help everybody and make this forum more usefull for people who are looking for results.

Active Member

Posts

Joined
Sun Oct 14, 2012 10:02 am

Post by Anthony1632 » Wed Jul 23, 2014 4:11 pm

Ok, figured it out and here is a solution:

Set in Backend - ADMIN - Catalog - Manufacturer your seo keyword for the manufacturer

Open catalog/controller/common/seo_url.php

Add the word INFO as in the attached jpegs

This would show the manufacturer as a nice seo url. I am trying to find out more how to replace the ? in front of page=5

http://yourwebsite.com/seo-keyword?page=8

I hope that if someone has a problem and they can solve it by themselves they also post the solution so others can use this.

Cheers to all of you

Attachments

1b.JPG

1b.JPG (46.24 KiB) Viewed 4190 times

1a.JPG

1a.JPG (65.69 KiB) Viewed 4190 times


Active Member

Posts

Joined
Sun Oct 14, 2012 10:02 am

Post by pawan.kaushish » Tue Jul 29, 2014 1:14 pm

hey, its already there.

<?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_']);

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 ($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 {
$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/info';
} elseif (isset($this->request->get['information_id'])) {
$this->request->get['route'] = 'information/information';
}

if (isset($this->request->get['route'])) {
return $this->forward($this->request->get['route']);
}
}
}

public function rewrite($link) {
$url_info = parse_url(str_replace('&', '&', $link));

$url = '';

$data = array();

parse_str($url_info['query'], $data);

foreach ($data as $key => $value) {
if (isset($data['route'])) {
if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $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]);
}
}
}

if ($url) {
unset($data['route']);

$query = '';

if ($data) {
foreach ($data as $key => $value) {
$query .= '&' . $key . '=' . $value;
}

if ($query) {
$query = '?' . trim($query, '&');
}
}

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


Posts

Joined
Sun Jul 13, 2014 8:25 pm

Post by Anthony1632 » Tue Jul 29, 2014 1:34 pm

OK, so what you want to say? With me it wasn't there so i changed that so it worked.
Yours work, right? Or you want to teach me something new?

Active Member

Posts

Joined
Sun Oct 14, 2012 10:02 am

Post by pawan.kaushish » Wed Jul 30, 2014 3:12 am

hi Anthony1632,

i try to fix the problem as per your attached .jpeg file. but problem is same hare.

please advice alternate.

thanks
Pawan


Posts

Joined
Sun Jul 13, 2014 8:25 pm

Post by Anthony1632 » Wed Jul 30, 2014 9:20 am

Check the following:

-Do you have a unique SEO word for your manufacturer?
-Do you have a extension activated to disable links as manufacturer?
-Did you cleared your system cache? (system/cache)
-Did you cleard your vqmod cache? (vqmod/vqcache)

You can send also a link here of your website.

Active Member

Posts

Joined
Sun Oct 14, 2012 10:02 am
Who is online

Users browsing this forum: No registered users and 5 guests