Video gallery from a Youtube channel or playlist on OpenCart
OpenCart extension for automatically creating a video gallery based on YouTube channels or playlists. You can also add individual videos from YouTube. Multiple video output templates: grid, list, carousel. Works via Youtube API v3 protocol, so you need to get your own free API key from Google to work, it only takes a few minutes (instructions link below).
This is a unique module to create your own video gallery on OpenCart site, without having to add each video manually, everything will be automatically pulled from specified channels or any YouTube playlists. You can even create your own playlists from any YouTube videos and add them to the module. This is a Youtube-styled module with the ability to control absolutely all the elements you see in it, that is, you can disable any element of the module in its settings.
Our Youtube API extension does not load the page because the video iframe is created and loaded only when the Play button is clicked when the popup opens.
Allows you to display both a single video and a video gallery.
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
Add the module to the desired layout.
The first time you open a page with a module, API data is loaded into your database, so the page may take a long time to load. After saving the data in the site database, the module will be loaded quickly always and for everyone. In order for the data on your site to always be relevant in the future (new videos, statistics of views, likes, comments) - you need to copy the link to update the module settings and create a CRON task on your hosting. You can also manually open this link in your browser to sync your data immediately. For each created module, you will receive a separate link, but if all your modules take videos from the same channel or playlist, then you can set a task to launch only one of these links.
Bingo!
Changelog of Youtube Channel
v1.1.0 (04 July 2026) - Update (OpenCart 3 only)
A new "Shorts" format has been added, a carousel of short vertical videos called Youtube Shorts.
v1.0.6 (14 January 2026) - Dark mode compatibility in themes from 29aleksey and octemplates
v1.0.5 (02 July 2025) - Fixes
1. Changed the method of getting all videos of the channel
2. Fixed possible errors related to likeCount
v1.0.4 (19 January 2024) - Fixed the module working on PHP below 7.0 on OpenCart 2.3.x.x
v1.0.3 (29 December 2023) - Fixed a bug with deleting a video in a playlist module if the same video is present in a channel module.
v1.0.2 (23 December 2023) - Added a button to update the list of videos from Youtube.
v1.0.1 (07 November 2023) - Added automatic removal of a video from the gallery if it is hidden or removed from the channel/playlist. Fixed a bug in video structured data that occurred when there are quotes in the title or description.
v1.0 (23 January 2023) - Added compatibility with OpenCart 4.0.x.x
v1.0 (22 November 2022) - Added compatibility with OpenCart 2.3.x.x
FAQ: Youtube Channel
Do I need to have my own YouTube channel to use the module?
No. To use the module, it is not necessary to have your own YouTube channel. You can download videos from any public channels and playlists, as well as individual videos.
Will the Youtube Channel module load the page?
The Youtube Channel module works on the API and does not load the site pages. All data is stored in your database, and a specific video is downloaded only when you click the play button.
Therefore, the page loading speed will not change significantly.
Do I have to pay to use the Youtube API?
Youtube API is free to use, but each project has a default quota of 100,000 units per day. The cost in units of each request to the API depends on the type of request:
A read operation that receives a list of resources - channels, videos, playlists - usually costs 1 unit.
A write operation that creates, updates, or deletes a resource usually has a cost of 50 units
A search request costs 100 units.
Uploading a video costs 1600 units.
But the module does not work with the API all the time, because access to the API is only needed to synchronize the list of videos and get all the data. They are then stored in your database and retrieved from there. Data synchronization can be set to cron (periodic start). When downloading pages from video gallery or video viewing, quotas are not used.
Therefore, the use of quotas does not depend on the number of visitors to your site (traffic). The allocated quotas are usually completely sufficient.
Is it possible to add videos from different YouTube channels to one video gallery?
So. You can create your own Playlist on Youtube, which can consist of different videos from different channels and authors. You can then create a separate video gallery or video carousel from this playlist by inserting the playlist ID. The videos will be synced to your database the first time you open the page. In the future, the video and all data will be retrieved from your database. All data can be periodically updated, including the addition of new videos.
Is it possible to create multiple video galleries of different types?
The Youtube Channel extension for OpenCart allows you to create many sub-modules, i.e. galleries. It can be a video tile, a carousel, a simple list of videos. Also, each of the modules can have different settings. For example, on one page in a block with a video gallery, you can enable a header or a search field, and on another page display only video previews.
You must be logged in to view the files!
Ingmar Müller
23 July 2023
This extension is fantastic, it did everything i needed it to do. I had trouble installing it and the customer support was lightning fast to help me get it up and running. Thank you so much highly recommended.
Роман Роздобудько
08 February 2023
Працює бездоганно. Поставив і забув. По Cron підтягує нові відео з каналу
Vasiliy Lys
22 November 2022
Прекрасний модуль. Працює ідеально. Техпідтримка на дуже високому рівні. Дякую. Однозначно рекомендую.
Dmitriy
17 September 2022
Дуже якісний модуль та підтримка! Ціна в межах розумного. На швидкість завантаження сторінок негативного впливу немає (раніше зустрічались проблеми в аналогічних модулях). Однозначно рекомендую.
A developer cheat sheet on using ternary operators in Twig. It will be useful for new developers of OpenCart and other CMSs that use this templating engine.
The OpenCart team has officially presented release 3.0.5.0, which contains a significant package of fixes, code cleanup, and compatibility improvements with modern PHP versions.
On November 20, 2025, a new major release of PHP was published - version 8.5. PHP 8.5 introduces useful improvements, but requires a careful approach when integrating into existing OpenCart projects.