How I can remove or add property to ld+json script?

 I see following in shopware page source:

 

Everything is just a template file - just search the source code: shopware/rating.tpl at 96161effd05153d4b95f4a9324998c047988724c · shopware/shopware · GitHub

You can extend/overwrite it with your own template.

Yes I see it but I dont know how I can for example add 

 priceValidUntil

 

would you please show me with an example?

@Moritz Naczenski schrieb:

Everything is just a template file - just search the source code: https://github.com/shopware/shopware/blob/96161effd05153d4b95f4a9324998c047988724c/themes/Frontend/Bare/frontend/_includes/rating.tpl

You can extend/overwrite it with your own template.

 

 

So How I can disable this script? 

There is no easy way or simple example for your purpose. You need to develop your own solution.

You should start by reading the documentation about how to extend the theme: Shopware 5 Theme Startup Guide

There is also a free video training for it: https://www.udemy.com/shopware-template-training-basic/

 

Wit this knowledge you should be able to extend the theme and add your additional data or remove some other fields completely.

another question I have: (how I can remove completely this ld+json that produced, no wants to add ) 

 

can I remove this json+ld by removing this line?

 

CodeMirror.defineMIME(„application/ld+json“, {name: „javascript“, jsonld: true});