SEO enhancements + structured data
							parent
							
								
									6141a41f16
								
							
						
					
					
						commit
						4ef5e48d1c
					
				|  | @ -71,6 +71,10 @@ | ||||||
|             "type": "string", |             "type": "string", | ||||||
|             "default": "£" |             "default": "£" | ||||||
|         }, |         }, | ||||||
|  |         "currencyISO": { | ||||||
|  |             "type": "string", | ||||||
|  |             "default": "USD" | ||||||
|  |         }, | ||||||
|         "paymentGateway": { |         "paymentGateway": { | ||||||
|             "type": "string", |             "type": "string", | ||||||
|             "enum": ["paypal", "stripe", "authorizenet", "adyen", "instore"] |             "enum": ["paypal", "stripe", "authorizenet", "adyen", "instore"] | ||||||
|  | @ -113,6 +117,12 @@ | ||||||
|         "maxQuantity": { |         "maxQuantity": { | ||||||
|             "type": "number" |             "type": "number" | ||||||
|         }, |         }, | ||||||
|  |         "twitterHandle": { | ||||||
|  |             "type": "string" | ||||||
|  |         }, | ||||||
|  |         "facebookAppId": { | ||||||
|  |             "type": "string" | ||||||
|  |         }, | ||||||
|         "modules": { |         "modules": { | ||||||
|             "type": "object", |             "type": "object", | ||||||
|             "properties": { |             "properties": { | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
|     "availableLanguages": ["en", "it"], |     "availableLanguages": ["en", "it"], | ||||||
|     "defaultLocale": "en", |     "defaultLocale": "en", | ||||||
|     "maxQuantity": 25, |     "maxQuantity": 25, | ||||||
|  |     "twitterHandle": "", | ||||||
|  |     "facebookAppId": "", | ||||||
|     "modules": { |     "modules": { | ||||||
|         "enabled": { |         "enabled": { | ||||||
|             "shipping": "shipping-basic", |             "shipping": "shipping-basic", | ||||||
|  |  | ||||||
|  | @ -65,6 +65,9 @@ | ||||||
|         <link rel="canonical" href="{{config.baseUrl}}" /> |         <link rel="canonical" href="{{config.baseUrl}}" /> | ||||||
|         {{/if}} |         {{/if}} | ||||||
|         <meta name="referrer" content="origin" /> |         <meta name="referrer" content="origin" /> | ||||||
|  |         {{#if @root.config.facebookAppId}} | ||||||
|  |         <meta property="fb:app_id" content="{{@root.config.facebookAppId}}" /> | ||||||
|  |         {{/if}} | ||||||
|         <meta property="og:site_name" content="{{config.cartTitle}}" /> |         <meta property="og:site_name" content="{{config.cartTitle}}" /> | ||||||
|         {{#if result.productTitle}} |         {{#if result.productTitle}} | ||||||
|         <meta property="og:type" content="product" /> |         <meta property="og:type" content="product" /> | ||||||
|  | @ -89,6 +92,9 @@ | ||||||
|         <meta property="og:description" content="{{snip config.cartDescription}}"> |         <meta property="og:description" content="{{snip config.cartDescription}}"> | ||||||
|         {{/if}} |         {{/if}} | ||||||
|         {{/if}} |         {{/if}} | ||||||
|  |         {{#if @root.config.twitterHandle}} | ||||||
|  |         <meta property="twitter:site" content="{{@root.config.twitterHandle}}"> | ||||||
|  |         {{/if}} | ||||||
|         {{#if result.productTitle}} |         {{#if result.productTitle}} | ||||||
|         <meta property="twitter:card" content="product" /> |         <meta property="twitter:card" content="product" /> | ||||||
|         {{else}} |         {{else}} | ||||||
|  | @ -102,12 +108,38 @@ | ||||||
|         {{/if}} |         {{/if}} | ||||||
|         <script type="application/ld+json"> |         <script type="application/ld+json"> | ||||||
|             { |             { | ||||||
|                 "@context": "http://schema.org", |                 "@context": "https://schema.org/", | ||||||
|                 "@type": "WebSite", |                 {{#if result.productTitle}} | ||||||
|  |                 "@type": "Product", | ||||||
|  |                 "name": "{{result.productTitle}}", | ||||||
|  |                 "offers": { | ||||||
|  |                     "price": "{{result.productPrice}}", | ||||||
|  |                     "priceCurrency": "{{config.currencyISO}}", | ||||||
|  |                     "description": "{{snip productDescription}}", | ||||||
|  |                     "sku": "{{result._id}}", | ||||||
|  |                     "url": "{{pageUrl}}" | ||||||
|  |                 }, | ||||||
|  |                 {{else}} | ||||||
|                 "publisher": "{{config.cartTitle}}", |                 "publisher": "{{config.cartTitle}}", | ||||||
|  |                 "@type": "WebSite", | ||||||
|  |                 {{/if}} | ||||||
|  |                 {{#if result.productImage}} | ||||||
|  |                 "image": "{{config.baseUrl}}{{result.productImage}}", | ||||||
|  |                 {{/if}} | ||||||
|  |                 {{#if productDescription}} | ||||||
|  |                 "description": "{{snip productDescription}}", | ||||||
|  |                 {{/if}} | ||||||
|  |                 {{#if result.productTitle}} | ||||||
|  |                 "sku": "{{result._id}}", | ||||||
|  |                 {{/if}} | ||||||
|  |                 {{#if pageUrl}} | ||||||
|  |                 "url": "{{pageUrl}}" | ||||||
|  |                 {{else}} | ||||||
|                 "url": "{{config.baseUrl}}" |                 "url": "{{config.baseUrl}}" | ||||||
|  |                 {{/if}} | ||||||
|             } |             } | ||||||
|         </script> |         </script> | ||||||
|  |          | ||||||
|         <!-- SEO data --> |         <!-- SEO data --> | ||||||
|         {{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}} |         {{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}} | ||||||
|         {{~#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}} |         {{~#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue