How to format schema.org correctly with product sold by length?
up vote
1
down vote
favorite
I have a product which is sold by the length in 0.25-yard increments. 1 qty is equal to 0.25
While with Google Shopping Feed it was fairy easy to do with unit_pricing_measure and unit_pricing_base_measure:
<price>5 USD</price>
<unit_pricing_measure>0.25 yd</unit_pricing_measure>
<unit_pricing_base_measure>1 yd</unit_pricing_base_measure>
I expect above code to result in: "$20 per yard"
I cannot figure out how to replicate this in Schema.org. Is this even possible?
schema.org
add a comment |
up vote
1
down vote
favorite
I have a product which is sold by the length in 0.25-yard increments. 1 qty is equal to 0.25
While with Google Shopping Feed it was fairy easy to do with unit_pricing_measure and unit_pricing_base_measure:
<price>5 USD</price>
<unit_pricing_measure>0.25 yd</unit_pricing_measure>
<unit_pricing_base_measure>1 yd</unit_pricing_base_measure>
I expect above code to result in: "$20 per yard"
I cannot figure out how to replicate this in Schema.org. Is this even possible?
schema.org
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a product which is sold by the length in 0.25-yard increments. 1 qty is equal to 0.25
While with Google Shopping Feed it was fairy easy to do with unit_pricing_measure and unit_pricing_base_measure:
<price>5 USD</price>
<unit_pricing_measure>0.25 yd</unit_pricing_measure>
<unit_pricing_base_measure>1 yd</unit_pricing_base_measure>
I expect above code to result in: "$20 per yard"
I cannot figure out how to replicate this in Schema.org. Is this even possible?
schema.org
I have a product which is sold by the length in 0.25-yard increments. 1 qty is equal to 0.25
While with Google Shopping Feed it was fairy easy to do with unit_pricing_measure and unit_pricing_base_measure:
<price>5 USD</price>
<unit_pricing_measure>0.25 yd</unit_pricing_measure>
<unit_pricing_base_measure>1 yd</unit_pricing_base_measure>
I expect above code to result in: "$20 per yard"
I cannot figure out how to replicate this in Schema.org. Is this even possible?
schema.org
schema.org
asked Nov 22 at 15:47
curious
105212
105212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Maybe it could be something and repeat like this:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
The following chain is used here: Product => Offer => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue.
Note that the property sameAs with url used here is to identify.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Maybe it could be something and repeat like this:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
The following chain is used here: Product => Offer => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue.
Note that the property sameAs with url used here is to identify.
add a comment |
up vote
1
down vote
Maybe it could be something and repeat like this:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
The following chain is used here: Product => Offer => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue.
Note that the property sameAs with url used here is to identify.
add a comment |
up vote
1
down vote
up vote
1
down vote
Maybe it could be something and repeat like this:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
The following chain is used here: Product => Offer => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue.
Note that the property sameAs with url used here is to identify.
Maybe it could be something and repeat like this:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
The following chain is used here: Product => Offer => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue.
Note that the property sameAs with url used here is to identify.
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
answered Nov 29 at 8:14
nikant25
23218
23218
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53434422%2fhow-to-format-schema-org-correctly-with-product-sold-by-length%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown