Skip to content

Commit

Permalink
fix: Add offers info to website item (#34873)
Browse files Browse the repository at this point in the history
* fix: Add offers info to website item

* Revert "fix: Add offers info to website item"

This reverts commit 88b598e.

* fix: Add offer properties to website item
  • Loading branch information
deepeshgarg007 authored Apr 17, 2023
1 parent 4f978a3 commit 534ea5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/templates/generators/item/item_add_to_cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

<div class="product-price">
<!-- Final Price -->
{{ price_info.formatted_price_sales_uom }}
<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<span itemprop="price" content="{{ price_info.price_list_rate }}">{{ price_info.formatted_price_sales_uom }}</span>
<span style="display:none;" itemprop="priceCurrency" content="{{ price_info.currency }}">{{ price_info.currency }}</span>
</span>

<!-- Striked Price and Discount -->
{% if price_info.formatted_mrp %}
Expand Down

0 comments on commit 534ea5a

Please sign in to comment.