-
-
Save graceman9/ffc05c8b3d62a4a87b6144e0a555c617 to your computer and use it in GitHub Desktop.
Getting the URL of category in OpenCart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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