How do you insert structured data into product pages? I have seen that I cannot add the JSON-LD code in the product description code view
It is already there in the standard templates
components\com_virtuemart\sublayouts\snippets.php
it's true, but this tool https://search.google.com › structured-data › testing-tool does not detect the code from my site https://www.sadiceramiche.altervista.org/ :-\
because it isn't there
add the sublayout correctly in your template -- check the std template to see how
if ($this->product->prices['salesPrice'] > 0) {
echo shopFunctionsF::renderVmSubLayout('snippets',array('product'=>$this->product, 'currency'=>$this->currency, 'showRating'=>$this->showRating));
}
what does "std" mean? I didn't understand what you mean, don't use short words, please, I'm not very good with English
standard - core - native
ok. can you explain how can I add the code?
It is explained above ... compare the stock template to yours!
If u can't then ask your template builder why they have not incl. snippets
thanks i solved. actually it was all settled, as you wrote, thanks.