Adding Three.js view to shopify page

Highlighted
Tourist
5 0 3

I created a product configurator that should be embedded in a shopify store. The configurator is written in js and uses the three.js framework for rendering webgl content. It's also including many js files.

 

I'm new to Shopify and now trying to add the configurator to the products page of my store.

 

I want to have it maintainable and need a small advise on how to do that.

 

Should I implement a private shopify app and put my product configurator there? 

1 Like
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

Hey @inlivity,

 

You shouldn't need an app for this - you can add the JS files to the theme assets (Admin > Online Store > Themes > Edit Code > Assets) and then load them on the product page (templates/product.liquid).

 

{{ 'some-js-file.js' | asset_url }}
0 Likes
Highlighted
New Member
2 0 0

Hi! Could you find a solution to implement Three.js in Shopify? I am doing this but I have had several problems too, could you give me some recommendation or example? Thank you!

0 Likes