For OpenCart 2.3, 3.0, 4.0 and 4.1
Videos
360 VIEW
WHAT YOU SEE (Extensions > Modules > Supreme Product Video and 360 Gallery)
- Paste a YouTube link (watch, youtu.be, shorts or embed form), a Vimeo link, or the address of an .mp4 or .webm file (a full address or a path on your shop). The module keeps only the video id, and refuses anything else (other sites, javascript:, file:, data:, addresses with quotes or spaces).
- YouTube plays from youtube-nocookie.com and only after the visitor clicks the thumbnail; nothing from YouTube is loaded to play before that. (The thumbnail picture itself comes from YouTube.) Vimeo and MP4 also start on click.
- A title for each item is optional.
- A set of pictures (4 to 72) that you upload to your image folder with the normal image manager, named with a number: catalog/spin/shoe-1.jpg ... shoe-24.jpg. In the admin you write catalog/spin/shoe-{n}.jpg and the number of pictures. The first and the last picture are checked to exist; names with .., an address, or a type other than jpg, png or webp are refused.
- The visitor turns the product by dragging with the mouse or a finger, with the slider, or with the left and right arrow keys. The pictures load when the view is opened. The spin has a label for screen readers.
- Settings: on/off, the colour and the title of the block ("Videos and 360 view" by default).
- A product finder (by name or number), the media of the chosen product in a list, and a form to add a video link or a 360 view; delete with one click. Up to 10 items per product.
Safe by design
- Adding and deleting need Modify, the lists need Access, and adding and deleting answer POST only. Titles are cleaned to plain text, and everything handed to the page is encoded so that a title cannot close the script tag. The product search treats % and _ as plain text.
Notes
- The media table is kept when you uninstall and is there again after a reinstall.
- The block goes right after the thumbnails of the product page (or at the product block if the theme has no thumbnail list). If your theme is built very differently, check where it lands.
- Not tested in a browser: the opening of videos, the drag, touch, slider and keyboard turning, and the look in your theme. The tests check the admin end points, the stored data and what the product page hands to the script.
- The admin screens are in English only; the storefront words (Video, 360 view, Drag to turn, Close) are translatable.
- Tested on OpenCart 4.1.0.4, 4.0.2.3, 3.0.5.1 and 2.3.0.2 with the real admin installer (install, settings, finding products, adding and refusing links and picture sets, the product page data, deleting, uninstall, reinstall).