View Single Post
  #27  
Old 11-24-2015, 10:27 PM
Heart Press's Avatar
Heart Press Heart Press is offline
 
Join Date: Jun 2015
Posts: 5
Default

To fix the errors on your embedded code, simply type the information within the code where it needs to be placed. To prevent the price from appearing 2x on your website, put the price with span tags. Here is an example.

<div class="ecwid-SingleProduct-picture"><a href="http://www.heartpress.ph/flip-flop-sandals.html#!/Flip-Flop-Sandals/p/56830362/category=13432605"><img class="gwt-Image"

src="http://www.heartpress.ph/files/theme/flip-flop-sandals.jpg" alt="Flip-Flop Sandals" title="Flip-Flop Sandals" style="width: 230px; height: 230px;

margin: auto;">
</a>
</div>

<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-56830362" itemscope itemtype="http://schema.org/Product" data-single-product-id="56830362"><div class="ecwid-title" itemprop="name">Flip-Flop Sandals</div><div itemtype="http://schema.org/Offer" itemscope itemprop="offers"><div class="ecwid-productBrowser-price ecwid-price" itemprop="price"><span>₱180</span></div></div></div><script type="text/javascript" src="https://app.ecwid.com/script.js?7138370&data_platform=singleproduct" charset="utf-8"></script><script type="text/javascript">xSingleProduct()</script>


Items such as 'add to bag' do not need to be marked up. In this example, I removed the addtobag button and made the image clickable. Edit as you like...

For ecwid single product pages, you can add a sample code like this from schema.org:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"name": "Flip-Flop Sandals",
"image": "http://www.heartpress.ph/files/theme/flip-flop-sandals.jpg",
"description": "Customize your very own Flip-Flop Sandals! These sandals have durable, white foam on top for printing your unique design. The straps and bottoms are solid black. This item is sold as a pair and comes in three different sizes. Please note that this product can be personalized using both images and / or text. Simply upload your desired high-resolution image during the checkout process.",
"availability": "In Stock",
"price": "180",
"priceCurrency": "PHP"
}
}
</script>

This code was generated at https://schema.org/Product

For reference purposes, these sample codes are located at http://www.heartpress.ph

Both, my store pages and single product pages are now completely marked up with zero errors. Hope this helps...