I am using OpenCart 2 and it is very good but I want to add a couple of things to the template and not sure if possible. I have looked for an extension for either of these things and have not been able to find one so if someone can tell me how I can do these things myself or point me towards an extension that will do this for me that will be amazing.
1. On the category pages I want to add a link to the parent category. I know there are breadcrumbs but I need a back link to the parent category of the current category. I would hopefully be able to add this in with a code like <?php echo $parent; ?> into the template and that would display the parent URL
2. On the product page I also need to insert the current products URL (this is for sharing code) can this be done in the template?
Any help and advice will be much appreciated.