From 9df8dc7e6ea17b7bae94019fa1e3e085db21c607 Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Thu, 30 Jul 2020 16:45:23 +0200
Subject: [PATCH 1/9] Add Product Display Select Options: Up-Sell Products,
Related Products, Cross-Sell Products
---
composer.json | 4 +-
popup-admin/Model/Config/Source/Carousel.php | 10 ++-
popup-display/CustomerData/PopupCartData.php | 73 +++++++++++++++++++-
3 files changed, 82 insertions(+), 5 deletions(-)
diff --git a/composer.json b/composer.json
index c465ed0..9b9792a 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
]
},
"type": "magento2-metapackage",
- "version": "1.0.0",
+ "version": "1.0.0.1",
"authors": [
{
"name": "Andresa Martins",
@@ -48,4 +48,4 @@
"url": "https://repo.magento.com/"
}
]
-}
\ No newline at end of file
+}
diff --git a/popup-admin/Model/Config/Source/Carousel.php b/popup-admin/Model/Config/Source/Carousel.php
index f8e050f..1b6823b 100644
--- a/popup-admin/Model/Config/Source/Carousel.php
+++ b/popup-admin/Model/Config/Source/Carousel.php
@@ -23,7 +23,10 @@ public function toOptionArray()
return [
['value' => '_bestSellerProducts', 'label' => __('Best Sellers')],
['value' => '_latestProducts', 'label' => __('Latest Products')],
- ['value' => '_randomProducts', 'label' => __('Random Products')]
+ ['value' => '_randomProducts', 'label' => __('Random Products')],
+ ['value' => '_upSellingProducts', 'label' => __('Up-Sell Products')],
+ ['value' => '_relatedProducts', 'label' => __('Related Products')],
+ ['value' => '_crossSellProducts', 'label' => __('Cross-Sell Products')]
];
}
@@ -37,7 +40,10 @@ public function toArray()
return [
'_bestSellerProducts' => __('Best Sellers'),
'_latestProducts' => __('Latest Products'),
- '_randomProducts' => __('Random Products')
+ '_randomProducts' => __('Random Products'),
+ '_upSellingProducts' => __('Up-Sell Products'),
+ '_relatedProducts' => __('Related Products'),
+ '_crossSellProducts' => __('Cross-Sell Products')
];
}
}
diff --git a/popup-display/CustomerData/PopupCartData.php b/popup-display/CustomerData/PopupCartData.php
index 13ab714..2d065e6 100644
--- a/popup-display/CustomerData/PopupCartData.php
+++ b/popup-display/CustomerData/PopupCartData.php
@@ -21,6 +21,8 @@
use Magento\Framework\Pricing\Helper\Data as PricingHelper;
use Magento\Sales\Model\ResourceModel\Report\Bestsellers\CollectionFactory as BestSellersCollectionFactory;
use Prestafy\PopupDisplay\Helper\Data as Helper;
+use Magento\Checkout\Model\Session as CheckoutSession;
+use Magento\Catalog\Api\ProductRepositoryInterface as ProductRepositoryInterface;
/**
* PopupCart source
@@ -73,6 +75,13 @@ class PopupCartData implements SectionSourceInterface
*/
protected $bestSellersCollectionFactory;
+ /**
+ * @var \Magento\Checkout\Model\Session
+ */
+ protected $checkoutSession;
+
+ protected $productRepository;
+
/**
* @param CollectionFactory $collectionFactory
* @param Image $catalogImage
@@ -81,6 +90,9 @@ class PopupCartData implements SectionSourceInterface
* @param Visibility $productVisibility
* @param CartHelper $cartHelper
* @param Helper $helper
+ * @param BestSellersCollectionFactory $bestSellersCollectionFactory
+ * @param CheckoutSession $checkoutSession
+ * @param ProductRepositoryInterface $productRepository
* @codeCoverageIgnore
*/
public function __construct(
@@ -91,7 +103,9 @@ public function __construct(
Visibility $productVisibility,
CartHelper $cartHelper,
Helper $helper,
- BestSellersCollectionFactory $bestSellersCollectionFactory
+ BestSellersCollectionFactory $bestSellersCollectionFactory,
+ CheckoutSession $checkoutSession,
+ ProductRepositoryInterface $productRepository
)
{
$this->collectionFactory = $collectionFactory;
@@ -102,6 +116,8 @@ public function __construct(
$this->cartHelper = $cartHelper;
$this->helper = $helper;
$this->bestSellersCollectionFactory = $bestSellersCollectionFactory;
+ $this->checkoutSession = $checkoutSession;
+ $this->productRepository = $productRepository;
$this->_initCollection();
}
@@ -221,4 +237,59 @@ private function _bestSellerProducts()
$this->collection->addIdFilter($productIds);
}
}
+
+ /**
+ * Create collection with UpSelling products
+ */
+ private function _upSellingProducts()
+ {
+ $productIds = [];
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $upSellProducts = $product->getUpSellProducts();
+
+ foreach ($upSellProducts as $upSellProduct) {
+ $productIds[] = $upSellProduct->getId();
+ }
+
+ if (empty($productIds)) {
+ $this->_randomProducts();
+ } else {
+ $this->collection->addIdFilter($productIds);
+ }
+ }
+
+ private function _relatedProducts()
+ {
+ $productIds = [];
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $relatedProducts = $product->getRelatedProducts();
+
+ foreach ($relatedProducts as $relatedProduct) {
+ $productIds[] = $relatedProduct->getId();
+ }
+
+ if (empty($productIds)) {
+ $this->_randomProducts();
+ } else {
+ $this->collection->addIdFilter($productIds);
+ }
+ }
+
+ private function _crossSellProducts()
+ {
+ $productIds = [];
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $crossSellProducts = $product->getCrossSellProducts();
+
+ foreach ($crossSellProducts as $crossSellProduct) {
+ $productIds[] = $crossSellProduct->getId();
+ }
+
+ if (empty($productIds)) {
+ $this->_randomProducts();
+ } else {
+ $this->collection->addIdFilter($productIds);
+ }
+ }
+
}
From 06863747d319fd9717069417899bac37f1f9347d Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 4 Aug 2020 16:27:05 +0200
Subject: [PATCH 2/9] add i18n Translation change popup content template
---
composer.json | 2 +-
popup-admin/Model/Config/Source/Carousel.php | 2 +-
popup-display/CustomerData/PopupCartData.php | 52 +++++++++----------
popup-display/i18n/de_DE.csv | 7 +++
.../view/frontend/web/template/popup.html | 36 +++++++++----
5 files changed, 61 insertions(+), 38 deletions(-)
create mode 100644 popup-display/i18n/de_DE.csv
diff --git a/composer.json b/composer.json
index 9b9792a..a0c8878 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
]
},
"type": "magento2-metapackage",
- "version": "1.0.0.1",
+ "version": "1.0.0.2",
"authors": [
{
"name": "Andresa Martins",
diff --git a/popup-admin/Model/Config/Source/Carousel.php b/popup-admin/Model/Config/Source/Carousel.php
index 1b6823b..e448c1d 100644
--- a/popup-admin/Model/Config/Source/Carousel.php
+++ b/popup-admin/Model/Config/Source/Carousel.php
@@ -24,7 +24,7 @@ public function toOptionArray()
['value' => '_bestSellerProducts', 'label' => __('Best Sellers')],
['value' => '_latestProducts', 'label' => __('Latest Products')],
['value' => '_randomProducts', 'label' => __('Random Products')],
- ['value' => '_upSellingProducts', 'label' => __('Up-Sell Products')],
+ ['value' => '_upSellingProducts', 'label' => __('Up-Sell Products')],
['value' => '_relatedProducts', 'label' => __('Related Products')],
['value' => '_crossSellProducts', 'label' => __('Cross-Sell Products')]
];
diff --git a/popup-display/CustomerData/PopupCartData.php b/popup-display/CustomerData/PopupCartData.php
index 2d065e6..d2219b3 100644
--- a/popup-display/CustomerData/PopupCartData.php
+++ b/popup-display/CustomerData/PopupCartData.php
@@ -29,7 +29,8 @@
*/
class PopupCartData implements SectionSourceInterface
{
- const CONFIG_PRODUCT_LIMIT = 4;
+ //const CONFIG_PRODUCT_LIMIT = 4;
+ const CONFIG_PRODUCT_LIMIT = 2;
const CONFIG_COLLECTION_TYPE = 'cartpopup/settings/product_carousel';
/**
@@ -75,12 +76,12 @@ class PopupCartData implements SectionSourceInterface
*/
protected $bestSellersCollectionFactory;
- /**
+ /**
* @var \Magento\Checkout\Model\Session
*/
- protected $checkoutSession;
+ protected $checkoutSession;
- protected $productRepository;
+ protected $productRepository;
/**
* @param CollectionFactory $collectionFactory
@@ -90,9 +91,9 @@ class PopupCartData implements SectionSourceInterface
* @param Visibility $productVisibility
* @param CartHelper $cartHelper
* @param Helper $helper
- * @param BestSellersCollectionFactory $bestSellersCollectionFactory
- * @param CheckoutSession $checkoutSession
- * @param ProductRepositoryInterface $productRepository
+ * @param BestSellersCollectionFactory $bestSellersCollectionFactory
+ * @param CheckoutSession $checkoutSession
+ * @param ProductRepositoryInterface $productRepository
* @codeCoverageIgnore
*/
public function __construct(
@@ -104,8 +105,8 @@ public function __construct(
CartHelper $cartHelper,
Helper $helper,
BestSellersCollectionFactory $bestSellersCollectionFactory,
- CheckoutSession $checkoutSession,
- ProductRepositoryInterface $productRepository
+ CheckoutSession $checkoutSession,
+ ProductRepositoryInterface $productRepository
)
{
$this->collectionFactory = $collectionFactory;
@@ -116,8 +117,8 @@ public function __construct(
$this->cartHelper = $cartHelper;
$this->helper = $helper;
$this->bestSellersCollectionFactory = $bestSellersCollectionFactory;
- $this->checkoutSession = $checkoutSession;
- $this->productRepository = $productRepository;
+ $this->checkoutSession = $checkoutSession;
+ $this->productRepository = $productRepository;
$this->_initCollection();
}
@@ -136,7 +137,6 @@ public function getSectionData()
'cartTotalCount' => $this->cartHelper->getSummaryCount(),
'products' => $this->_getCollection()
];
-
return $output;
}
@@ -238,14 +238,14 @@ private function _bestSellerProducts()
}
}
- /**
+ /**
* Create collection with UpSelling products
*/
private function _upSellingProducts()
{
$productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $upSellProducts = $product->getUpSellProducts();
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $upSellProducts = $product->getUpSellProducts();
foreach ($upSellProducts as $upSellProduct) {
$productIds[] = $upSellProduct->getId();
@@ -258,11 +258,11 @@ private function _upSellingProducts()
}
}
- private function _relatedProducts()
- {
- $productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $relatedProducts = $product->getRelatedProducts();
+ private function _relatedProducts()
+ {
+ $productIds = [];
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $relatedProducts = $product->getRelatedProducts();
foreach ($relatedProducts as $relatedProduct) {
$productIds[] = $relatedProduct->getId();
@@ -273,13 +273,13 @@ private function _relatedProducts()
} else {
$this->collection->addIdFilter($productIds);
}
- }
+ }
- private function _crossSellProducts()
- {
+ private function _crossSellProducts()
+ {
$productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $crossSellProducts = $product->getCrossSellProducts();
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $crossSellProducts = $product->getCrossSellProducts();
foreach ($crossSellProducts as $crossSellProduct) {
$productIds[] = $crossSellProduct->getId();
@@ -290,6 +290,6 @@ private function _crossSellProducts()
} else {
$this->collection->addIdFilter($productIds);
}
- }
+ }
}
diff --git a/popup-display/i18n/de_DE.csv b/popup-display/i18n/de_DE.csv
new file mode 100644
index 0000000..b2482a8
--- /dev/null
+++ b/popup-display/i18n/de_DE.csv
@@ -0,0 +1,7 @@
+"A new item has been added to your Shopping Cart. ","Der Artikel wurde Ihrem Warenkorb hinzugefügt. "
+"You now have %s items in your Shopping Cart.","Sie haben %s Artikel in Ihrem Warenkorb."
+"View Shopping Cart","Warenkorb ansehen"
+"Continue Shopping","Mit dem Einkaufen fortfahren"
+"Other Items You Might Be Interested In:","Das könnte Sie auch interessieren:"
+Close,Schließen
+"Incl. Tax, plus shipping","Inkl. MwSt., zzgl. Versand"
diff --git a/popup-display/view/frontend/web/template/popup.html b/popup-display/view/frontend/web/template/popup.html
index 66bcd11..e01eec8 100644
--- a/popup-display/view/frontend/web/template/popup.html
+++ b/popup-display/view/frontend/web/template/popup.html
@@ -19,21 +19,37 @@
+
-
+
-
From 91b39518731abb5e4ba2528b7362a7e076b2d1b2 Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 4 Aug 2020 16:44:00 +0200
Subject: [PATCH 3/9] popup template changes
---
popup-display/view/frontend/web/template/popup.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/popup-display/view/frontend/web/template/popup.html b/popup-display/view/frontend/web/template/popup.html
index e01eec8..8eb8255 100644
--- a/popup-display/view/frontend/web/template/popup.html
+++ b/popup-display/view/frontend/web/template/popup.html
@@ -34,7 +34,7 @@
-
+
From 93fdb1412e125123ce00f2656295315787fb8e6f Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Wed, 5 Aug 2020 11:07:58 +0200
Subject: [PATCH 4/9] Add Comment to "Product Display" Selection
---
popup-admin/etc/adminhtml/system.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/popup-admin/etc/adminhtml/system.xml b/popup-admin/etc/adminhtml/system.xml
index eb7cb88..a670f6a 100644
--- a/popup-admin/etc/adminhtml/system.xml
+++ b/popup-admin/etc/adminhtml/system.xml
@@ -25,6 +25,7 @@
showInWebsite="1" showInStore="1" canRestore="1">
Prestafy\PopupAdmin\Model\Config\Source\Carousel
+ If no products are found in the selection, random products are always displayed.
From 25b114c7eeb79bac397e45e9521c10d6ca91cbaa Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 18 Aug 2020 15:52:34 +0200
Subject: [PATCH 5/9] added check if checkoutSession->getLastAddedProductId()
is empty
---
composer.json | 2 +-
popup-display/CustomerData/PopupCartData.php | 38 +++++++++++---------
2 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/composer.json b/composer.json
index a0c8878..cf74bbf 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
]
},
"type": "magento2-metapackage",
- "version": "1.0.0.2",
+ "version": "1.0.0.3",
"authors": [
{
"name": "Andresa Martins",
diff --git a/popup-display/CustomerData/PopupCartData.php b/popup-display/CustomerData/PopupCartData.php
index d2219b3..e6ea55f 100644
--- a/popup-display/CustomerData/PopupCartData.php
+++ b/popup-display/CustomerData/PopupCartData.php
@@ -244,12 +244,14 @@ private function _bestSellerProducts()
private function _upSellingProducts()
{
$productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $upSellProducts = $product->getUpSellProducts();
+ if (!empty($this->checkoutSession->getLastAddedProductId())) {
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $upSellProducts = $product->getUpSellProducts();
- foreach ($upSellProducts as $upSellProduct) {
- $productIds[] = $upSellProduct->getId();
- }
+ foreach ($upSellProducts as $upSellProduct) {
+ $productIds[] = $upSellProduct->getId();
+ }
+ }
if (empty($productIds)) {
$this->_randomProducts();
@@ -261,12 +263,14 @@ private function _upSellingProducts()
private function _relatedProducts()
{
$productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $relatedProducts = $product->getRelatedProducts();
+ if (!empty($this->checkoutSession->getLastAddedProductId())) {
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $relatedProducts = $product->getRelatedProducts();
- foreach ($relatedProducts as $relatedProduct) {
- $productIds[] = $relatedProduct->getId();
- }
+ foreach ($relatedProducts as $relatedProduct) {
+ $productIds[] = $relatedProduct->getId();
+ }
+ }
if (empty($productIds)) {
$this->_randomProducts();
@@ -278,12 +282,14 @@ private function _relatedProducts()
private function _crossSellProducts()
{
$productIds = [];
- $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
- $crossSellProducts = $product->getCrossSellProducts();
-
- foreach ($crossSellProducts as $crossSellProduct) {
- $productIds[] = $crossSellProduct->getId();
- }
+ if (!empty($this->checkoutSession->getLastAddedProductId())) {
+ $product = $this->productRepository->getById($this->checkoutSession->getLastAddedProductId());
+ $crossSellProducts = $product->getCrossSellProducts();
+
+ foreach ($crossSellProducts as $crossSellProduct) {
+ $productIds[] = $crossSellProduct->getId();
+ }
+ }
if (empty($productIds)) {
$this->_randomProducts();
From 5e81940b4a8e2a7fae0a24faa23da23956ff723b Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 20 Oct 2020 12:38:23 +0200
Subject: [PATCH 6/9] change the number of interest articles shown some
language i18n changes
---
composer.json | 2 +-
popup-display/CustomerData/PopupCartData.php | 3 +--
popup-display/i18n/de_AT.csv | 7 +++++++
popup-display/i18n/de_CH.csv | 7 +++++++
popup-display/i18n/de_DE.csv | 2 +-
popup-display/i18n/de_IT.csv | 7 +++++++
6 files changed, 24 insertions(+), 4 deletions(-)
create mode 100644 popup-display/i18n/de_AT.csv
create mode 100644 popup-display/i18n/de_CH.csv
create mode 100644 popup-display/i18n/de_IT.csv
diff --git a/composer.json b/composer.json
index cf74bbf..f2cc55a 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
]
},
"type": "magento2-metapackage",
- "version": "1.0.0.3",
+ "version": "1.0.0.4",
"authors": [
{
"name": "Andresa Martins",
diff --git a/popup-display/CustomerData/PopupCartData.php b/popup-display/CustomerData/PopupCartData.php
index e6ea55f..c511430 100644
--- a/popup-display/CustomerData/PopupCartData.php
+++ b/popup-display/CustomerData/PopupCartData.php
@@ -29,8 +29,7 @@
*/
class PopupCartData implements SectionSourceInterface
{
- //const CONFIG_PRODUCT_LIMIT = 4;
- const CONFIG_PRODUCT_LIMIT = 2;
+ const CONFIG_PRODUCT_LIMIT = 4;
const CONFIG_COLLECTION_TYPE = 'cartpopup/settings/product_carousel';
/**
diff --git a/popup-display/i18n/de_AT.csv b/popup-display/i18n/de_AT.csv
new file mode 100644
index 0000000..3a5defd
--- /dev/null
+++ b/popup-display/i18n/de_AT.csv
@@ -0,0 +1,7 @@
+"A new item has been added to your Shopping Cart. ","Der Artikel wurde Ihrem Warenkorb hinzugefügt. "
+"You now have %s items in your Shopping Cart.","Sie haben %s Artikel in Ihrem Warenkorb."
+"View Shopping Cart","Warenkorb ansehen"
+"Continue Shopping","Mit dem Einkaufen fortfahren"
+"Other Items You Might Be Interested In:","Kunden, die diesen Artikel gekauft haben, kauften auch:"
+Close,Schließen
+"Incl. Tax, plus shipping","Inkl. MwSt., zzgl. Versand"
diff --git a/popup-display/i18n/de_CH.csv b/popup-display/i18n/de_CH.csv
new file mode 100644
index 0000000..3a5defd
--- /dev/null
+++ b/popup-display/i18n/de_CH.csv
@@ -0,0 +1,7 @@
+"A new item has been added to your Shopping Cart. ","Der Artikel wurde Ihrem Warenkorb hinzugefügt. "
+"You now have %s items in your Shopping Cart.","Sie haben %s Artikel in Ihrem Warenkorb."
+"View Shopping Cart","Warenkorb ansehen"
+"Continue Shopping","Mit dem Einkaufen fortfahren"
+"Other Items You Might Be Interested In:","Kunden, die diesen Artikel gekauft haben, kauften auch:"
+Close,Schließen
+"Incl. Tax, plus shipping","Inkl. MwSt., zzgl. Versand"
diff --git a/popup-display/i18n/de_DE.csv b/popup-display/i18n/de_DE.csv
index b2482a8..3a5defd 100644
--- a/popup-display/i18n/de_DE.csv
+++ b/popup-display/i18n/de_DE.csv
@@ -2,6 +2,6 @@
"You now have %s items in your Shopping Cart.","Sie haben %s Artikel in Ihrem Warenkorb."
"View Shopping Cart","Warenkorb ansehen"
"Continue Shopping","Mit dem Einkaufen fortfahren"
-"Other Items You Might Be Interested In:","Das könnte Sie auch interessieren:"
+"Other Items You Might Be Interested In:","Kunden, die diesen Artikel gekauft haben, kauften auch:"
Close,Schließen
"Incl. Tax, plus shipping","Inkl. MwSt., zzgl. Versand"
diff --git a/popup-display/i18n/de_IT.csv b/popup-display/i18n/de_IT.csv
new file mode 100644
index 0000000..b2482a8
--- /dev/null
+++ b/popup-display/i18n/de_IT.csv
@@ -0,0 +1,7 @@
+"A new item has been added to your Shopping Cart. ","Der Artikel wurde Ihrem Warenkorb hinzugefügt. "
+"You now have %s items in your Shopping Cart.","Sie haben %s Artikel in Ihrem Warenkorb."
+"View Shopping Cart","Warenkorb ansehen"
+"Continue Shopping","Mit dem Einkaufen fortfahren"
+"Other Items You Might Be Interested In:","Das könnte Sie auch interessieren:"
+Close,Schließen
+"Incl. Tax, plus shipping","Inkl. MwSt., zzgl. Versand"
From 7dd323fcec50e1768088245f67bfa7345f4c82b5 Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 20 Oct 2020 16:08:36 +0200
Subject: [PATCH 7/9] added some css and preparation for use with _module.less
---
popup-display/view/frontend/web/css/cartpopup.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/popup-display/view/frontend/web/css/cartpopup.css b/popup-display/view/frontend/web/css/cartpopup.css
index 829f713..d4d7159 100644
--- a/popup-display/view/frontend/web/css/cartpopup.css
+++ b/popup-display/view/frontend/web/css/cartpopup.css
@@ -103,6 +103,7 @@
@media only screen and (max-width: 767px) {
.no-header-footer .modal-product-list li {
width: 50%;
+ height: 280px;
}
.no-header-footer .continue-shopping {
From 638f85cc0ad02de60162305bf5a693b25cee11f4 Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 20 Oct 2020 16:10:44 +0200
Subject: [PATCH 8/9] added _module.less
---
.../view/frontend/web/css/source/_module.less | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 popup-display/view/frontend/web/css/source/_module.less
diff --git a/popup-display/view/frontend/web/css/source/_module.less b/popup-display/view/frontend/web/css/source/_module.less
new file mode 100644
index 0000000..298ecb6
--- /dev/null
+++ b/popup-display/view/frontend/web/css/source/_module.less
@@ -0,0 +1,34 @@
+// Cart popup component styles
+//
+// @category Prestafy
+// @package Prestafy_PopupDisplay
+// @author Andresa Martins
+// @copyright Copyright (c) 2019 Prestafy eCommerce Solutions (https://www.prestafy.com.br)
+// @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
+//
+
+// This is for styles that are used in both mobile and desktop views
+// Common
+//--------------------------------------
+//& when (@media-common = true) {
+//
+//}
+
+
+// This is for styles that will only be included in the styles-l.css file.
+// Desktop
+// _____________________________________________
+
+//.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
+//
+//}
+
+
+// And this is for all mobile styles
+// Mobile
+// _____________________________________________
+
+//.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
+//
+//}
+
From 11d9c30aaf331d583cce2519414462781fc710d1 Mon Sep 17 00:00:00 2001
From: bst2002git
Date: Tue, 20 Oct 2020 16:12:06 +0200
Subject: [PATCH 9/9] some formating
---
popup-display/view/frontend/web/css/cartpopup.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/popup-display/view/frontend/web/css/cartpopup.css b/popup-display/view/frontend/web/css/cartpopup.css
index d4d7159..ffc626b 100644
--- a/popup-display/view/frontend/web/css/cartpopup.css
+++ b/popup-display/view/frontend/web/css/cartpopup.css
@@ -103,7 +103,7 @@
@media only screen and (max-width: 767px) {
.no-header-footer .modal-product-list li {
width: 50%;
- height: 280px;
+ height: 280px;
}
.no-header-footer .continue-shopping {