Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
On my website, I have changed some product metafield definitions (that is renamed the metafield, I am not talking about the associated content).
After having done that, the site appeared to work fine. BUT..
I discovered I had forgotten to update the names in some places in liquid code. So, I updated these accordingly.
After that, the site no longer works correctly. WHAT?
Okay, to make sure I am not mistaken here, I changed them back in the snippet to the OLD definitions. Surprise, surprise, it works again. WOW!
I am developing on CLI.
My idea is that this is a CACHING problem. But how?
Here's a bit more info.
It looks like this here is the culprit:
Does somebody have similar experience, or somebody here able to help?
Oh, forgot to mention, the metafields (new name) are visible on the product page on Shopify, and they have content.
Your help is much appreciated!
Thanks,
Luke
Solved! Go to the solution
This is an accepted solution.
Solution: delete metafields with data (second option) and then define the new datafield.
Don't seem to be able to edit my post, so I am adding some additional info here. It is just to make it more clear.
Above:
Below:
The code snippet below references the old names
This is an accepted solution.
Solution: delete metafields with data (second option) and then define the new datafield.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025