Giter Site home page Giter Site logo

Comments (1)

influxweb avatar influxweb commented on May 27, 2024

Correcting the Issue

The microdata needs to be updated on the product page. I have added this update and it will be included in the next maintenance release.

To make the update prior to the next release, you will need to update/compare the code in User Interface -> Pages -> PROD -> Template:

<mvt:item name="html_profile"/>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<base href="&mvt:global:basehref;">
	<mvt:if expr="NOT ISNULL l.settings:product:page_title">
		<title>&mvt:product:page_title;</title>
	<mvt:elseif expr="NOT ISNULL l.settings:page:title">
		<title>&mvt:page:title;</title>
	<mvt:else>
		<title>&mvt:store:name;: &mvt:product:name;</title>
	</mvt:if>
	<mvt:item name="head" param="css_list" />
	<mvt:item name="head" param="head_tag" />
	<mvt:item name="attributemachine" param="head_deferred" />
	<mvt:item name="product_display_imagemachine" param="head_deferred" />
	<mvt:assign name="g.socialURL" value="l.settings:product:link" />
	<mvt:assign name="g.socialText" value="'Check out the deal on ' $ l.settings:product:name $ ' at ' $ g.store:name" />
	<mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('main', l.settings:imagetype)" />
	<mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:product:id, 1, l.settings:imagetype)" />
	<mvt:do name="l.success" file="g.Module_Library_DB" value="Image_Load_ID(l.settings:imagetype:image_id, l.settings:imagedata)" />
	<mvt:assign name="g.socialImage" value="g.baseurl $ l.settings:imagedata:image" />
	<meta property="og:title" content="&mvte:product:name;">
	<meta property="og:type" content="product">
	<meta property="og:image" content="&mvt:global:socialImage;">
	<meta property="og:url" content="&mvt:global:socialURL;">
	<meta property="og:site_name" content="&mvte:global:store:name;">
	<meta property="og:description" content="&mvte:global:socialText;">
	<meta property="og:locale" content="en_US">
	<meta name="twitter:card" content="summary_large_image">
	<meta name="twitter:site" content="@TWITTER_ACCOUNT">
	<meta name="twitter:creator" content="@TWITTER_ACCOUNT">
	<meta name="twitter:url" content="&mvt:global:socialURL;">
	<meta name="twitter:title" content="&mvte:product:name;">
	<meta name="twitter:description" content="&mvte:global:socialText;">
	<meta name="twitter:image" content="&mvt:global:socialImage;">
	<meta name="twitter:image:alt" content="&mvte:product:name;">
</head>
<body id="js-&mvte:page:code;" class="o-site-wrapper t-page-&mvt:global:pageClass;">
	<mvt:item name="hdft" param="global_header" />

	<section class="o-layout">
		<div class="o-layout__item">
			<mvt:item name="hdft" param="header" />
		</div>
	</section>

	<section class="o-layout">
		<div class="o-layout__item">
			<mvt:item name="prod_ctgy_hdft" param="prod_header" />
		</div>
	</section>

	<!-- Start: Google Rich Snippets -->
	<mvt:comment>Strip any HTML from the product description.</mvt:comment>
	<mvt:assign name="l.settings:product:stripped_descrip" value="miva_html_strip(l.settings:product:descrip, '')"/>

	<div itemscope itemtype="http://schema.org/Product">
		<mvt:if expr="NOT ISNULL l.settings:product:sku">
			<meta itemprop="mpn" content="&mvte:product:sku;" />
			<meta itemprop="sku" content="&mvte:product:sku;" />
		<mvt:else>
			<meta itemprop="mpn" content="&mvte:product:code;" />
			<meta itemprop="sku" content="&mvte:product:code;" />
		</mvt:if>
		<meta itemprop="name" content="&mvte:product:name;" />
		<meta itemprop="image" content="&mvt:global:socialImage;" />
		<meta itemprop="category" content="&mvte:category:name;" />
		<meta itemprop="description" content="&mvte:product:stripped_descrip;" />
		<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:brand">
			<meta itemprop="brand" content="&mvte:product:customfield_values:customfields:brand;" />
		<mvt:else>
			<meta itemprop="brand" content="&mvte:global:store:name;" />
		</mvt:if>
		<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
			<meta itemprop="url" content="&mvte:product:link;" />
			<mvt:if expr="NOT ISNULL l.settings:product:sku">
				<meta itemprop="sku" content="&mvte:product:sku;" />
			<mvt:else>
				<meta itemprop="sku" content="&mvte:product:code;" />
			</mvt:if>
			<mvt:item name="product_display" />
			<mvt:item name="attributemachine" param="body_deferred" />
			<script>
				if (typeof am&mvt:product:id; !== 'undefined') {
					var attrMachCall = am&mvt:product:id;;
					var attrPossible = amPossible&mvt:product:id;;
				}
			</script>
			<meta itemprop="priceCurrency" content="USD" />
			<meta itemprop="seller" content="&mvte:global:store:name;" />
			<meta itemprop="itemCondition" content="new" />

			<mvt:if expr="l.settings:attributemachine:product:inv_level">
				<mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_level"/>
				<mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" />
				<meta itemprop="price" content="&mvt:attributemachine:product:price;"/>
			<mvt:else>
				<mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/>
				<meta itemprop="price" content="&mvt:product:price;"/>
			</mvt:if>
			<mvt:if expr="l.availability_inv_level EQ 'low'">
				<meta itemprop="availability" content="LimitedAvailability"/>
			<mvt:elseif expr="l.availability_inv_level EQ 'out'">
				<meta itemprop="availability" content="OutOfStock"/>
			<mvt:else>
				<meta itemprop="availability" content="InStock"/>
			</mvt:if>
		</div>
	</div>
	<!-- End: Google Rich Snippets -->

	<mvt:if expr="l.settings:related_product_count NE 0">
		<mvt:item name="related_products" />
	</mvt:if>

	<section class="o-layout">
		<div class="o-layout__item">
			<mvt:item name="prod_ctgy_hdft" param="prod_footer" />
		</div>
	</section>

	<section class="o-layout">
		<div class="o-layout__item">
			<mvt:item name="hdft" param="footer" />
		</div>
	</section>

	<mvt:item name="hdft" param="global_footer" />
</body>
</html>

from readytheme-colossus.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.