{{ web_long_description or description or _("No description given") }}
diff --git a/erpnext/templates/generators/item_group.html b/erpnext/templates/generators/item_group.html
index 6cc4212d98..348d330419 100644
--- a/erpnext/templates/generators/item_group.html
+++ b/erpnext/templates/generators/item_group.html
@@ -39,33 +39,12 @@ $(function() {
{% block style %}
{% endblock %}
diff --git a/erpnext/templates/includes/cart.js b/erpnext/templates/includes/cart.js
index c0b2f4613a..2495182fb4 100644
--- a/erpnext/templates/includes/cart.js
+++ b/erpnext/templates/includes/cart.js
@@ -105,8 +105,7 @@ $.extend(shopping_cart, {
render_item_row: function($cart_items, doc) {
doc.image_html = doc.website_image ?
- '
' :
- '{% include "templates/includes/product_missing_image.html" %}';
+ '
': "";
if(doc.description === doc.item_name) doc.description = "";
@@ -265,7 +264,7 @@ $.extend(shopping_cart, {
.html(msg || frappe._("Something went wrong!"))
.toggle(true);
} else {
- window.location.href = "order?name=" + encodeURIComponent(r.message);
+ window.location.href = "/orders/" + encodeURIComponent(r.message);
}
}
});
diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html
new file mode 100644
index 0000000000..aa44a1731b
--- /dev/null
+++ b/erpnext/templates/includes/macros.html
@@ -0,0 +1,17 @@
+{% macro product_image_square(website_image, css_class="") %}
+
+ {% if not website_image -%}{%- endif %}
+
+{% endmacro %}
+
+{% macro product_image(website_image, css_class="") %}
+
+ {% if website_image -%}
+
+ {%- else -%}
+
+ {%- endif %}
+
+{% endmacro %}
+
diff --git a/erpnext/templates/includes/product_in_grid.html b/erpnext/templates/includes/product_in_grid.html
index 27cc321d56..b670a7f425 100644
--- a/erpnext/templates/includes/product_in_grid.html
+++ b/erpnext/templates/includes/product_in_grid.html
@@ -1,8 +1,8 @@
+{% from "erpnext/templates/includes/macros.html" import product_image_square %}
+
-
-
-
+
+ {{ product_image_square(website_image) }}
{{ item_name }}
diff --git a/erpnext/templates/includes/product_missing_image.html b/erpnext/templates/includes/product_missing_image.html
deleted file mode 100644
index 81b893533f..0000000000
--- a/erpnext/templates/includes/product_missing_image.html
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file