Product page - Having different video for different product - Impact theme

Solved

Product page - Having different video for different product - Impact theme

GabrielNoba
Shopify Partner
34 0 6

Hello everyone.

 

https://nobaanimal.myshopify.com/products/the-cottage-pet-house

 

Password: lomogra

 

I'm trying to achieve a certain look in my different product page.

I have a product page template. (With some metafields for differents variations between them) And I wanted to add a different video that is playing in loop on those different product.

 

I guess by using metafield ? That's were i'm stuck. Did not find a way to having the video play like in my exemple.

Is there any way to do such a thing? Having different video play. I'd like to get the same propriety like full width!

 

Thanks for the help ! 

 

 

Accepted Solution (1)

Sheesh_b
Shopify Partner
523 116 120

This is an accepted solution.

Hi @GabrielNoba 

Create a metafield which you already created and select the file type as 'File' and upload videos on products.

Then customize your theme and select the section which is responsible to play the video on products page.

Sheesh_b_0-1722263264338.png

 

Now, you can see a dynamic metafield connector at the top right of Select video

Sheesh_b_1-1722263322190.png

 

I created one and added the video and now it needs to be connected to video and will appear like below.

Sheesh_b_2-1722263379354.png

 

Sheesh_b_3-1722263401338.png

 

It's worked perfectly.

 

Now, you can add different videos on each product and no need to edit the code a bit.

 

Let me know if you need any help.

 

Thanks

Sheesh B

We're here to simplify website creation for those looking to establish a strong online presence. Book a meeting slot if you want to discuss. It's FREE. BOOK NOW | Try Shopify for $1 for 3 Months: Shopify Trial | Shopify Web Store Developer |
LIKE or mark as ACCEPTED SOLUTION

View solution in original post

Replies 5 (5)

EcomGraduates
Shopify Partner
840 71 121

you can use Shopify's metafields to store and display the video URL

Add Metafield for Video URL

Update Product Metafields

Modify Product Page Template

 

 

 

{% if product.metafields.custom.video_url %}
  <video width="100%" autoplay loop muted>
    <source src="{{ product.metafields.custom.video_url }}" type="video/mp4">
    Your browser does not support the video tag.
  </video>
{% endif %}

 

Make sure to replace custom.video_url with the namespace and key of your metafield.

 

 


 If this fixed your issue, likes and accepting as a solution are highly appreciated
|  Build an online presence with our custom-built Shopify Theme: EcomifyTheme
|  Check out our reviews: Trustpilot Reviews
|  We are Shopify Partners: EcomGraduates Shopify Partner



GabrielNoba
Shopify Partner
34 0 6

This line of code, do I copy it in the liquid page them.css?

 

Just to be sure

 

Capture d’écran, le 2024-07-29 à 10.20.06.png

Sheesh_b
Shopify Partner
523 116 120

This is an accepted solution.

Hi @GabrielNoba 

Create a metafield which you already created and select the file type as 'File' and upload videos on products.

Then customize your theme and select the section which is responsible to play the video on products page.

Sheesh_b_0-1722263264338.png

 

Now, you can see a dynamic metafield connector at the top right of Select video

Sheesh_b_1-1722263322190.png

 

I created one and added the video and now it needs to be connected to video and will appear like below.

Sheesh_b_2-1722263379354.png

 

Sheesh_b_3-1722263401338.png

 

It's worked perfectly.

 

Now, you can add different videos on each product and no need to edit the code a bit.

 

Let me know if you need any help.

 

Thanks

Sheesh B

We're here to simplify website creation for those looking to establish a strong online presence. Book a meeting slot if you want to discuss. It's FREE. BOOK NOW | Try Shopify for $1 for 3 Months: Shopify Trial | Shopify Web Store Developer |
LIKE or mark as ACCEPTED SOLUTION
GabrielNoba
Shopify Partner
34 0 6

So simple, yet I was complicated myself too much ! Thanks for your help ! 

tim
Shopify Partner
4247 483 1560

Aint' impact already has it?  Or I am missing something?

Screenshot 2024-07-30 at 12.06.28 AM.png

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com