JavaScript development and programming questions and answers
Questions
8638
Answers
811
Get product description with metafield in shopify
Solution:There should not be {-code-1} in product.metafields.custom.{-code-3}{-code-1}{-code-5} {-code-3} is the key product.metafields.custom.{-code-3} is the value Plus, from your line, what is {-code-5}?
Continue reading
html - CSS animation looks wrong/broken in some places on iOS devices only?
Solution:Some CSS properties are supported with vendor-specific syntax so you need to use always these syntaxes to make cross-browser compatibility {-code-1} for apple
Continue reading
Shopify refund amount wrong when refund in pending state (Admin REST API)
Solution:I think I have figured out what is going on, but I cannot find any official documentation of this phenomena, only
Continue reading
How to Add Fonts to the Shopify Admin
Solution:You can't actually add fonts there, those are coming from shopify's cdn. You can however find fonts on google fonts or
Continue reading
css selectors - Custom font for specific language shopify
Solution:The easiest way to do this is to give your body tag a class with the language .eng and .arabic, or
Continue reading
liquid - Splitting Shopify Multi Single Line Metafield to HTML List
Solution:There is a liquid string filter called {-code-1} (href="https://shopify.dev/docs/api/liquid/filters#{-code-1}" rel="nofollow noreferrer">reference), using the filter you should be able to split
Continue reading
html - Fill screen with div
Solution:For a full view scroll construction you need to: make sure that {-code-1} and {-code-2} consume the full viewport space available create a
Continue reading
Shopify - How to programmatically add a product to a cart with a custom app extension?
Solution: how do I add an item to the cart? Check out the href="https://shopify.dev/docs/api/ajax" rel="nofollow noreferrer">Shopify AJAX API. The href="https://shopify.dev/docs/api/ajax/reference/cart" rel="nofollow
Continue reading
web - Is there a way to create a unique access link to a private Shopify store?
Solution:There exist a million ways to do this. One is to ensure the product is only visible to logged in customers.
Continue reading
vuejs2 - Dealing with Race Conditions when making Fetch requests in Vue.js
Solution:You are dealing with async function {-code-1}, so you should await it, then you can remove {-code-2} class="lang-js prettyprint-override">async mounted() {
Continue reading