diff --git a/erpnext/e_commerce/product_grid.js b/erpnext/e_commerce/product_grid.js
index bd7a568ac0d..c0e5ffa845b 100644
--- a/erpnext/e_commerce/product_grid.js
+++ b/erpnext/e_commerce/product_grid.js
@@ -47,11 +47,13 @@ erpnext.ProductGrid = class {
`;
} else {
return `
-
-
- ${ frappe.get_abbr(title) }
-
-
+
`;
}
}
diff --git a/erpnext/e_commerce/product_list.js b/erpnext/e_commerce/product_list.js
index d5ba6f5b299..6c7d7ff7dc5 100644
--- a/erpnext/e_commerce/product_list.js
+++ b/erpnext/e_commerce/product_list.js
@@ -48,11 +48,14 @@ erpnext.ProductList = class {
`;
} else {
return `
-
-
- ${ frappe.get_abbr(title) }
-
-
+
`;
}
}
diff --git a/erpnext/e_commerce/product_search.js b/erpnext/e_commerce/product_search.js
index 037878b63c8..e537688199d 100644
--- a/erpnext/e_commerce/product_search.js
+++ b/erpnext/e_commerce/product_search.js
@@ -179,7 +179,11 @@ erpnext.ProductSearch = class {
let html = "";
recents.forEach((key) => {
- html += ``;
+ html += `
+
+ `;
});
this.recents_container.html(html);
diff --git a/erpnext/patches/v13_0/create_website_items.py b/erpnext/patches/v13_0/create_website_items.py
index 78e9dda42a4..a8bdc5c263f 100644
--- a/erpnext/patches/v13_0/create_website_items.py
+++ b/erpnext/patches/v13_0/create_website_items.py
@@ -1,6 +1,4 @@
-from __future__ import unicode_literals
import frappe
-
from erpnext.e_commerce.doctype.website_item.website_item import make_website_item
def execute():
@@ -48,7 +46,7 @@ def execute():
website_item.ranking = item.get("weightage")
for field in web_fields_to_map:
website_item.update({field: item.get(field)})
- website_item.save()
+ website_item.save()
# move Website Item Group & Website Specification table to Website Item
for doctype in ("Website Item Group", "Item Website Specification"):
diff --git a/erpnext/public/scss/shopping_cart.scss b/erpnext/public/scss/shopping_cart.scss
index 62f091d503e..09a3de6a3de 100644
--- a/erpnext/public/scss/shopping_cart.scss
+++ b/erpnext/public/scss/shopping_cart.scss
@@ -90,6 +90,17 @@ body.product-page {
color: var(--gray-500);
}
+ .no-image-list {
+ @include flex(flex, center, center, null);
+ height: 150px;
+ background: var(--gray-100);
+ border-radius: var(--border-radius);
+ font-size: 2rem;
+ color: var(--gray-500);
+ margin-top: 15px;
+ margin-bottom: 15px;
+ }
+
.product-title {
font-size: 14px;
color: var(--gray-800);
@@ -188,7 +199,7 @@ body.product-page {
max-width: 50%;
.btn-add-to-cart {
- font-size: var(--text-base);
+ font-size: 14px;
}
}
@@ -201,7 +212,7 @@ body.product-page {
max-width: 90% !important;
.btn-add-to-cart {
- font-size: var(--text-base);
+ font-size: 14px;
}
}
}
@@ -284,7 +295,7 @@ body.product-page {
.formatted-price {
color: var(--text-muted);
- font-size: var(--text-base);
+ font-size: 14px;
}
}
@@ -410,7 +421,7 @@ body.product-page {
}
.total-discount {
- font-size: var(--text-base);
+ font-size: 14px;
color: var(--primary-color) !important;
}
@@ -456,23 +467,23 @@ body.product-page {
.cart-items {
.item-title {
- font-size: var(--text-base);
+ font-size: 14px;
font-weight: 500;
color: var(--text-color);
}
.item-subtitle {
color: var(--text-muted);
- font-size: var(--text-md);
+ font-size: 13px;
}
.item-subtotal {
- font-size: var(--text-base);
+ font-size: 14px;
font-weight: 500;
}
.sm-item-subtotal {
- font-size: var(--text-base);
+ font-size: 14px;
font-weight: 500;
display: none;
@@ -482,7 +493,7 @@ body.product-page {
}
.item-rate {
- font-size: var(--text-md);
+ font-size: 13px;
color: var(--text-muted);
}
@@ -558,7 +569,7 @@ body.product-page {
.cart-qty {
height: 28px;
- font-size: var(--text-md);
+ font-size: 13px;
}
}
@@ -583,7 +594,7 @@ body.product-page {
.address-card {
.card-title {
- font-size: var(--text-base);
+ font-size: 14px;
font-weight: 500;
}
@@ -592,12 +603,12 @@ body.product-page {
}
.card-text {
- font-size: var(--text-md);
+ font-size: 13px;
color: var(--gray-700);
}
.card-link {
- font-size: var(--text-md);
+ font-size: 13px;
svg use {
stroke: var(--blue-500);
@@ -703,6 +714,7 @@ body.product-page {
color: var(--primary-color);
background-color: transparent;
border: 1px solid var(--blue-500);
+ font-size: 13px;
&:hover {
background-color: var(--primary-color);
@@ -714,6 +726,7 @@ body.product-page {
background-color: var(--dark-green-400);
color: white;
border: 2px solid var(--green-300);
+ font-size: 13px;
&:hover {
color: white;
@@ -725,6 +738,7 @@ body.product-page {
background-color: white;
border: 1px solid var(--blue-500);
--icon-stroke: var(--blue-500);
+ font-size: 14px;
&:hover {
background-color: var(--blue-500);
@@ -736,6 +750,7 @@ body.product-page {
.remove-wish {
background-color: var(--gray-200);
position: absolute;
+ cursor: pointer;
top:10px;
right: 20px;
border-radius: 50%;
@@ -862,4 +877,12 @@ body.product-page {
.brand-line {
color: gray;
+}
+
+.btn-next, .btn-prev {
+ font-size: 14px;
+}
+
+.font-md {
+ font-size: 14px !important;
}
\ No newline at end of file
diff --git a/erpnext/templates/generators/item/item_add_to_cart.html b/erpnext/templates/generators/item/item_add_to_cart.html
index d42453dacd9..d3bc097d8ec 100644
--- a/erpnext/templates/generators/item/item_add_to_cart.html
+++ b/erpnext/templates/generators/item/item_add_to_cart.html
@@ -79,7 +79,7 @@
{% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock) %}
{{ _("View in Cart") }}
diff --git a/erpnext/templates/generators/item/item_inquiry.html b/erpnext/templates/generators/item/item_inquiry.html
index 83653b68218..72b41676e7a 100644
--- a/erpnext/templates/generators/item/item_inquiry.html
+++ b/erpnext/templates/generators/item/item_inquiry.html
@@ -1,9 +1,9 @@
{% if shopping_cart and shopping_cart.cart_settings.enabled %}
{% set cart_settings = shopping_cart.cart_settings %}
- {% if cart_settings.show_contact_us_button | int %}
-
+ {% if cart_settings.show_contact_us_button | int %}
+
{% endif %}