- Open your bookmark bar ⌘ + shift + b
- Right click >
Add Page
- Give your bookmarklet a
Name
, this will show up in the bookmark bar - In the url add
javascript:
and then paste the javascript code - Click on the bookmarklet to activate it
Use at your own risk. The default variant may change if you make certain edits to your product
From the Shopify admin, when you only have the default variant there is no link to manually edit the metafield for the variant. If you navigate directly to the url /products/{product_id}/variants/{variant_id)/metafields
you can edit the default variant metafield. This bookmarklet will open the first variant metafield editor.
defvarmetafield.mp4
This will copy the myshopify domain of the Shopify store that you are on to your clipboard. Helpful for stores with a custom domain. This will only work for liquid storefronts.
myshopifydomain.mp4
This should work for liquid and headless storefronts