adding custom page's link in homepage in opencart -


i new in opencart, , trying build new ecommerce site using opencart need add custom static page ( additional page ). follow link new page opencart , opencart php custom page without using "information" feature, , can create new custom page. problem is, how can page's link on home , others page people view page.

creating link depend on how page has been created, , it's located.

urls built based on location ie: route of controller.

let's new page has been built in:

catalog/controller/common/mypage.php

obviously you'll need follow code standards listed in posts referenced created correct class extends controller, language file, model class (if page needs interact database) , view file.

once correct via previous posts can create link anywhere on catalog (front) calling url class , passing in required information.

you'll need pass in route, arguments such id or customer, , whether url should secure.

$link = $this->url->link('common/mypage', 'mypage_id=' . $this->request->get['mypage_id'], 'ssl'); 

$arguments , 'ssl' being optional if they're needed.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -