Adding Dynamic URL's/Files to Product Description Tabs or Accordions

Nous333
Explorer
49 0 12

Alright, so in true Shopify fashion, we now have customizable metafields right in the Shopify Admin....BUT, in the 'Product' metafields we are given the option of using URL and FILE metafield types and they DON'T EVEN WORK on PRODUCT pages!

 

Seriously Shopify?  Why?  Why even do it?  Why even give us the option?  That's about as bad as putting up the 'Collection' metafields and having them grayed out with a 'coming soon' message.  If you can't do something right just don't do it.  

 

Anyways, is there anyway to make Dynamic URL's or Files work in the custom product description metafields?  I'm thinking it might be possible to just hack the code a bit but I haven't been able to figure it out.. I really need to be able to display specific URL's for each product, and simply putting them in the actual product description won't work because customers seem to completely overlook them.  So I need to have a nice big heading using Tabs/Accordions where they can find the URL's.   

 

Any help appreciated, thank you!

Replies 2 (2)
PaulNewton
Shopify Partner
3404 224 655

@Nous333 wrote:

Alright, so in true Shopify fashion, we now have customizable metafields right in the Shopify Admin....BUT, in the 'Product' metafields we are given the option of using URL and FILE metafield types and they DON'T EVEN WORK on PRODUCT pages!


What are you trying to do and what is it doing and what errors are there?

 


@Nous333 wrote:

Anyways, is there anyway to make Dynamic URL's or Files work in the custom product description metafields? 

 


Your trying to put a metafield inside another metafields content from the admin?

That will  not work.

 

You need to get the values of each metafield in liquid in the theme and use logic on them to combine them how you want.

 

To put the values of one object into the values of another object you need to have logic like replacing a keyword string.

Strings like '<!-- split -->' , '[[PRODUCTURL]]', 'learn more' , etc etc

Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org

Problem Solved? ✔Accept and Like solutions to help future merchants

Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
Nous333
Explorer
49 0 12

No, I'm not trying to put a metafield inside another metafield.  

 

Within Shopify Theme editor (I'm using Pipeline) on the Product pages you can include dynamic metafields.  But if I make a URL or File metafield, these do not show up in my theme editor so I cannot add them to the product pages.  In fact... the only place I have found I can add a URL metafield to is rich text sections.  This doesn't help me because you can only place a rich text section at the very bottom or very top of a page... just wouldn't look right and my customers would still probably not notice the URLs.  

 

I want to be able to add a Dynamic URL Metafield to an accordion tab.  The product description has multiple fields where dynamic content can be inserted... it makes zero sense that a dynamic URL can't be placed in one of these fields... if other dynamic content can be placed there why not a URL?  I'm wondering if there is a way to edit the code of this description section to allow for links to be active within the dynamic content.  This way I could just use multi line text metafields and any URLS contained in the text would be active links on the front end.