Hello, I bought and installed a regular version of wbAmp.
I created a Set 1 Rule with following parameters:
Component: virtuemart,
ItemId(s):*,
Views: productdetails,
Queryvar Cat: virtuemart_category_id,
Val: *,
Item Ids Var: virtuemart_product_id,
Val: *
It regularly creates amp pages for each virtuemart product, but with the wrong markup schema. I better explain myself:
showing the source of the generated Amp Page for each product, i see something like this:
[code type="markup"]
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": "http://www.erbaflor.com/it/prodotti-it-it/salute-e-benessere-int-it/inverno-e-difese-immunitarie/echinalt-capsule-detail",
"headline": "Inverno e difese immunitarie : Echinalt capsule",
"publisher": {
"@type": "Organization",
"name": "Erbaflor",
"logo": {
"@type": "ImageObject",
"url": "http://www.erbaflor.com/templates/g5_hydrogen/custom/images/erb-logo-it-white.png",
"width": 600,
"height": 134
}
},
"image": {
"@type": "ImageObject",
"url": "http://www.erbaflor.com/images/stories/prodotti/lineainvernoedifeseimmunitarie/big/echinaltcapsule.jpg",
"width": 1000,
"height": 1000
}
}
</script>[/code]
But what i need is to show "@type": "Product". I looked into backend plugin settings, but I only view a combo NewsArticle, or BlogPosting. Is there a way to generate the correct json snippet for product markup....
Note: before buying this plugin, i made myself an override of virtuemart single product page that generated the correct json syntax, but not into a separated amp page... i post below the json generated by me, just to show what i'd like wbAmp to do:
[code type="markup"]
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Echinalt capsule",
"image": "http://erbaflor.com/images/stories/prodotti/lineainvernoedifeseimmunitarie/big/echinaltcapsule.jpg",
"description": "
Echinacea in capsule ad alto dosaggio. L'assunzione regolare del prodotto aiuta l'organismo a mantenere attive le sue naturali difese.
Ingredienti: Echinacea Purpurea radice E.S., Echinacea Angustifolia radice E.S., Magnesio stearato; involucro: Idrossipropilmetilcellulosa, biossido di Titanio, ossido di Ferro.
Confezione30 capsule",
"mpn": "EISOLCPS00190M",
"brand": {
"@type": "Brand",
"name": "ERBAFLOR",
"logo" : "http://www.erbaflor.com/templates/g5_hydrogen/custom/images/erb-logo-it-white.png"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4",
"reviewCount": "10"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "10.4",
"priceValidUntil": "2020-11-05",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Erbaflor Peruzzo"
}
}
}
</script>
[/code]
Thanks in advance for your help
Simone Galiano
I created a Set 1 Rule with following parameters:
Component: virtuemart,
ItemId(s):*,
Views: productdetails,
Queryvar Cat: virtuemart_category_id,
Val: *,
Item Ids Var: virtuemart_product_id,
Val: *
It regularly creates amp pages for each virtuemart product, but with the wrong markup schema. I better explain myself:
showing the source of the generated Amp Page for each product, i see something like this:
[code type="markup"]
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": "http://www.erbaflor.com/it/prodotti-it-it/salute-e-benessere-int-it/inverno-e-difese-immunitarie/echinalt-capsule-detail",
"headline": "Inverno e difese immunitarie : Echinalt capsule",
"publisher": {
"@type": "Organization",
"name": "Erbaflor",
"logo": {
"@type": "ImageObject",
"url": "http://www.erbaflor.com/templates/g5_hydrogen/custom/images/erb-logo-it-white.png",
"width": 600,
"height": 134
}
},
"image": {
"@type": "ImageObject",
"url": "http://www.erbaflor.com/images/stories/prodotti/lineainvernoedifeseimmunitarie/big/echinaltcapsule.jpg",
"width": 1000,
"height": 1000
}
}
</script>[/code]
But what i need is to show "@type": "Product". I looked into backend plugin settings, but I only view a combo NewsArticle, or BlogPosting. Is there a way to generate the correct json snippet for product markup....
Note: before buying this plugin, i made myself an override of virtuemart single product page that generated the correct json syntax, but not into a separated amp page... i post below the json generated by me, just to show what i'd like wbAmp to do:
[code type="markup"]
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Echinalt capsule",
"image": "http://erbaflor.com/images/stories/prodotti/lineainvernoedifeseimmunitarie/big/echinaltcapsule.jpg",
"description": "
Echinacea in capsule ad alto dosaggio. L'assunzione regolare del prodotto aiuta l'organismo a mantenere attive le sue naturali difese.
Ingredienti: Echinacea Purpurea radice E.S., Echinacea Angustifolia radice E.S., Magnesio stearato; involucro: Idrossipropilmetilcellulosa, biossido di Titanio, ossido di Ferro.
Confezione30 capsule",
"mpn": "EISOLCPS00190M",
"brand": {
"@type": "Brand",
"name": "ERBAFLOR",
"logo" : "http://www.erbaflor.com/templates/g5_hydrogen/custom/images/erb-logo-it-white.png"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4",
"reviewCount": "10"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "10.4",
"priceValidUntil": "2020-11-05",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Erbaflor Peruzzo"
}
}
}
</script>
[/code]
Thanks in advance for your help
Simone Galiano