Hyperlink Item Image

added hyperlink on item image
This commit is contained in:
Scheercuzy 2016-12-29 18:56:44 +06:30
parent f327a58b7f
commit f483582957

View File

@ -13,7 +13,9 @@
{% macro product_image(website_image, css_class="") %}
<div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
{% if website_image -%}
<img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
<a href="{{ frappe.utils.quoted(website_image) }}">
<img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
</a>
{%- endif %}
</div>
{% endmacro %}