If the code was in only HTML code, it would look like this:
Code: Select all
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$1.99</span>
<meta itemprop="priceCurrency" content="USD" />
</div>
Code: Select all
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$1.99</span>
<meta itemprop="priceCurrency" content="USD" />
</div>
Code: Select all
private string _RetailPriceFormat = "<div itemprop=\"offers\" itemscope itemtype=\"http://schema.org/Offer\"><span class=\"msrp\" itemprop=\"price\">{0:ulc}</span> <meta itemprop=\"priceCurrency\" content=\"USD\" /></div>";
Code: Select all
<uc:ProductPrice ID="OurPrice" runat="server" EnableDefaultKitProducts="false" />
triplw wrote:I put this in the content scriptlet and it seems to work.
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$Product.Price.ToString("ulc")</span>
<meta itemprop="priceCurrency" content="USD" />
</div>