{% if item.sale_price > 0 %}
    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "Product",
        "description": "{{ item.description }}",
        "name": "{{ item.name }}",
        "image": "{{ settings.SITE_URL }}/{{ image_folders['product_folders']['large']['path'] }}/{{ item.images[0]['name'] }}",
        "offers": {
            "@type": "AggregateOffer",
            "highPrice": "{{ item.price }}",
            "lowPrice": "{{ item.sale_price }}",
            "priceCurrency": "GBP"
        }
    }
    </script>
{% else %}
    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "Product",
        "description": "{{ item.description }}",
        "name": "{{ item.name }}",
        "image": "{{ settings.SITE_URL }}/{{ image_folders['product_folders']['large']['path'] }}/{{ item.images[0]['name'] }}",
        "offers": {
            "@type": "Offer",
            "availability": "http://schema.org/InStock",
            "price": "{{ item.price }}",
            "priceCurrency": "GBP"
        }
    }
    </script>
{% endif %}
