Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Clenaup

Krzysztof Wolski19d18231f426
diff --git a/saleor/core/utils/json_ld.py b/saleor/core/utils/json_ld.py
deleted file mode 100644
index 10e1ef3d5f..0000000000
--- a/saleor/core/utils/json_ld.py
+++ /dev/null
@@ -1,38 +0,0 @@
-
-"""
-<script type="application/ld+json">
-{
- "@context": "http://schema.org",
- "@type": "WebSite",
- "url": "http://www.example.com/",
- "name": "Generally the title",
- "author": {
- "@type": "Person",
- "name": "Jane Doe"
- },
- "description": "Any sort of description, I'd keep it short",
- "publisher": "publisher name",
- "potentialAction": {
- "@type": "SearchAction",
- "target": "http://www.example.com/?s={search_term}",
- "query-input": "required name=search_term" }
- }
-</script>
-"""
-
-def web_page_schema():
- data = {"@context": "http://schema.org",
- "@type": "WebSite",
- "url": "http://www.example.com/",
- "name": "Generally the title",
- "author": {"@type": "Person",
- "name": "Jane Doe"},
- "description": "Any sort of description, I'd keep it short",
- "publisher": "publisher name",
- "potentialAction": {
- "@type": "SearchAction",
- "target": "http://www.example.com/?s={search_term}",
- "query-input": "required name=search_term" }
- }
-
- pass
diff --git a/saleor/static/js/components/variantPicker/VariantPrice.js b/saleor/static/js/components/variantPicker/VariantPrice.js
index 98b531169c..6657c0192b 100644
--- a/saleor/static/js/components/variantPicker/VariantPrice.js
+++ b/saleor/static/js/components/variantPicker/VariantPrice.js
@@ -32,7 +32,7 @@ export default class VariantPrice extends Component {
}
}
return (
- <h2 itemProp="offers" className="product__info__price" itemScope itemType="http://schema.org/Offer">
+ <h2 className="product__info__price">
<span>{priceText}&nbsp;</span>
{isDiscount && (
<small className="product__info__price__undiscounted">{priceUndiscountedText}</small>
diff --git a/templates/cart/index.html b/templates/cart/index.html
index 121d4f89c9..a8c09d92e0 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -39,7 +39,7 @@
<div class="col-7 cart__line__product">
<a href="{{ line.variant.get_absolute_url }}">
{% if line.variant.product.images.first %}
- <img itemprop="image" src="{{ line.variant.product.images.first.image.crop.60x60 }}" alt="">
+ <img src="{{ line.variant.product.images.first.image.crop.60x60 }}" alt="">
{% else %}
<img src="{% static 'images/placeholder60x60.png' %}" alt="">
{% endif %}
diff --git a/templates/product/_price_range.html b/templates/product/_price_range.html
index 59c42e81c6..e3aea6950c 100644
--- a/templates/product/_price_range.html
+++ b/templates/product/_price_range.html
@@ -1,8 +1,8 @@
{% load i18n %}
{% load gross from prices_i18n %}
-<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
- <span itemprop="price">
+<span>
+ <span>
{% if price_range.min_price != price_range.max_price %}{% trans "from" %} {% endif %}{% gross price_range.min_price html=True %}
</span>
</span>