Post by nightwing » Sat Apr 11, 2020 1:47 pm

Hello,

I saw this extension, made for OC Version 2. Does anyone know how to modify it for version 3.0.3.2? The developer seems to have abandoned this one.
https://www.opencart.com/index.php?rout ... n_id=26994

Thanks

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by thekrotek » Sat Apr 11, 2020 2:23 pm

Every developer knows.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by nightwing » Sat Apr 11, 2020 3:09 pm

:laugh: :laugh: :laugh: I am not a developer, I've learned all I know in this forum!
thekrotek wrote:
Sat Apr 11, 2020 2:23 pm
Every developer knows.

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by thekrotek » Sat Apr 11, 2020 3:33 pm

seanstorm100 wrote:
Sat Apr 11, 2020 3:09 pm
:laugh: :laugh: :laugh: I am not a developer, I've learned all I know in this forum!
Well, you asked if anybody knows... You got your answer.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by pprmkr » Sat Apr 11, 2020 7:25 pm

Url's accepted by script:

Code: Select all

// YouTube
"https://www.youtube.com/watch?v=7HKoqNJtMTQ"

// Vimeo
"https://vimeo.com/123123"
Or use mp4:

Code: Select all

image/catalog/video/my_video.mp4

Attachments


User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by nightwing » Sat Apr 11, 2020 9:16 pm

:laugh: :laugh: Yeah you are right I am sorry.
thekrotek wrote:
Sat Apr 11, 2020 3:33 pm
seanstorm100 wrote:
Sat Apr 11, 2020 3:09 pm
:laugh: :laugh: :laugh: I am not a developer, I've learned all I know in this forum!
Well, you asked if anybody knows... You got your answer.

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by nightwing » Sat Apr 11, 2020 9:17 pm

Thanks pprmkr,

I will test and get back to you!
pprmkr wrote:
Sat Apr 11, 2020 7:25 pm
Url's accepted by script:

Code: Select all

// YouTube
"https://www.youtube.com/watch?v=7HKoqNJtMTQ"

// Vimeo
"https://vimeo.com/123123"
Or use mp4:

Code: Select all

image/catalog/video/my_video.mp4

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by nightwing » Sat Apr 11, 2020 9:35 pm

Hey pprmkr,
This worked in my dev site which is a fresh oc installation! So it should work for anyone using that. Thank you very much!
I know my Live site was tweaked a bit especially to create a mobile site. I will work with that developer to get it working as we use two separate files product.twig and product_mobile.twig.
Basically, it is not storing the video URL in the back end and the product page goes into error 500 once the module is enabled.
pprmkr wrote:
Sat Apr 11, 2020 7:25 pm
Url's accepted by script:

Code: Select all

// YouTube
"https://www.youtube.com/watch?v=7HKoqNJtMTQ"

// Vimeo
"https://vimeo.com/123123"
Or use mp4:

Code: Select all

image/catalog/video/my_video.mp4

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by pprmkr » Sat Apr 11, 2020 10:49 pm

Is your admin/controller/catalog/product.php modified?
Take a look at storage/modification/admin/controller/catalog/product.php and try to find the broken code that results in Error 500

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by nightwing » Sat Apr 11, 2020 11:56 pm

Ok I will take a look. It shouldn't be modified as we only make changes in catalog. I will check when I get home. As strange enough the link disappeared after I saved.
pprmkr wrote:
Sat Apr 11, 2020 10:49 pm
Is your admin/controller/catalog/product.php modified?
Take a look at storage/modification/admin/controller/catalog/product.php and try to find the broken code that results in Error 500

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by Cue4cheap » Thu Jan 19, 2023 7:09 am

EDIT: right after I posted I have a lead... I'll work on it and post an update soon.

I know it is a semi-old thread but is there a way to show the video thumbnail (or iframe) versus the video icon? If you have multiple videos it just shows the same icon for all.

Thanks,
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cue4cheap » Thu Jan 19, 2023 7:33 am

Ok one part of the answer is to put for youtube videos put:

Code: Select all

<img src="http://img.youtube.com/vi/YOUTUBEVIDEOID/hqdefault.jpg">
in the line that starts with

Code: Select all

<a class="thumbnail mfp-iframe"


Now to modify the mod to extract that video id and show for any youtube video uploaded.

Thanks,
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 58 guests