samthewebb
Shopify Partner
Contact Me
Status
Offline
Last Activity
‎09-26-2022 01:00 PM
Topic Started
0
Topics Started
Topic Solutions
3
Solutions
Post Count
25
Posts
Post Kudos
7
Likes

Bio: Previously a Shopify theme developer, now leading the engineering department at Inveterate, providing merchants with the ability to implement paid mem...

Community Badges

No content to show

User Activity

Nobody on these forums can tell you whether variant metafields are going to cause you issues in the future based on your post.In general, a metafield is simply for adding custom data to a specific object in Shopify. If that information is specific to...
I just wait to point out that instead of doing this:{{ 25000 | money | remove '.00' }}You should be doing this:{{ 25000 | money_without_trailing_zeros }}See Shopify's documentation on money filters for more info on that https://shopify.dev/api/liquid...
You can't. Metafields are custom fields you add to Shopify objects in the back end. You don't add metafields through front end AJAX APIs.Unless you're talking about line item properties which Shopify has good documentation on https://shopify.dev/api/...
There's probably a solution you can use combining Script Editor, line item properties and product tags to solve this in a way that prevents you from having to hardcode the products in the script and prevents Shopify savvy people from being able to ga...
There are a lot of sub-properties in the background CSS property. One of them is background-size and it can take a value of "cover" which will force the image to always fill up the entire container. For more information about the background property,...
Have you tried using Shopify's redirects? https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirectHonestly, I've never tried it but my gut feeling is that since /collections/all and /collections/all/ are still in a way the same ro...
As an app developer there's no way for you to make sure of that unless you're the person in control of the website source code, in which case you'd add it directly to layouts/theme.liquid.P.S. yes there is a themes/update webhook available, but if yo...
I feel like you could pretty quickly figure out what every URL type is by changing the value of a URL section setting and then checking how it displays in the JSON template within Shopify. Then doing that over and over again for every object type. Pr...
I'm fairly confident that you cannot use variant metafields in dynamic sources at this time. Logically, it doesn't make sense to be able to use them.In a sense, yes dynamic sources are tied to the page. More technically, they're tied to the object of...
Add .json to the end of your URLs. https://www.project.com/pages/contactus.jsonFurthermore, you need to run the json() method on your data if you want to see more than just the response object. So something more like this: fetch('/pages/test.json') ...
You know how in a URL setting you can either choose from a list of links within your store or you can write your own URL. This is the syntax Shopify uses if you choose from the list and also it allows Shopify to populate the link with the correct dom...
No problem.
No, this is not a feature of Liquid (within Shopify). Liquid does not have the concept of user defined functions nor objects, which are the 2 things you'd need to create a namespace contained "library".That being said, if you're really dedicated you ...
The script editor is primarily used for discounting the existing items in your users cart. It does not have the ability to add new products to cart on its own. You'd need to use JavaScript in your theme to add the product to cart and then use some so...
You'll probably have better luck getting an answer to this question in the Technical Q&A discussion board rather than Script Editor. This sounds like a theme code question. https://community.shopify.com/c/Technical-Q-A/bd-p/technical-qa
My Accepted Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
Likes given to