Display custom html within AR #2708
Replies: 2 comments 7 replies
-
Unfortunately until Apple supports WebXR, there isn't a consistent way to do this. However, you can add query params to your |
Beta Was this translation helpful? Give feedback.
-
on this topic of cross-compatible in-AR buy buttons - anyone have the CSS for the default apple quicklook buy button, so that i can have the same style on Android? (or any examples showing code that provides an in-AR buy button regardless of which ar mode is being used?) |
Beta Was this translation helpful? Give feedback.
-
Description
I want to display an "Add to cart" button within AR. I'm using "glb" file format for 3d file for both android and ios.
It works in Android but not working in ios.
How can we display a custom button within AR that support both ios and android?
<model-viewer src="https://cdn.shopify.com/s/files/1/0456/5509/7511/files/Chair.glb?v=1628335986" ios-src="https://cdn.shopify.com/s/files/1/0456/5509/7511/files/Wooden_barrel.usdz?v=1629738829" alt="A 3D model" ar ar-modes="webxr scene-viewer quick-look" auto-rotate camera-controls shadow-intensity="1" ar-placement="wall"> <button type="button" class="btn-ar-addToCart"> <span class="btn-txt">Add to cart</span> </button> </model-viewer>
Live Demo
Version
OS
AR
Beta Was this translation helpful? Give feedback.
All reactions