Post by BrianW » Sun Oct 02, 2011 5:28 am

I hate to ask... but is there a solution for category canonical URLS for v 1.4.9? (and it's meaningful for me to rank for categories, not products, alas).

Give a man a fire and you make him warm for a day. Light a man on fire, and you make him warm for the rest of his life.
http://www.awesomedice.com


New member

Posts

Joined
Mon Mar 21, 2011 5:39 am
Location - Massachusetts

Post by JamesMio » Mon Dec 19, 2011 11:08 pm

Hi folks,

Sorry to dredge up an old thread but I couldn't find the clarification elsewhere, so hope you can help.

What's the deal with products in several categories? Someone mentioned that this has been taken care of but I'm curious to learn how/what's been done?

Cheers
James

Newbie

Posts

Joined
Tue Dec 06, 2011 1:09 am

Post by jty » Thu Feb 02, 2012 10:37 pm

JamesMio wrote:What's the deal with products in several categories? Someone mentioned that this has been taken care of but I'm curious to learn how/what's been done?
have a look at the source in your browser. it's dealt with by using rel canonical

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by sportyhabits » Mon Jul 09, 2012 11:53 am

This looks to be pretty good idea, is there any downside know for this on SEO? What I am thinking is that no change in site but for backlinking promote shorter urls. Anythoughts? - sportyhabits.com

Newbie

Posts

Joined
Sat Jun 09, 2012 3:21 pm

Post by sportyhabits » Mon Jul 09, 2012 11:54 am

This looks to be pretty good idea, is there any downside know for this on SEO? What I am thinking is that no change in site but for backlinking promote shorter urls. Anythoughts? - sportyhabits.com

Newbie

Posts

Joined
Sat Jun 09, 2012 3:21 pm

Post by guldan » Sat Apr 06, 2013 8:53 pm

Hello all, sorry to wake this old thread :)
I'm using Opencart 1.5.4.
How to echo the canonical link somewhere inside the product.tpl?
If I checked the header.tpl, I can see that canonical link is easily echoed using this code:

Code: Select all

<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
But when I tried to echo $link['href'] in the product.tpl, it echoes nothing.
I need that in the product.tpl for some twitter button matters.
How to get $link['href'] or equal information in product.tpl, without modifying some controller files?
Since the $link['href'] has been already declared in head section, can we just 'copy paste' the value to the body/product section?

Thanks...

Newbie

Posts

Joined
Sat Apr 06, 2013 5:06 pm
Who is online

Users browsing this forum: No registered users and 82 guests