Shopify themes, liquid, logos, and UX
Hi,
I would like to have an option between the Product Price and the variant options ("Test"):
And I want to have it connected to a metafield (rich text)
I added a rich text metafield, but I cant select it inside of the Dropdown:
I also tried to add a Category Metafield with rich text but that didn't work either
Any advises how I can add the function?
Many thx 🙂
I am sure you have added a product metafield. Now the part where you want to add that metafield value, add a rich text block there and connect dynamic source from there.
Or you can take a custom liquid block and code to get the data.
You can add the code in custom liquid block like
products.metafields.what-ever-name-you-have-set for you rich text metafield.
Please reach out via mail for info or customizations.
Thanks
I can only add "text" as a block there.
When I want to connect the metafield value it doesnt work. The metafield option I created doesn't show up in the selectable options.
I am not sure about this but this could be the reason since you have created a rich-text metafield but trying to add on text field. It should show the option since both are text but it might be the problem.
Why not create a multi-line product metafield and try.
I have tested the same thing with a multi-line product metafield but same result 🥲
And the text entry field on the side also look like a rich ext field 😄
Well then this might need some looking up for which i will need collaborator access to your store. If you are ok with this, please try reaching out via mail for a convenient conversation.
By the way just so you know i tried a single line text type metafield and its working. Also multi line text. So from the customizer in the product template add a custom liquid block between orice and variants and inside that add this code
{{ product.metafields.custom.r_text }}
Change r_text to whatever you named your multi-line text metafield. Lets see how this goes.
Thanks
Shadab
Mhhhh... Maybe I fcked up some code when I tried to add something there 😄
Probably
Okay I added a new theme to test it in a new one and I couldn't add the meta field there as well 🫠
And I tried out your code for the Custom Liquid and now it looks like that 😄
Well yes honestly @mrzmyr this is a start. I don't remember it well but I got this as well most probably on rich text, so try this out with multi-line text or single line text
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024