Tell me how to change the display of the prices?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 7 años
Hello!
Tell me how to change the display of the prices? Thank you in advance!


in nopcommerce in \ Presentation \ Nop.Web \ Themes \ Views \ Product
_ProductPrice.cshtml
displayed as

<Div class = "prices" itemprop = "offers" itemscope itemtype = "http://schema.org/Offer">
        <Div class = "product-price">
            <Span itemprop = "price">
$ 119.00 </ span>
        </ Div>
            <Meta itemprop = "priceCurrency" content = "USD" />
</ Div>


and it is necessary as recommended by Google
<Div itemprop = "offers" itemscope itemtype = "http://schema.org/Offer">
    
    <Span itemprop = "priceCurrency" content = "USD"> $ </ span> <span
          itemprop = "price" content = "1000.00"> 1,000.00 </ span>
    <Link itemprop = "availability" href = "http://schema.org/InStock" /> In stock
  </ Div>
that is, to make the sign of the currency content = "USD"> $ </ span> <span, instead <span itemprop = "price">
$ 119.00 </ span>

Sorry for my bad English.
Hace 7 años
Hi,

Its easy, just change it. You may need to adjust few CSS property to make sure it looks good.

Regards,
Hace 7 años
I am familiar with css. I mean how to remove or make the sign of the currency so it was
<Div itemprop = "offers" itemscope itemtype = "http://schema.org/Offer">
    
     <Span itemprop = "priceCurrency" content = "USD"> $ </ span> <span
           itemprop = "price" content = "1000.00"> 1,000.00 </ span>
     <Link itemprop = "availability" href = "http://schema.org/InStock" /> In stock
   </ Div>
Hace 7 años
I do not think you can do this only change css and html. Because the price is formatted from "ProductController" of nopweb.
Hace 7 años
evget wrote:
...necessary as recommended by Google...

I don't think it is necessary to use USD (which would require a currency conversion), but I do think the require a period for the decimal point regardless of culture.
Hace 7 años
evget wrote:
I am familiar with css. I mean how to remove or make the sign of the currency so it was
<Div itemprop = "offers" itemscope itemtype = "http://schema.org/Offer">
    
     <Span itemprop = "priceCurrency" content = "USD"> $ </ span> <span
           itemprop = "price" content = "1000.00"> 1,000.00 </ span>
     <Link itemprop = "availability" href = "http://schema.org/InStock" /> In stock
   </ Div>


Please check your nopcommerce inbox.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.