May 9, 2021
There's an undocumented way to bulk edit metafields and it's quite handy. For example, to create a simple product metafield, I would add this type of link in shopify editor: /admin/bulk?edit=metaf...
It's all in the question. I work on Shopify almost every day, sometimes it would come real handy to be able to have block elements in the theme settings editor. One example would be for a Shopify ...
Does it matter if I have huge chunks of code (including liquid) inside a false liquid condition? Does it impact performance at all? My guess is no, but there is not much documentation about how liqui...
Sep 22, 2020
Well that's a silly question! I believe it's not possible but if you have an idea, please share. I'd like to be able to loop through IDs in my {% shema %} that looks like: { "type":"...
Hi there, Does shopify offer a way to add an image as line item property with AJAX? The goal is to go straight to the checkout. It seems just fine with any item properties, but nothing is said abo...
Hi there, I've seen a theme doing it. It uses blocks in product section, and each block is associated with one product (through a text field where the user inputs the product id). You can then mat...
Mar 5, 2020
Hi there, I am trying to adapt some scripts for the admin inside the editor. As for now, I am using something like that when I do have blocks : {% unless section.blocks.last.shopify_attri...
Jan 11, 2020
Hey there, I wonder why {% if section.settings.selected_number == 2 %}// code here{% endif %} is not working. But this does: {% if section.settings.selected_number == ...
Hi there, I have been Googling this multiple times, but I can't find a bit of information. Shopify cheat sheet also do not mention it: https://www.shopify.com/partners/shopify-cheat-sheet ...
Oct 16, 2019
Bonjour, I have built a custom mobile menu showing images next to navigation links. My question is: how to attach images to pages? Here is the organization: => Bracelets => All brace...
Sep 15, 2019
Hi, I'm trying to remove a string between 2 tags. For instance with h4 tags : Rich text editor: Text here<h4> Need to remove this text </h4>More text here Li...
Hi Shopify community, I think it's all in the question. I have some vertical scrolling texts (in blocks) and I need to target the first block in order to duplicate it at the end of the block secti...
This is an odd one. I'm trying to add paypal express button on the cart page (in order to hide it and therefore prevent it from displaying in the checkout page, but it's not the matter). The...
Hi. I'm using ShopifyFD mainly and it does not seem to work with value_type of 'json_string'. I've been through the main thread and read the (very) prompt documentation (links bellow) and it ...
Jun 27, 2019
Hi, I made a custom select field in shopify customizer, but whenever I try to fetch the value I selected, it automatically fetch the default value or the first value, but not the one I selec...
Jun 19, 2019
It's all in the question. Can we prefecth ressources needed when the user clicks "proceed to payment" to go the checkout ? I find the loading time quite long on my dev store. I see on the network ta...
Jun 18, 2019
Hi, I'm wondering why the images we add in the product description (with the rich text editor) do no apply lazyload automatically (it could be an option at least) ? Most stores do have lazyl...
I'm trying to load a second stylesheet, exactly the same way the current stylesheet is loaded. Currently I have ''theme.scss.liquid'' which is in asset folder and called in theme.liquid this...
Hi, I'm trying to hide a hamburger menu with swipe left gesture on Venture theme. By default, we need to touch-click next to it in order to close it. I have loaded a very lightweight library...
Apr 28, 2019
Hi. Here's what I'm looking to do : run a script after a customer sumbit its email. I see this part of code when email is successfully sent, in which I inserted a custom script :&nb...
Hi, I'm looking to preload the font I use (Roboto from shopify library) in order to improve the first paint, aka first rendering view. I noticed the font is kind of "flashing" for a quick moment (...
Hi everyone, This is my first post here and I haven't been able to find the answer to a (quite specific) question. I am building a page on Venture theme and I want a picture to fill the entire ...
No content to show
User Activity
Okay I see, so this is what I mentioned in the second part of my message. The caching issue, this might be a miss on Shopify side, or maybe due do the page caching by the browser, which happens when returning to a page with the back button (typical ...
Also, with some of the built-in themes (Refresh, Craft) I've seen many cases where the cart views (both the cart drawer and the dedicated cart page) end up getting cached so they only ever show whatever discount was applied the first time you viewed ...
12-12-2023
I use the /discount method, haven't noticed any problem with it. I actually found a more complex approach in here: https://gist.github.com/elghorfi/ce7e5b1080aae37d0a415643f33bc79e and I posted my own method at the bottom of this gist (which is signi...
It's an interesting find! But I don't get why his solution is so... convoluted I'd say. I actually shared my own solution on the gist feed (I believe much simpler and more efficient), could be interesting to compare the pros & cons.
12-03-2023
You should find the {{ product.vendor }} piece of code in your files (could be in main-product.liquid, but could be in a nested snippet as well depending on your theme). Then you can replace this piece of code with any of your liking. If you intend t...
12-03-2023
You should hire a dev to fix your code, it is buggy. The mobile menu probably works fine, but I suspect an error with the product form in theme.js file ([data-product-form] attribute seems to be missing in the page) which could cause other features t...
I'm also curious about that. This seems undocumented so use with caution, but it seems this way we can apply a manual discount code to the cart page with a simple client-side fetch request:fetch('/discount/discount-1').then(async () => {
// refresh...
There still are inconsistencies with the cart queue order to this day. I tested on latest dawn version: when I add a discount code in the checkout and come back to the website to add more products, the newly added products are added at the end of the...
11-17-2023
Neat! May I ask where you found this? Can't find any documentation about this API.
11-07-2023
If you want to go through a native form submit, your html would look like this: <input name="items[0][id]" value="123456789" >
<input name="items[0][quantity]" value="1" >
<input name="items[1][id]" value="987654321" >
<input name="items[1][quantity]...
11-03-2023
Shopify.designMode javascript object lets you know whether the website is loaded within the theme editor or not.
09-15-2023
This is partly part of your slideshow design. It is designed to cover the available slideshow size, so the image can scale to make sure the height and width fills the container. There's a simple way to change that, but it would also mean that you'd n...
Yes it's possible. Did you give it a shot?You can also reference another product this way (referencing the product handle):{{ all_products['your-product-handle'].metafields.custom.ingredients.value }}
09-15-2023
I believe they are working to change this limit in the near future, most likely to 250 instead of 100 variants (options are not like variants, the current limit is 3 options). So for your use case, variants might not be the way to go, but more likely...
09-15-2023
As far as I'm concerned it works this way: {% if section.index > 1 %}
{%- assign loading = 'lazy' -%}
{% else %}
{%- assign loading = 'auto' -%}
{% endif %}
{{- img | image_url: width: 500 | image_tag:
class: 'my-class',
loading: loading,
...
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
933 | 08-17-2023 06:37 AM | |
279 | 07-06-2023 03:42 AM | |
211 | 07-06-2023 02:35 AM | |
657 | 06-28-2023 06:50 PM | |
464 | 06-28-2023 05:24 PM |