+ {/* Image */}
+
{product.image ? (

) : (
-
+
No Image
)}
+ {/* Sale Badge */}
+ {elements.sale_badges && product.on_sale && discount && (
+
+ {discount}
+
+ )}
+
{/* Wishlist Button */}
{showWishlist && (
-
+
)}
+
+ {/* Hover/Overlay Button */}
+ {showButtonOnHover && (
+
+
+
+ )}
-
-
{product.name}
-
- {formatPrice(product.price)}
+ {/* Content */}
+
+
+ {product.name}
+
+
+ {/* Price */}
+
+ {product.on_sale && product.regular_price ? (
+ <>
+
+ {formatPrice(product.sale_price || product.price)}
+
+
+ {formatPrice(product.regular_price)}
+
+ >
+ ) : (
+
+ {formatPrice(product.price)}
+
+ )}
-
+
+ {/* Add to Cart Button */}
+ {!showButtonOnHover && (
+
+ )}
diff --git a/customer-spa/src/pages/Account/components/AccountLayout.tsx b/customer-spa/src/pages/Account/components/AccountLayout.tsx
index 4611a99..093abdd 100644
--- a/customer-spa/src/pages/Account/components/AccountLayout.tsx
+++ b/customer-spa/src/pages/Account/components/AccountLayout.tsx
@@ -201,7 +201,8 @@ export function AccountLayout({ children }: AccountLayoutProps) {
);
// Responsive layout: Tabs on mobile, Sidebar on desktop
-
+ return (
+
{/* Mobile: Tab Navigation */}
{renderTabNav()}
@@ -216,6 +217,7 @@ export function AccountLayout({ children }: AccountLayoutProps) {
-
+
+ );
}
diff --git a/includes/Core/Notifications/EmailRenderer.php b/includes/Core/Notifications/EmailRenderer.php
index 8e5a32f..e84e3d8 100644
--- a/includes/Core/Notifications/EmailRenderer.php
+++ b/includes/Core/Notifications/EmailRenderer.php
@@ -195,7 +195,7 @@ class EmailRenderer
];
// Order variables
- if ($data instanceof WC_Order) {
+ if ($data instanceof \WC_Order) {
// Calculate estimated delivery (3-5 business days from now)
$estimated_delivery = date('F j', strtotime('+3 days')) . '-' . date('j', strtotime('+5 days'));
@@ -289,7 +289,7 @@ class EmailRenderer
}
// Product variables
- if ($data instanceof WC_Product) {
+ if ($data instanceof \WC_Product) {
$variables = array_merge($variables, [
'product_id' => $data->get_id(),
'product_name' => $data->get_name(),
@@ -302,7 +302,7 @@ class EmailRenderer
}
// Customer variables
- if ($data instanceof WC_Customer) {
+ if ($data instanceof \WC_Customer) {
// Get temp password from user meta (stored during auto-registration)
$user_temp_password = get_user_meta($data->get_id(), '_woonoow_temp_password', true);