From 3f0687f636e93e9992fb0d0ec63eaae63f3ad673 Mon Sep 17 00:00:00 2001 From: Stacy Date: Thu, 22 Feb 2024 10:21:24 +0800 Subject: [PATCH] Product Page Related Products & Shop All Collection Page --- product-left-sidebar.php | 106 +++++++++++++++++++++++++++++------- shop-list-left-sidebar2.php | 42 +++++++++++--- 2 files changed, 120 insertions(+), 28 deletions(-) diff --git a/product-left-sidebar.php b/product-left-sidebar.php index a325fa5..1e39dd0 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -196,6 +196,26 @@ if (isset($_GET['id'])) { display: block; margin: 0 auto; } + + /* 02-21-2024 Stacy added css for addtocart & wishlist */ + .ec-product-inner .ec-pro-image .ec-pro-actions .add-to-cart { + width: 35px; + position: absolute; + right: 15px; + bottom: 36px; + margin: 0; + padding: 0; + font-size: 0; + border-radius: 10px 10px 0 0; + } + + .ec-product-inner .ec-pro-image .ec-pro-actions .wishlist { + position: absolute; + right: 15px; + bottom: 0; + border-radius: 0 0 10px 10px; + } + /* 02-21-2024 Stacy added css for addtocart & wishlist */ @@ -1434,6 +1454,8 @@ foreach ($variation_details as $index => $variation) { $similar_products = array_values($array); for ($x = 0; $x < 4 && $x < count($similar_products); $x++) { $pid = rand(0, count($similar_products) - 1); + #02-21-2024 Stacy added + $vendorOfProduct = getVendorbyId($similar_products[$pid]['vendor_api_id']); ?> @@ -1441,34 +1463,65 @@ foreach ($variation_details as $index => $variation) {
- + + + "> " /> " /> - 20% - -
+ + + + + + + +
+ +
+
-
">
-
+ + +
">
+ + + + +
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an unknown printer took a galley.
- $27.00 - $22.00 + + 0) : ?> + + + + + + Inquire + + Inquire + + + + -
+ + +
@@ -1633,15 +1687,17 @@ foreach ($variation_details as $index => $variation) { -
- payment image -
-

Someone in new just bought

-
stylish baby shoes
-

10 Minutes ago

-
- × -
+ + + @@ -1858,6 +1914,16 @@ foreach ($variation_details as $index => $variation) { + + + '; + } else { + echo ''; + } + ?> + \ No newline at end of file diff --git a/shop-list-left-sidebar2.php b/shop-list-left-sidebar2.php index be80324..c4a9748 100644 --- a/shop-list-left-sidebar2.php +++ b/shop-list-left-sidebar2.php @@ -200,26 +200,51 @@ if ($_SESSION["userId"] <> "") {
-
"> +
">
-
+ + + + + + +
+ +
-
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an unknown printer took a galley.
+ + 0) : ?> + + + + + + Inquire + + Inquire + + + + -
+ + +
-- 2.40.1