diff --git a/erpnext/e_commerce/product_grid.js b/erpnext/e_commerce/product_grid.js
index d29f62f9370..b46e0d983a3 100644
--- a/erpnext/e_commerce/product_grid.js
+++ b/erpnext/e_commerce/product_grid.js
@@ -61,7 +61,7 @@ erpnext.ProductGrid = class {
get_card_body_html(item, title, settings) {
let body_html = `
-
+
`;
body_html += this.get_title(item, title);
@@ -76,7 +76,7 @@ erpnext.ProductGrid = class {
}
- body_html += `
`; // close div on line 50
+ body_html += `
`;
body_html += `
${ item.item_group || '' }
`;
if (item.formatted_price) {
@@ -145,7 +145,7 @@ erpnext.ProductGrid = class {
get_stock_availability(item, settings) {
if (!item.has_variants && !item.in_stock && settings.show_stock_availability) {
- return `
Out of stock`;
+ return `
${ __("Out of stock") }`;
}
return ``;
}
diff --git a/erpnext/e_commerce/product_list.js b/erpnext/e_commerce/product_list.js
index 03cef604f2d..822a9efe193 100644
--- a/erpnext/e_commerce/product_list.js
+++ b/erpnext/e_commerce/product_list.js
@@ -126,7 +126,10 @@ erpnext.ProductList = class {
get_stock_availability(item, settings) {
if (!item.has_variants && !item.in_stock && settings.show_stock_availability) {
- return `
Out of stock`;
+ return `
+
+
${ __("Out of stock") }
+ `;
}
return ``;
}
diff --git a/erpnext/public/scss/shopping_cart.scss b/erpnext/public/scss/shopping_cart.scss
index 05a69aea916..612a05ed547 100644
--- a/erpnext/public/scss/shopping_cart.scss
+++ b/erpnext/public/scss/shopping_cart.scss
@@ -193,6 +193,10 @@ body.product-page {
.wishlist-card {
padding: var(--padding-sm);
min-width: 260px;
+ .card-body-flex {
+ display: flex;
+ flex-direction: column;
+ }
}
}
@@ -974,30 +978,18 @@ body.product-page {
float: right;
}
-.wishlist-cart-not-added {
- color: var(--blue-500);
- background-color: white;
- border: 1px solid var(--blue-500);
- --icon-stroke: var(--blue-500);
- font-size: 14px;
-
- &:hover {
- background-color: var(--blue-500);
- color: white;
- --icon-stroke: white;
- }
-}
-
.remove-wish {
- background-color: var(--gray-200);
+ background-color: white;
position: absolute;
cursor: pointer;
top:10px;
right: 20px;
+ width: 32px;
+ height: 32px;
+
border-radius: 50%;
border: 1px solid var(--gray-100);
- width: 25px;
- height: 25px;
+ box-shadow: 0px 2px 6px rgba(17, 43, 66, 0.08), 0px 1px 4px rgba(17, 43, 66, 0.1);
}
.wish-removed {
diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html
index 07150defeab..47281a24adb 100644
--- a/erpnext/templates/includes/macros.html
+++ b/erpnext/templates/includes/macros.html
@@ -145,9 +145,9 @@
{%- macro wishlist_card(item, settings) %}
{%- set title = item.web_item_name or ''-%}
-{%- set title = title[:50] + "..." if title|len > 50 else title -%}
+{%- set title = title[:90] + "..." if title|len > 90 else title -%}
-
+
@@ -173,18 +171,19 @@
{%- endmacro -%}
{%- macro wishlist_card_body(item, title, settings) %}
-
-
+
+
{{ title or ''}}
+
{{ item.item_group or '' }}
- {{ item.formatted_price or '' }}
+ {{ item.get("formatted_price") or '' }}
{% if item.get("formatted_mrp") %}
-
+
{{ item.formatted_mrp }}
-
+
{{ item.discount }} OFF
{% endif %}
@@ -192,7 +191,8 @@
{% if (item.available and settings.show_stock_availability) or (not settings.show_stock_availability) %}
-