Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I found this video on youtube an it's exactly what I need for my website. The problem is that this guy uses a different theme and for some reason I can't make it work. I believe I'm adding the code in the wrong place.
https://www.youtube.com/watch?v=9MS4ztCZ7P0
- I downloaded the app and followed the instructions, but I probably miss something.
I ma using the Dawn theme.
My website: sugarfreeeu.com
was trying to add the code here (last line is the new code):
product-media-gallery.liquid
<button
class="button button--full-width product__xr-button"
type="button"
aria-label="{{ 'products.product.xr_button_label' | t }}"
data-shopify-xr
data-shopify-model3d-id="{{ first_3d_model.id }}"
data-shopify-title="{{ product.title | escape }}"
data-shopify-xr-hidden
{{ product.metafields.custom_design.product_subtitle }}
>
thank you in advance
Solved! Go to the solution
This is an accepted solution.
Hi @Eli90 ,
Please refer below video to implement the same.
Hope it will help...
Hi @Eli90 ,
Seems you are updating the wrong file. kindly refer to the video.
Note:
You don't need an APP to add metafield, you can add metafield using setting -> custom data
The filename will depend on the theme. You have to check it based on the theme.
@gr_trading thank you for replying, but this was exactly what I asked. Which file should I add the code to ? I wasn't able to locate this one on the Dawn theme.
card-product.liquid
thank you @gr_trading I tried adding the code to that file, but unfortunately it didn't work
This is an accepted solution.
Hi @Eli90 ,
Please refer below video to implement the same.
Hope it will help...
@gr_trading you are simply amazing!!!!!!!!!!! thank you very much for taking your time to make this amazing video!! It worked perfectly. I'm so thankful!! 👑👑👑👑👑👑👑
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025