{"id":1513920,"date":"2024-09-04T12:10:32","date_gmt":"2024-09-04T12:10:32","guid":{"rendered":"https:\/\/davidcarralon.com\/herramientas\/generador-de-esquemas\/product"},"modified":"2026-06-04T11:06:18","modified_gmt":"2026-06-04T11:06:18","slug":"product","status":"publish","type":"page","link":"https:\/\/davidcarralon.com\/es\/herramientas\/generador-de-esquemas\/product","title":{"rendered":"Product Schema"},"content":{"rendered":"\n<div class=\"jpsg-container\">\n\n    <h2>Product Schema Generator<\/h2>\n        <p>My Schema tool will generate compliant Json-LD structured data based \n        on your required field. Each field will generate an item property<\/p>\n        \n        <div class=\"jpsg-buttons\">\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/website\"> Website<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/organization\"> Organization<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/breadcrumbs\"> Breadcrumbs<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/article\"> Article<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/localbusiness\"> Local Business<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/product\"> Product<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/event\">Event<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/video\">Video<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/recipe\">Recipe<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/aggregaterating\">Aggregate Rating<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/jobposting\">Job Postings<\/a> <\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/FAQ\">FAQ<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/medicalschema\">Medical Schema<\/a><\/button>\n        <\/div>\n    <div class=\"row\">\n    <div class=\"column\" id=\"schema-output\">\n        <h3 id=\"generatedSchema\" style=\"display:none;\">Generated JSON-LD:<\/h3>\n        <h3 id=\"dataSample\">Structured data sample for \u2018Product\u2019 Schema <\/h3>\n\n        <pre class=\"textDavid\" id=\"textDavid\">\n{\n\"@context\": \"http:\/\/schema.org\",\n\"@type\": \"Product\",\n\"name\": \"david carralon\",\n\"url\": \"davidcarralon.com\",\n\"image\": \"https:\/\/davidcarralon.com\/wp-content\/uploads\/davidcarralon-logo-250-low-1.png\",\n\"description\": \"I\u2019m an International SEO consultant based in France, operating across a number of different markets in and outside the EU.\",\n\"brand\": {\n\t\"@type\": \"Brand\",\n\t\"name\": \"International SEO strategy\"\n},\n\"aggregateRating\": {\n\t\"@type\": \"AggregateRating\",\n\t\"ratingValue\": \"5\",\n\t\"reviewCount\": \"100\"\n},\n\"offers\": {\n\t\"@type\": \"Offer\",\n\t\"priceCurrency\": \"FRF\",\n\t\"price\": \"5000\",\n\t\"priceValidUntil\": \"2024-08-24\",\n\t\"itemCondition\": \"New\",\n\t\"availability\": \"InStock\"\n}\n}\n<\/pre>  \n        <pre class=\"schemapre\" id=\"schema-json\"><\/pre>\n        <button id=\"copyButton\" style=\"display:none;\">Copy JSON-LD<\/button>\n        <button id=\"validateSchema\" style=\"display:none;\"><a href=\"https:\/\/search.google.com\/test\/rich-results\" rel=\"noopener\">Validate(Google)<\/a><\/button>\n<\/div>\n        <div class=\"column\">\n            <form id=\"schema-form\">\n                <div class=\"form-group\">\n                    <label for=\"product-Name\">Name:<\/label>\n                    <input type=\"text\" id=\"product-Name\" name=\"productName\"  placeholder=\"Name\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Url\">URL:<\/label>\n                    <input type=\"url\" id=\"product-Url\" name=\"productUrl\" placeholder=\"URL\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Description\">Description:<\/label>\n                    <input type=\"text\" id=\"product-Description\" name=\"productDescription\" placeholder=\"Description\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Image-Url\">Image URL:<\/label>\n                    <input type=\"url\" id=\"product-Image-Url\" name=\"productImageUrl\" placeholder=\"Image URL\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Brand\">Brand<\/label>\n                    <input type=\"text\" id=\"product-Brand\" name=\"productBrand\" placeholder=\"Brand\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Average-Rating\">Average Rating:<\/label>\n                    <input type=\"text\" id=\"product-Average-Rating\" name=\"productAverageRating\" placeholder=\"Average Rating\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Number-Review\">Number of Reviews:<\/label>\n                    <input type=\"url\" id=\"product-Number-Review\" name=\"productNumberReview\" placeholder=\"Number of Reviews\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Offer-Currency\">Offer Price Currency:<\/label>\n                        <select  name=\"productOfferCurrency\" id=\"product-Offer-Currency\">\n                            <option value=\"USD\">USD - United States Dollars<\/option>\n                            <option value=\"EUR\">EUR - Euro<\/option>\n                            <option value=\"GBP\">GBP - United Kingdom Pounds<\/option>\n                            <option value=\"DZD\">DZD - Algeria Dinars<\/option>\n                            <option value=\"ARP\">ARP - Argentina Pesos<\/option>\n                            <option value=\"AUD\">AUD - Australia Dollars<\/option>\n                            <option value=\"ATS\">ATS - Austria Schillings<\/option>\n                            <option value=\"BSD\">BSD - Bahamas Dollars<\/option>\n                            <option value=\"BBD\">BBD - Barbados Dollars<\/option>\n                            <option value=\"BEF\">BEF - Belgium Francs<\/option>\n                            <option value=\"BMD\">BMD - Bermuda Dollars<\/option>\n                            <option value=\"BRR\">BRR - Brazil Real<\/option>\n                            <option value=\"BGL\">BGL - Bulgaria Lev<\/option>\n                            <option value=\"CAD\">CAD - Canada Dollars<\/option>\n                            <option value=\"CLP\">CLP - Chile Pesos<\/option>\n                            <option value=\"CNY\">CNY - China Yuan Renminbi<\/option>\n                            <option value=\"CYP\">CYP - Cyprus Pounds<\/option>\n                            <option value=\"CSK\">CSK - Czech Republic Koruna<\/option>\n                            <option value=\"DKK\">DKK - Denmark Kroner<\/option>\n                            <option value=\"NLG\">NLG - Dutch Guilders<\/option>\n                            <option value=\"XCD\">XCD - Eastern Caribbean Dollars<\/option>\n                            <option value=\"EGP\">EGP - Egypt Pounds<\/option>\n                            <option value=\"FJD\">FJD - Fiji Dollars<\/option>\n                            <option value=\"FIM\">FIM - Finland Markka<\/option>\n                            <option value=\"FRF\">FRF - France Francs<\/option>\n                            <option value=\"DEM\">DEM - Dermany Deutsche Marks<\/option>\n                            <option value=\"XAU\">XAU - Gold Ounces<\/option>\n                            <option value=\"GRD\">XCD - Greece Drachmas<\/option>\n                            <option value=\"HKD\">HKD - Hong Kong Dollars<\/option>\n                            <option value=\"HUF\">HUF - Hungary Forint<\/option>\n                            <option value=\"ISK\">ISK - Iceland Krona<\/option>\n                        <\/select>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Offer-Price\">Offer Price:<\/label>\n                    <input type=\"text\" id=\"product-Offer-Price\" name=\"productOfferPrice\" placeholder=\"Offer Price\" required>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Availability\">Availability:<\/label>\n                    <select  name=\"productAvailability\" id=\"product-Availability\">\n                            <option value=\"-- Select --\">-- Select Availability --<\/option>\n                            <option value=\"IN STOCK\">IN STOCK<\/option>\n                            <option value=\"OUT OF STOCK\">OUT OF STOCK<\/option>\n                    <\/select>\n                <\/div>\n                <div class=\"form-group\">\n                <label for=\"product-Item\">Item Condition:<\/label>\n                    <select  name=\"productItem\" id=\"product-Item\">\n                            <option value=\"-- Select --\">-- Select --<\/option>\n                            <option value=\"NEW\">NEW<\/option>\n                            <option value=\"USED\">USED<\/option>\n                            <option value=\"REFURBISHED\">REFURBISHED<\/option>\n                    <\/select>\n                <\/div>\n                <div class=\"form-group\">\n                    <label for=\"product-Valid\">Valid Until:<\/label>\n                    <input type=\"date\" id=\"product-Valid\" name=\"productValid\" placeholder=\"Valid Until\" required>\n                <\/div>\n\n\n                <!-- Add more fields as necessary -->\n                <div class=\"form-group\">\n                <button type=\"button\" onclick=\"generateSchema()\">Generate Schema<\/button>\n                <button type=\"reset\" id=\"reset\">Clear all<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n\n<\/div>\n\n <script>\n        function generateSchema() {\n            var productName = document.getElementById('product-Name').value;\n            var productUrl = document.getElementById('product-Url').value;\n            var ProductDescription = document.getElementById('product-Description').value;\n            var productImageUrl = document.getElementById('product-Image-Url').value;\n            var productBrand = document.getElementById('product-Brand').value;\n            var productAverageRating = document.getElementById('product-Average-Rating').value;\n            var productNumberReview = document.getElementById('product-Number-Review').value;\n            var productOfferCurrency = document.getElementById('product-Offer-Currency').value;\n            var productOfferPrice = document.getElementById('product-Offer-Price').value;\n            var productAvailability = document.getElementById('product-Availability').value;\n            var productItem = document.getElementById('product-Item').value;\n            var productValid = document.getElementById('product-Valid').value;\n\n\n            var schema = {\n                 \n                \"@context\": \"http:\/\/schema.org\",\n                \"@type\": \"Product\",\n                \"name\": productName,\n                \"url\": productUrl,\n                \"image\": productImageUrl,\n                \"description\": ProductDescription,\n                \"brand\": {\n                    \"@type\": \"Brand\",\n                    \"name\": productBrand\n                },\n                \"aggregateRating\": {\n                    \"@type\": \"AggregateRating\",\n                    \"ratingValue\": productAverageRating,\n                    \"reviewCount\": productNumberReview\n                },\n                \"offers\": {\n                    \"@type\": \"Offer\",\n                    \"priceCurrency\": productOfferCurrency,\n                    \"price\": productOfferPrice,\n                    \"priceValidUntil\": productValid,\n                    \"itemCondition\": productItem,\n                    \"availability\": productAvailability\n                }\n             \n         };     \n                 \n            document.getElementById('schema-json').textContent = JSON.stringify(schema, null, 2);\n            document.getElementById('generatedSchema').style.display = 'inline-block';\n            document.getElementById('copyButton').style.display = 'inline-block';\n            document.getElementById('validateSchema').style.display = 'inline-block';\n            document.getElementById('dataSample').style.display = 'none';\n            document.getElementById('textDavid').style.display = 'none';\n        }\n<\/script>\n\n<script>\n    document.getElementById('copyButton').addEventListener('click', function() {\n        \/\/ Get the text from the generated JSON-LD area\n        const jsonLdText = document.querySelector('#schema-json').innerText;\n\n        \/\/ Create a temporary textarea element to hold the text\n        const tempTextArea = document.createElement('textarea');\n        tempTextArea.value = jsonLdText;\n        document.body.appendChild(tempTextArea);\n\n        \/\/ Select the text and copy it to the clipboard\n        tempTextArea.select();\n        document.execCommand('copy');\n\n        \/\/ Remove the temporary textarea\n        document.body.removeChild(tempTextArea);\n\n        \/\/ Optional: Alert the user that the text has been copied\n        alert('JSON-LD copied to clipboard!');\n    });\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1464101,"parent":1513789,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"1":"page","2":"type-page","6":"entry"},"featured_image_src":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Product-1-600x400.png","acf":[],"featured_image_src_square":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Product-1-600x600.png","_links":{"self":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/comments?post=1513920"}],"version-history":[{"count":1,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513920\/revisions"}],"predecessor-version":[{"id":1513921,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513920\/revisions\/1513921"}],"up":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media\/1464101"}],"wp:attachment":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media?parent=1513920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}