I'm using the most recent version of the Threads T...
# suitecommerce
w
I'm using the most recent version of the Threads Theme - v3.0.2 (Bundle ID 312859), but I get a message that 
This template is not compatible with JsonLd. Template must be based on 20.1 Base Theme.
   How is a standard NetSuite template not compatible with JSON-LD?  When will this template be compatible?  This version is relatively new - from January this year. (Posted in #C29HQS63G by accident)
s
Sorry, can you give a bit more detail about where/why this is happening?
Looking at your site, you're not running the latest version of the theme, which is what is causing this error to appear. The newest versions of the SC code (since 19.2?) use JSON-LD, which I can see on your site. This warning is returned when your templates still contain Schema.org markup, which I can see in your site's templates.
I'm looking at another Threads site and it doesn't have the markup, so I'm a bit confused. Are you sure you've activated the latest theme?
w
Sorry Steve, was busy with other things. You might want to look at my SB site: sc2019.jobrien.com, you'll see the error there. I will double check my production site to make sure the theme is correct.
What's odd is that I was testing an extension locally, and the error didn't show up. Once I deployed to SB, this message started.
s
You're using a custom theme, right?
If so, you will need to remove the Schema.org markup from the templates yourself
w
My custom theme is just a tweaked version of Threads, latest.
s
Well I can see that your product_views_price.tpl still has schema.org markup in it. I don't have the threads theme to hand to check but I'm guessing that they're not there?
w
Let me check
s
Copy code
<span class="product-views-price-range" itemprop="offers" itemscope="" itemtype="<https://schema.org/AggregateOffer>"><meta itemprop="priceCurrency" content="USD"><meta itemprop="highPrice" data-rate="1160.99" content="1160.99"><meta itemprop="lowPrice" data-rate="82.99" content="82.99"><span class="product-views-price-lead"><span content="82.99">$82.99</span> to <span content="1160.99">$1,160.99</span></span><span> each </span><link itemprop="availability" href="<https://schema.org/InStock>"></span>
w
OK, so it looks like schema.org markup is part of the latest threads theme
s
😲
w
I'm gonna download the theme itself into the tools to triple check
Threads manifest for v3.0.2 indicates target version of SC as >=18.1.0, which says to me that JSON LD is not part of it
s
Yeah I think the last publicly available version of threads is out of date
w
And, yes, the schema.org code is in product_views_price.tpl
s
Because we now do managed versions of these themes
So I think you will need to, as I said, remove that markup yourself or request the latest managed version and then download it and update your custom theme using those templates
w
Is that markup only in that template? Or do I need to search the whole thing? -- I'd rather have the latest managed version tho. I'll contact my account manager.
s
The markup will be present in other areas of your templates. You'd need to search for things like
itemscope
and
itemtype
. Essentially
jQuery('[itemscope]').length || jQuery('[itemtype^="<https://schema.org>"]').length
needs to return 0 or else it will return the error
w
I see
Hey Steve, getting back to you on this... I contacted my Account Manager, and he's telling me that there is not a newer version of Threads than what I have installed. This really doesn't make sense to me, as like you said, JSON-LD has been available since 2019.2 or 2020.1 Can you ask what version of Threads has support for JSON-LD? Thanks!
s
3.0.2 supports it. I think some of the metadata in the theme is out of date, but theme itself looks fine to me. I do a search for
[itemtype^="<https://schema.org>"]
and
itemscope
and both return nothing.
I've activated it on my site and I don't seen any errors
w
Huh ok.
I'll look closer into my extension then, it might be there.
s
You're using a customised theme right? As the theme is 'unmanaged' you will need to remove those attributes yourself
Generally speaking, we recommend using the managed themes now but that may not be appropriate for you, especially as an early adopter, you're probably used to your site's look and feel
w
I'm using a customized version of 3.0.2 and an extension that overrides product_views_price.tpl
s
... you are? We don't have a mechanism for overriding a theme template with an extension
w
Huh? I just put the new template into my Module's Templates folder, and it overrides.
s
And deploying and activating, it works?
w
Yeah. You showed me that!
s
🤔
w
LOL
s
🙃
w
So the custom template in my extension has stuff like
<link itemprop="availability" href="<https://schema.org/InStock>"/>
Is that causing the errors?
it does NOT have
itemtype=
anywhere
Whoa! Found it. It does have that...
s
As mentioned above:
Essentially 
jQuery('[itemscope]').length || jQuery('[itemtype^="<https://schema.org>"]').length
 needs to return 0 or else it will return the error
w
Let me compare with the 3.0.2 version of that template
s
So, remove
itemscope
and `itemtype`s that point to the schema.org definition
w
OK
thanks Stve!
s
As for the 'override a theme template with an extension template' thing -- I just found some notes from 2019 where I documented it
I am clearly getting old
w
No biggie! I know how you feel. 😉