Skip to content

Instantly share code, notes, and snippets.

@veganista
Created September 26, 2013 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veganista/6712392 to your computer and use it in GitHub Desktop.
Save veganista/6712392 to your computer and use it in GitHub Desktop.
Getting the URL of category in OpenCart.
<?php echo $this->url->link('product/category', 'path=96'); ?>
// http://example.com/category-three/
<?php echo $this->url->link('product/category', 'path=63_78'); ?>
// http://example.com/category-one/category-two/
<?php echo $this->url->link('product/category', 'path=63_78_96'); ?>
// http://example.com/category-one/category-two/category-three/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment