Skip to content

Commit 2aa5b92

Browse files
authored
Merge pull request #95 from mageplaza/2.4-develop
2.4 develop
2 parents 719f98a + 0cfd14e commit 2aa5b92

File tree

6 files changed

+122
-120
lines changed

6 files changed

+122
-120
lines changed

Block/Adminhtml/Slider/Edit/Tab/Renderer/Category.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ public function getScriptHtml()
165165
*
166166
* @return array
167167
*/
168-
public function getValues()
168+
public function getValues(): array
169169
{
170-
$values = $this->getValue();
170+
$values = (string)$this->getValue();
171171
if (!is_array($values)) {
172172
$values = explode(',', $values);
173173
}

Block/CategoryId.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ public function getProductIdsByCategory()
122122
if (is_array($catIds)) {
123123
$productId = [];
124124

125-
foreach($catIds as $cat)
126-
{
125+
foreach ($catIds as $cat) {
127126
$collection = $this->_productCollectionFactory->create();
128127
$category = $this->_categoryFactory->create()->load($cat);
129128
$collection->addAttributeToSelect('*')->addCategoryFilter($category);
@@ -134,7 +133,7 @@ public function getProductIdsByCategory()
134133

135134
$productIds = array_merge($productIds, $productId);
136135
}
137-
}else {
136+
} else {
138137
$collection = $this->_productCollectionFactory->create();
139138
$category = $this->_categoryFactory->create()->load($catIds);
140139
$collection->addAttributeToSelect('*')->addCategoryFilter($category);

Block/CustomProducts.php

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
use Magento\GroupedProduct\Model\Product\Type\Grouped;
3333
use Mageplaza\Productslider\Helper\Data;
3434

35-
3635
/**
3736
* Class CustomProducts
3837
* @package Mageplaza\Productslider\Block

Block/Widget/Slider.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public function __construct(
8181
Configurable $configurable,
8282
LayoutFactory $layoutFactory,
8383
array $data = []
84-
)
85-
{
84+
) {
8685
parent::__construct(
8786
$context,
8887
$productCollectionFactory,

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "mageplaza/magento-2-product-slider",
33
"description": "Magento 2 Product Slider",
44
"require": {
5-
"mageplaza/module-core": "^1.4.5"
5+
"mageplaza/module-core": "^1.5.1"
66
},
77
"type": "magento2-module",
8-
"version": "4.0.2",
8+
"version": "4.0.3",
99
"license": "proprietary",
1010
"authors": [
1111
{

i18n/en_US.csv

+115-110
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,115 @@
1-
"Screen size max","Screen size max"
2-
"Number of items","Number of items"
3-
Add,Add
4-
Sliders,Sliders
5-
"Create New Slider","Create New Slider"
6-
"Edit Slider '%1'","Edit Slider '%1'"
7-
"New Slider","New Slider"
8-
"Save and Continue Edit","Save and Continue Edit"
9-
Design,Design
10-
Title,Title
11-
Description,Description
12-
"Limit the number of products","Limit the number of products"
13-
"Display additional information","Display additional information"
14-
"Select information or button(s) to display with products.","Select information or button(s) to display with products."
15-
"Is Responsive","Is Responsive"
16-
Yes,Yes
17-
No,No
18-
"Use Config","Use Config"
19-
"Max Items slider","Max Items slider"
20-
"General Information","General Information"
21-
Name,Name
22-
Status,Status
23-
Enable,Enable
24-
Disable,Disable
25-
Position,Position
26-
Type,Type
27-
Categories,Categories
28-
"Store Views","Store Views"
29-
"Customer Groups","Customer Groups"
30-
"Select customer group(s) to display the block to","Select customer group(s) to display the block to"
31-
"Cache Lifetime","Cache Lifetime"
32-
"seconds. 86400 by default, if not set. To refresh instantly, clear the Blocks HTML Output cache.","seconds. 86400 by default, if not set. To refresh instantly, clear the Blocks HTML Output cache."
33-
"From Date","From Date"
34-
From,From
35-
"To Date","To Date"
36-
To,To
37-
"Product ID","Product ID"
38-
Sku,Sku
39-
Price,Price
40-
"Select Products","Select Products"
41-
"Product Slider Information","Product Slider Information"
42-
"The Slider has been deleted.","The Slider has been deleted."
43-
"This Slider no longer exists.","This Slider no longer exists."
44-
"A total of %1 record(s) have been deleted.","A total of %1 record(s) have been deleted."
45-
"Something went wrong while updating status for %1.","Something went wrong while updating status for %1."
46-
"A total of %1 record(s) have been updated.","A total of %1 record(s) have been updated."
47-
"The Slider has been saved.","The Slider has been saved."
48-
"Something went wrong while saving the Slider. %1","Something went wrong while saving the Slider. %1"
49-
"Add to cart button","Add to cart button"
50-
"Review information","Review information"
51-
"All Page","All Page"
52-
"Top of content","Top of content"
53-
"Bottom of content","Bottom of content"
54-
"Top of sidebar","Top of sidebar"
55-
"Bottom of sidebar","Bottom of sidebar"
56-
"Home Page","Home Page"
57-
"Category page","Category page"
58-
"Product page","Product page"
59-
"Shopping Cart Page","Shopping Cart Page"
60-
"New Products","New Products"
61-
"Best Seller Products","Best Seller Products"
62-
"Featured Products","Featured Products"
63-
"Most Viewed Products","Most Viewed Products"
64-
"On Sale Products","On Sale Products"
65-
"Recent Products","Recent Products"
66-
"Select By Category","Select By Category"
67-
"Custom Specific Products","Custom Specific Products"
68-
"End Date must follow Start Date.","End Date must follow Start Date."
69-
Edit,Edit
70-
"Add to Cart","Add to Cart"
71-
"In stock","In stock"
72-
"Out of stock","Out of stock"
73-
"Add to Wish List","Add to Wish List"
74-
"Add to Compare","Add to Compare"
75-
"Product Slider","Product Slider"
76-
"General Configuration","General Configuration"
77-
"Select Yes to enable this module","Select Yes to enable this module"
78-
"Default displayed additional info","Default displayed additional info"
79-
"This default settings will be used when using code to insert the slider","This default settings will be used when using code to insert the slider"
80-
"Slider Design Configuration","Slider Design Configuration"
81-
Responsive,Responsive
82-
"Loop Slider","Loop Slider"
83-
"Select Yes to re-display the slider after it shows the last item","Select Yes to re-display the slider after it shows the last item"
84-
"Margin Between Items","Margin Between Items"
85-
"pixel. This is the distance between two items in the slider","pixel. This is the distance between two items in the slider"
86-
"Next/Prev buttons","Next/Prev buttons"
87-
"Select Yes to display the Next/Pre button in the slider","Select Yes to display the Next/Pre button in the slider"
88-
"Show Dots Navigation","Show Dots Navigation"
89-
"Select Yes to display dot navigation of the slider","Select Yes to display dot navigation of the slider"
90-
"Lazy load images","Lazy load images"
91-
"Select Yes to lazy load images","Select Yes to lazy load images"
92-
Autoplay,Autoplay
93-
"Select Yes to allow auto-displaying the next products","Select Yes to allow auto-displaying the next products"
94-
"Autoplay TimeOut","Autoplay TimeOut"
95-
"ms. This is the time which an item is auto-moved to the left","ms. This is the time which an item is auto-moved to the left"
96-
"Autoplay HoverPause","Autoplay HoverPause"
97-
"Select Yes to stop the slider when hovering the mouse over the slider area","Select Yes to stop the slider when hovering the mouse over the slider area"
98-
"Mageplaza Product Slider","Mageplaza Product Slider"
99-
"Display Page Control","Display Page Control"
100-
"Select Slider","Select Slider"
101-
"Add New Slider","Add New Slider"
102-
Delete,Delete
103-
"Delete Slider","Delete Slider"
104-
"Are you sure you wan't to delete selected Slider?","Are you sure you wan't to delete selected Slider?"
105-
"Change status","Change status"
106-
ID,ID
107-
"Slider Type","Slider Type"
108-
"Slider Location","Slider Location"
109-
"Start Date","Start Date"
110-
"End Date","End Date"
1+
"Screen size max","Screen size max"
2+
"Number of items","Number of items"
3+
Add,Add
4+
Sliders,Sliders
5+
"Create New Slider","Create New Slider"
6+
"Edit Slider '%1'","Edit Slider '%1'"
7+
"New Slider","New Slider"
8+
"Save and Continue Edit","Save and Continue Edit"
9+
Design,Design
10+
Title,Title
11+
Description,Description
12+
"Limit the number of products","Limit the number of products"
13+
"Display additional information","Display additional information"
14+
"Select information or button(s) to display with products.","Select information or button(s) to display with products."
15+
"Is Responsive","Is Responsive"
16+
Yes,Yes
17+
No,No
18+
"Use Config","Use Config"
19+
"Max Items slider","Max Items slider"
20+
"Default: 3 items.","Default: 3 items."
21+
"General Information","General Information"
22+
Name,Name
23+
Status,Status
24+
Enable,Enable
25+
Disable,Disable
26+
Position,Position
27+
Type,Type
28+
Categories,Categories
29+
"Store Views","Store Views"
30+
"Customer Groups","Customer Groups"
31+
"Select customer group(s) to display the block to","Select customer group(s) to display the block to"
32+
"Cache Lifetime","Cache Lifetime"
33+
"seconds. 86400 by default, if not set. To refresh instantly, clear the Blocks HTML Output cache.","seconds. 86400 by default, if not set. To refresh instantly, clear the Blocks HTML Output cache."
34+
"From Date","From Date"
35+
From,From
36+
"To Date","To Date"
37+
To,To
38+
"Product ID","Product ID"
39+
Sku,Sku
40+
Price,Price
41+
"Select Products","Select Products"
42+
"Product Slider Information","Product Slider Information"
43+
"The Slider has been deleted.","The Slider has been deleted."
44+
"This Slider no longer exists.","This Slider no longer exists."
45+
"A total of %1 record(s) have been deleted.","A total of %1 record(s) have been deleted."
46+
"Something went wrong while updating status for %1.","Something went wrong while updating status for %1."
47+
"A total of %1 record(s) have been updated.","A total of %1 record(s) have been updated."
48+
"The Slider has been saved.","The Slider has been saved."
49+
"Something went wrong while saving the Slider. %1","Something went wrong while saving the Slider. %1"
50+
"Add to cart button","Add to cart button"
51+
"Review information","Review information"
52+
"All Page","All Page"
53+
"Top of content","Top of content"
54+
"Bottom of content","Bottom of content"
55+
"Top of sidebar","Top of sidebar"
56+
"Bottom of sidebar","Bottom of sidebar"
57+
"Home Page","Home Page"
58+
"Category page","Category page"
59+
"Product page","Product page"
60+
"Shopping Cart Page","Shopping Cart Page"
61+
"New Products","New Products"
62+
"Best Seller Products","Best Seller Products"
63+
"Featured Products","Featured Products"
64+
"Most Viewed Products","Most Viewed Products"
65+
"On Sale Products","On Sale Products"
66+
"Recent Products","Recent Products"
67+
"Select By Category","Select By Category"
68+
"Custom Specific Products","Custom Specific Products"
69+
"End Date must follow Start Date.","End Date must follow Start Date."
70+
Edit,Edit
71+
"Add to Cart","Add to Cart"
72+
"In stock","In stock"
73+
"Out of stock","Out of stock"
74+
"Add to Wish List","Add to Wish List"
75+
"Add to Compare","Add to Compare"
76+
"Product Slider","Product Slider"
77+
"General Configuration","General Configuration"
78+
"Select <b>Yes</b> to enable this module.<br />
79+
1. It helps to reduce abandonment cart with <a href=""https://www.mageplaza.com/magento-2-one-step-checkout-extension/"" target=""_blank"">One Step Checkout</a>. <br />
80+
2. Magento stores see upwards of 30% revenue 💰 with AVADA. <a href=""https://go.avada.io/mageplaza"">Learn more</a>","Select <b>Yes</b> to enable this module.<br />
81+
1. It helps to reduce abandonment cart with <a href=""https://www.mageplaza.com/magento-2-one-step-checkout-extension/"" target=""_blank"">One Step Checkout</a>. <br />
82+
2. Magento stores see upwards of 30% revenue 💰 with AVADA. <a href=""https://go.avada.io/mageplaza"">Learn more</a>"
83+
"Default displayed additional info","Default displayed additional info"
84+
"This default settings will be used when using code to insert the slider","This default settings will be used when using code to insert the slider"
85+
"Slider Design Configuration","Slider Design Configuration"
86+
Responsive,Responsive
87+
"Loop Slider","Loop Slider"
88+
"Select Yes to re-display the slider after it shows the last item","Select Yes to re-display the slider after it shows the last item"
89+
"Margin Between Items","Margin Between Items"
90+
"pixel. This is the distance between two items in the slider","pixel. This is the distance between two items in the slider"
91+
"Next/Prev buttons","Next/Prev buttons"
92+
"Select Yes to display the Next/Pre button in the slider","Select Yes to display the Next/Pre button in the slider"
93+
"Show Dots Navigation","Show Dots Navigation"
94+
"Select Yes to display dot navigation of the slider","Select Yes to display dot navigation of the slider"
95+
"Lazy load images","Lazy load images"
96+
"Select Yes to lazy load images","Select Yes to lazy load images"
97+
Autoplay,Autoplay
98+
"Select Yes to allow auto-displaying the next products","Select Yes to allow auto-displaying the next products"
99+
"Autoplay TimeOut","Autoplay TimeOut"
100+
"ms. This is the time which an item is auto-moved to the left","ms. This is the time which an item is auto-moved to the left"
101+
"Autoplay HoverPause","Autoplay HoverPause"
102+
"Select Yes to stop the slider when hovering the mouse over the slider area","Select Yes to stop the slider when hovering the mouse over the slider area"
103+
"Mageplaza Product Slider","Mageplaza Product Slider"
104+
"Display Page Control","Display Page Control"
105+
"Select Slider","Select Slider"
106+
"Add New Slider","Add New Slider"
107+
Delete,Delete
108+
"Delete Slider","Delete Slider"
109+
"Are you sure you wan't to delete selected Slider?","Are you sure you wan't to delete selected Slider?"
110+
"Change status","Change status"
111+
ID,ID
112+
"Slider Type","Slider Type"
113+
"Slider Location","Slider Location"
114+
"Start Date","Start Date"
115+
"End Date","End Date"

0 commit comments

Comments
 (0)