Hey, OpenCarters, hope you enjoy this video. We are planning to do more of them soon. If you have ideas for the next video, please share in the comment section below and don't forget to like and subscribe. We need all the support we can get. thank you!
Good pace: you go so fast I don't fall asleep like I do in similar videos and I can always always replay each step later. Really helped me get an understanding of the steps to use the admin page to create a new layout. bye bye ftp.
Great tutorial !! Could you also please tell us how to add a link of the offer page to the navigation menu/bar so that it is visible on all pages. Thanks in advance.
Very nice! Now I wonder how do I make this "offer" page show in category list in the top of main page, and how can I access this page from admin panel so I can edit it easy.
Hi Dmitriy, thanks for the videos great staff, Subscribed! I have been struggling with layouts for a few days. Your video helped me create a new information page and a custom layout for it. What I am trying to do is to have the header of that custom page hidden as on the home page so I can overlap a slideshow over the top menu. One way to achieve this is to give the custom page the "common-home" class on the body, but I am not sure where I can set this class as it is currently coming as "information-information". I am on OC3 and use a custom theme. If you can tell me where I can set the class to the body to be the same as for the home page on the new custom page I will be super grateful.
Thanks! Glad you enjoyed it. So about the class "information-information". it is actually programmed like this by default in /catalog/view/theme/default/template/information/information.twig. If you are creating a custom page based on the videos I created, you probably created a Controller for that custom page. In that controller find the $this->response->output() and see where it is pointing. I am sure you are taking the template of 'information/information' but you can replace that with something of your own like 'information/custom' and in the newly created file /catalog/view/theme/default/template/information/custom.twig simply change the class to what you wish. Hope this helps
Nothing to say.... i am giving you 5 star if it possible try to make some videos like register domain and subdomain (in google domain) create multi-store in opencart (using with the subdomain) create a new layout and apply to the new store Apply and Manage different layout for different store apply different theme for different layout i had some problem with "layout" i got some tips from this video and i solved my issue.
The theme is located in catalog/view/theme/default/template/… the default folder in the path is the theme folder. When you install another theme, a new folder is created next to the default folder. But, if you just want to do small modifications, you can edit the default. But this is a bad pattern and I only suggest this for learning how opencart works. If you plan on creating a working store, never edit the default folder and always create a new theme folder where you can do all your design. To activate the theme, visit the admin panel since it is not possible to activate it via the code. It’s a settings in the database. I hope this helps
Thats a super question, will need to make a separate video on that. You just need to add a record to your SEO Urls. go to Admin -> Design -> SEO Urls -> and add the new item. Specify the route and the keyword you want for your short URL. This feature is available in OpenCart 3. If OpenCart 2 you will need to use the SEO Module URL or SEO Module PRO.
@@uzairzolo5089 Glad you got it working! Thank you for your support. Yeah, we have to do more videos. but it is an extremely time-consuming process and with all the projects in our pipeline, we hardly find the time. But I promise we will resume. it is a lot of fun too.
Hi! Pagination is a bit tricky in OpenCart. there is a library file for it that actually returns a rendered HTML string that you simply need to pass to your view from you controller. to use this library, simply copy an example from catalog/controller/product/category.php . it is usually near the end of the index() method and it accepts several parameters like the limit on a page and total amount of items... remember that it actually returns a ready HTML so you can't really change the layout of the pagination. only design it via CSS which is fine for most cases. hope this helps.
Hi, It would be logical to put a success page in the common folder since it is part of the login process. The information folder is for pages that actually contain content for your website.
@@Dreamvention The new page would require user login success and then show 4 or 6 major categories as images to click on to go direct to the actual category . Thanks for the quick response.
@@mirvids5036 that sounds more like an extension that you could display in the position on this success page. this extension would show the 4-6 categories as you described and would only be visible if the user is logged in.
@@mirvids5036 account module is probably the simplest you can find. us it as a basic. just copy all the files and controllers, rename them accordingly and add the functionality you need. after that place the module in the position of your choice.
You can always add something via the VIEW. at catalog/view/theme/YOUR THEME (Default)/template/common/header.twig but I would advise using events or at least OCMOD to modify the core files. this way you avoid changing the core files and allow for future upgrades. but it is a bit more complex.
Hi Ivan. Glad you asked. I missed a line of code in the controller which is $data['heading_title'] = $this->language->get('heading_title');. this should have forced the heading_title to be used as I specified it in the language file. In old versions, this would not show anything on the frontend. But new versions have a new event. Even if it is not set directly, OpenCart automatically adds the keys of the loaded language file into the template. This is done with the admin/controller/event/language/index event method. So when I first visited the page without any modules connected to it, the heading_title was automatically set by the last loaded language file which was information/offer. When I have attached a module, the last loaded language file became the extension/module/catalog which also has the same key 'heading_title'. This has rewritten the title and now you see the 'catalog'. Tip of the day: Don't forget to specify directly all the language variables. :)
All the redirects are located in the controller file of the page you are leaving. for example, login will be in catalog/controller/account/login and there you will find $this->response->redirect($this->url->link('account/account', '', true)); so you can change that to something else
Wordpress is an amazing CMS with a great following support. In many cases, you can use Wordpress and be happy. Although for e-commerce it is not the best solution since you are required to build around the blog engine with a meta structured database, resulting in scaling issues and performance when you have 10s of 1000s of products. You can optimize that and work with it but it’s just a whole new level, which can be avoided with Opencart.
@@Dreamvention yup I know that wordpress is OK for small and medium shops only but it's better to use anything than oc 3.x. Oc unfortunately is dying, it's so confusing and that twig made things even worse. I use to like oc and I was hoping to become more user friendly. But instead of that... Although journal is struggling to keep it alive I think that the end is near.
Hey, OpenCarters, hope you enjoy this video. We are planning to do more of them soon. If you have ideas for the next video, please share in the comment section below and don't forget to like and subscribe. We need all the support we can get. thank you!
Good pace: you go so fast I don't fall asleep like I do in similar videos and I can always always replay each step later. Really helped me get an understanding of the steps to use the admin page to create a new layout. bye bye ftp.
Thanks! yeah, we still think we are too slow))) I personally can't keep my focus on videos longer than 5 minutes. I start to rewind :)
Your video is very useful, im working on opencart website.. thank you..
Great tutorial !! Could you also please tell us how to add a link of the offer page to the navigation menu/bar so that it is visible on all pages. Thanks in advance.
You save me man, thank you!
Very nice! Now I wonder how do I make this "offer" page show in category list in the top of main page, and how can I access this page from admin panel so I can edit it easy.
Hi Dmitriy, thanks for the videos great staff, Subscribed! I have been struggling with layouts for a few days. Your video helped me create a new information page and a custom layout for it. What I am trying to do is to have the header of that custom page hidden as on the home page so I can overlap a slideshow over the top menu. One way to achieve this is to give the custom page the "common-home" class on the body, but I am not sure where I can set this class as it is currently coming as "information-information". I am on OC3 and use a custom theme. If you can tell me where I can set the class to the body to be the same as for the home page on the new custom page I will be super grateful.
Thanks! Glad you enjoyed it.
So about the class "information-information". it is actually programmed like this by default in /catalog/view/theme/default/template/information/information.twig. If you are creating a custom page based on the videos I created, you probably created a Controller for that custom page. In that controller find the $this->response->output() and see where it is pointing. I am sure you are taking the template of 'information/information' but you can replace that with something of your own like 'information/custom' and in the newly created file /catalog/view/theme/default/template/information/custom.twig simply change the class to what you wish. Hope this helps
Nothing to say.... i am giving you 5 star
if it possible try to make some videos like
register domain and subdomain (in google domain)
create multi-store in opencart (using with the subdomain)
create a new layout and apply to the new store
Apply and Manage different layout for different store
apply different theme for different layout
i had some problem with "layout" i got some tips from this video and i solved my issue.
Thank you! We will definitely continue. Your support really motivates us. thanks!
wow thank u bro. i like it
Thank you!
The page where you writing new code like offer.php
Where to find this..please help.
Hi There. I cant see "Design" tab on Categories panel. Something wrong or a permission problem ?
Hi!! I'm new in open cart , how can I change theme directly from my host Cpanel file manager
The theme is located in catalog/view/theme/default/template/… the default folder in the path is the theme folder. When you install another theme, a new folder is created next to the default folder. But, if you just want to do small modifications, you can edit the default. But this is a bad pattern and I only suggest this for learning how opencart works. If you plan on creating a working store, never edit the default folder and always create a new theme folder where you can do all your design. To activate the theme, visit the admin panel since it is not possible to activate it via the code. It’s a settings in the database. I hope this helps
hey thanks how to short the url of this special page that you have created?
Thats a super question, will need to make a separate video on that. You just need to add a record to your SEO Urls. go to Admin -> Design -> SEO Urls -> and add the new item. Specify the route and the keyword you want for your short URL. This feature is available in OpenCart 3. If OpenCart 2 you will need to use the SEO Module URL or SEO Module PRO.
Thanks Alot .....
WHen will you make the video on this?
love your dedication at such fast responce
like from Pakistan
@@Dreamvention what is the route in this case? on query we have sample data as category=id_20 (example)
@@Dreamvention yes got it my issue is resolved I succedded thanks cheers
@@uzairzolo5089 Glad you got it working! Thank you for your support. Yeah, we have to do more videos. but it is an extremely time-consuming process and with all the projects in our pipeline, we hardly find the time. But I promise we will resume. it is a lot of fun too.
hey, Can you please tell how i can add pagination in my website as i'm new to opencart and not able to do that
Hi! Pagination is a bit tricky in OpenCart. there is a library file for it that actually returns a rendered HTML string that you simply need to pass to your view from you controller. to use this library, simply copy an example from catalog/controller/product/category.php . it is usually near the end of the index() method and it accepts several parameters like the limit on a page and total amount of items... remember that it actually returns a ready HTML so you can't really change the layout of the pagination. only design it via CSS which is fine for most cases. hope this helps.
If i wanted a new page to show after a successful login, do put it in information or common ?
Thanks
Hi, It would be logical to put a success page in the common folder since it is part of the login process. The information folder is for pages that actually contain content for your website.
@@Dreamvention The new page would require user login success and then show 4 or 6 major categories as images to click on to go direct to the actual category .
Thanks for the quick response.
@@mirvids5036 that sounds more like an extension that you could display in the position on this success page. this extension would show the 4-6 categories as you described and would only be visible if the user is logged in.
@@Dreamvention Thanks for the info. Is there a generic version in the files I can use as a base extension ?
@@mirvids5036 account module is probably the simplest you can find. us it as a basic. just copy all the files and controllers, rename them accordingly and add the functionality you need. after that place the module in the position of your choice.
Where can I download the JOURNAL 3 program?
We are not the developers of Journal but I assume they sell their theme on ThemeForest
Thanks
can you please help me i am in trouble i want to add play store icon in header
You can always add something via the VIEW. at catalog/view/theme/YOUR THEME (Default)/template/common/header.twig but I would advise using events or at least OCMOD to modify the core files. this way you avoid changing the core files and allow for future upgrades. but it is a bit more complex.
Please explain what kind of magic have change the title of the newly created offers page from 'Offers' to 'Categories' on 5:52
Hi Ivan. Glad you asked. I missed a line of code in the controller which is $data['heading_title'] = $this->language->get('heading_title');. this should have forced the heading_title to be used as I specified it in the language file. In old versions, this would not show anything on the frontend. But new versions have a new event.
Even if it is not set directly, OpenCart automatically adds the keys of the loaded language file into the template. This is done with the admin/controller/event/language/index event method. So when I first visited the page without any modules connected to it, the heading_title was automatically set by the last loaded language file which was information/offer. When I have attached a module, the last loaded language file became the extension/module/catalog which also has the same key 'heading_title'. This has rewritten the title and now you see the 'catalog'.
Tip of the day: Don't forget to specify directly all the language variables. :)
Hey! Where can I access the code so I can edit it?
Hi, we keep all the code for youtube on github github.com/Dreamvention/youtube_files
Dear sir pls tell me ..how to redirect same page in open cart. ..after login
All the redirects are located in the controller file of the page you are leaving. for example, login will be in catalog/controller/account/login and there you will find $this->response->redirect($this->url->link('account/account', '', true)); so you can change that to something else
thank u
Sensacional
Thank you!
or just use wordperss
Wordpress is an amazing CMS with a great following support. In many cases, you can use Wordpress and be happy. Although for e-commerce it is not the best solution since you are required to build around the blog engine with a meta structured database, resulting in scaling issues and performance when you have 10s of 1000s of products. You can optimize that and work with it but it’s just a whole new level, which can be avoided with Opencart.
@@Dreamvention yup I know that wordpress is OK for small and medium shops only but it's better to use anything than oc 3.x. Oc unfortunately is dying, it's so confusing and that twig made things even worse. I use to like oc and I was hoping to become more user friendly. But instead of that... Although journal is struggling to keep it alive I think that the end is near.