Jump to content
thirty bees forum

[Free Module] Product Videos


mwrouse

Recommended Posts

I have been developing modules these last few days to make Thirty Bees meet my needs. One of those was adding videos to a product.

The result is the productvideos module

 

It adds a tap in the edit product page that allows you to link to videos that show the product.

image.thumb.png.cf2b38a3e688343cea271055f6ed08ad.png

It (by default) ties into the displayProductTabContent hook so that it will show up as a tab on your product page. (below picture is from my custom theme)

image.thumb.png.f71394590180b9c12b6561e63d1cb33e.png

 

It also has a custom hook so you can add it anywhere in your theme on the product page (you just need to go into the module configuration page and disable the product tab hook).

That hook would look like this in your product.tpl file:

{hook h='displayProductVideos' product=$product}

(note: it expectes $product to be a class, so will not work on the product lists).

 

It uses a third-party library for converting the video url to an embedded iframe so it supports lots of different services (YouTube, Vimeo, Facebook, and a whole lot more).

 

Under the module configuration page you can add custom attributes that will get applied to the generated embed code.

Edited by mwrouse
  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...