Skip to content

Commit 710087a

Browse files
Merge pull request #7 from mageplaza/develop
Develop
2 parents dbe40df + 7d4ec85 commit 710087a

File tree

22 files changed

+1079
-1056
lines changed

22 files changed

+1079
-1056
lines changed

.github/no-response.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Configuration for probot-no-response - https://github.com/probot/no-response
2-
3-
# Number of days of inactivity before an Issue is closed for lack of response
4-
daysUntilClose: 7
5-
# Label requiring a response
6-
responseRequiredLabel: waiting-customer-response
7-
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
8-
closeComment: >
9-
This issue has been automatically closed because there has been no response
10-
to our request for more information from the original author. With only the
11-
information that is currently in the issue, we don't have enough information
12-
to take action. Please reach out if you have or find the answers we need so
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
# Number of days of inactivity before an Issue is closed for lack of response
4+
daysUntilClose: 7
5+
# Label requiring a response
6+
responseRequiredLabel: waiting-customer-response
7+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
8+
closeComment: >
9+
This issue has been automatically closed because there has been no response
10+
to our request for more information from the original author. With only the
11+
information that is currently in the issue, we don't have enough information
12+
to take action. Please reach out if you have or find the answers we need so
1313
that we can investigate further.

.travis.yml

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
language: php
2-
php:
3-
- 7.0
4-
- 7.1
5-
sudo: required
6-
dist: trusty
7-
env:
8-
global:
9-
- COMPOSER_BIN_DIR=~/bin
10-
- INTEGRATION_SETS=3
11-
- NODE_JS_VERSION=6
12-
- MAGENTO_HOST_NAME="magento2.travis"
13-
- COMPOSER_MODULE=mageplaza/module-ajax-layered-navigation
14-
matrix:
15-
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=1
16-
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=2
17-
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=3
18-
- MAGENTO_VERSION=2.2.2 TEST_SUITE=static
19-
- MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static
20-
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=1
21-
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=2
22-
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=3
23-
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=1
24-
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=2
25-
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=3
26-
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=1
27-
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=2
28-
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=3
29-
30-
matrix:
31-
exclude:
32-
- php: 7.0
33-
env: MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static
34-
- php: 7.0
35-
env: MAGENTO_VERSION=2.2.2 TEST_SUITE=static
36-
cache:
37-
apt: true
38-
directories:
39-
- "$HOME/.composer/cache"
40-
- "$HOME/.nvm"
41-
addons:
42-
apt:
43-
packages:
44-
- mysql-server-5.6
45-
- mysql-client-core-5.6
46-
- mysql-client-5.6
47-
- postfix
48-
firefox: '46.0'
49-
hosts:
50-
- magento2.travis
51-
before_install:
52-
- git clone https://github.com/magento/magento2 --branch $MAGENTO_VERSION
53-
- cd magento2
54-
- bash ./dev/travis/before_install.sh
55-
install:
56-
- composer install --no-interaction --prefer-dist
57-
- composer require $COMPOSER_MODULE
58-
before_script:
59-
#- cp -f ${TRAVIS_BUILD_DIR}/dev/tests/integration/phpunit.xml.dist dev/tests/integration/
60-
- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Less/_files/whitelist/common.txt
61-
- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt
62-
- echo "vendor/$COMPOSER_MODULE/**/*.js" > dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/magento.txt
63-
- bash ./dev/travis/before_script.sh
64-
script:
65-
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
66-
- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true
67-
68-
1+
language: php
2+
php:
3+
- 7.0
4+
- 7.1
5+
sudo: required
6+
dist: trusty
7+
env:
8+
global:
9+
- COMPOSER_BIN_DIR=~/bin
10+
- INTEGRATION_SETS=3
11+
- NODE_JS_VERSION=6
12+
- MAGENTO_HOST_NAME="magento2.travis"
13+
- COMPOSER_MODULE=mageplaza/module-ajax-layered-navigation
14+
matrix:
15+
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=1
16+
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=2
17+
- MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=3
18+
- MAGENTO_VERSION=2.2.2 TEST_SUITE=static
19+
- MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static
20+
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=1
21+
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=2
22+
- MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=3
23+
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=1
24+
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=2
25+
- MAGENTO_VERSION=2.2.5 TEST_SUITE=integration INTEGRATION_INDEX=3
26+
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=1
27+
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=2
28+
- MAGENTO_VERSION=2.2.6 TEST_SUITE=integration INTEGRATION_INDEX=3
29+
30+
matrix:
31+
exclude:
32+
- php: 7.0
33+
env: MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static
34+
- php: 7.0
35+
env: MAGENTO_VERSION=2.2.2 TEST_SUITE=static
36+
cache:
37+
apt: true
38+
directories:
39+
- "$HOME/.composer/cache"
40+
- "$HOME/.nvm"
41+
addons:
42+
apt:
43+
packages:
44+
- mysql-server-5.6
45+
- mysql-client-core-5.6
46+
- mysql-client-5.6
47+
- postfix
48+
firefox: '46.0'
49+
hosts:
50+
- magento2.travis
51+
before_install:
52+
- git clone https://github.com/magento/magento2 --branch $MAGENTO_VERSION
53+
- cd magento2
54+
- bash ./dev/travis/before_install.sh
55+
install:
56+
- composer install --no-interaction --prefer-dist
57+
- composer require $COMPOSER_MODULE
58+
before_script:
59+
#- cp -f ${TRAVIS_BUILD_DIR}/dev/tests/integration/phpunit.xml.dist dev/tests/integration/
60+
- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Less/_files/whitelist/common.txt
61+
- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt
62+
- echo "vendor/$COMPOSER_MODULE/**/*.js" > dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/magento.txt
63+
- bash ./dev/travis/before_script.sh
64+
script:
65+
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
66+
- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true
67+
68+

Controller/Search/Result/Index.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
use Magento\CatalogSearch\Helper\Data;
2727
use Magento\Framework\App\Action\Action;
2828
use Magento\Framework\App\Action\Context;
29+
use Magento\Framework\App\ResponseInterface;
30+
use Magento\Framework\Controller\ResultInterface;
31+
use Magento\Framework\Exception\LocalizedException;
2932
use Magento\Framework\Json\Helper\Data as JsonData;
33+
use Magento\Search\Model\Query;
3034
use Magento\Search\Model\QueryFactory;
3135
use Magento\Store\Model\StoreManagerInterface;
3236
use Mageplaza\AjaxLayer\Helper\Data as HelperData;
@@ -98,25 +102,25 @@ public function __construct(
98102
JsonData $jsonHelper,
99103
HelperData $moduleHelper
100104
) {
101-
$this->_storeManager = $storeManager;
105+
$this->_storeManager = $storeManager;
102106
$this->_catalogSession = $catalogSession;
103-
$this->_queryFactory = $queryFactory;
104-
$this->layerResolver = $layerResolver;
105-
$this->_jsonHelper = $jsonHelper;
106-
$this->_moduleHelper = $moduleHelper;
107-
$this->_helper = $helper;
107+
$this->_queryFactory = $queryFactory;
108+
$this->layerResolver = $layerResolver;
109+
$this->_jsonHelper = $jsonHelper;
110+
$this->_moduleHelper = $moduleHelper;
111+
$this->_helper = $helper;
108112

109113
parent::__construct($context);
110114
}
111115

112116
/**
113-
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
114-
* @throws \Magento\Framework\Exception\LocalizedException
117+
* @return ResponseInterface|ResultInterface|void
118+
* @throws LocalizedException
115119
*/
116120
public function execute()
117121
{
118122
$this->layerResolver->create(Resolver::CATALOG_LAYER_SEARCH);
119-
/* @var $query \Magento\Search\Model\Query */
123+
/* @var $query Query */
120124
$query = $this->_queryFactory->get();
121125

122126
$query->setStoreId($this->_storeManager->getStore()->getId());
@@ -138,8 +142,8 @@ public function execute()
138142

139143
if ($this->_moduleHelper->ajaxEnabled() && $this->getRequest()->isAjax()) {
140144
$navigation = $this->_view->getLayout()->getBlock('catalogsearch.leftnav');
141-
$products = $this->_view->getLayout()->getBlock('search.result');
142-
$result = [
145+
$products = $this->_view->getLayout()->getBlock('search.result');
146+
$result = [
143147
'products' => $products->toHtml(),
144148
'navigation' => $navigation->toHtml()
145149
];

LICENSE

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
Copyright © 2016-present Mageplaza Co. Ltd.
2-
3-
This License is entered by Mageplaza to govern the usage or redistribution of Mageplaza software. This is a legal agreement between you (either an individual or a single entity) and Mageplaza for Mageplaza software product(s) which may include extensions, templates and services.
4-
5-
By purchasing, installing, or otherwise using Mageplaza products, you acknowledge that you have read this License and agree to be bound by the terms of this Agreement. If you do not agree to the terms of this License, do not install or use Mageplaza products.
6-
7-
The Agreement becomes effective at the moment when you acquire software from our site or receive it through email or on data medium or by any other means. Mageplaza reserves the right to make reasonable changes to the terms of this license agreement and impose its clauses at any given time.
8-
9-
1. GRANT OF LICENSE: By purchasing a product of Mageplaza:
10-
11-
1. Customer will receive source code open 100%.
12-
13-
2. Customer will obtain a License Certificate which will remain valid until the Customer stops using the Product or until Mageplaza terminates this License because of Customer’s failure to comply with any of its Terms and Conditions. Each License Certificate includes a license serial which is valid for one live Magento installation only and unlimited test Magento installations.
14-
15-
3. You are allowed to customize our products to fit with your using purpose.
16-
17-
4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS
18-
19-
5. Installation and Use
20-
21-
6. For each new Software installation, you are obliged to purchase a separate License. You are not permitted to use any part of the code in whole or part in any other software or product or website. You are legally bound to preserve the copyright information intact including the text/link at bottom.
22-
23-
2. Distribution: You are not allowed to distribute Mageplaza software to third parties. Any distribution without our permission, including non commercial distribution is considered as violation of this Agreement and entails liability, according to the current law. You may not place the Software onto a server that allows access to the Software via a public network or the Internet for distribution purposes.
24-
25-
3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone.
26-
27-
4. Compliance with Applicable Laws: You must comply with all applicable laws regarding use of software products. Mageplaza software and a portion of it are protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. Accordingly, customer is required to treat the software like any other copyrighted material. Any activity violating copyright law will be prosecuted according to the current law. We retain the right to revoke the license of any user holding an invalid license.
28-
29-
5. TERMINATION: Without prejudice to any other rights, Mageplaza may terminate this License at any time if you fail to comply with the terms and conditions of this License. In such event, it constitutes a breach of the agreement, and your license to use the program is revoked and you must destroy all copies of Mageplaza products in your possession. After being notified of termination of your license, if you continue to use Mageplaza software, you hereby agree to accept an injunction to prevent you from its further use and to pay all costs (including but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages suffered by us because of your misuse of the Software. We are not bound to return you the amount spent for purchase of the Software for the termination of this License.
30-
31-
6. LIMITATION OF LIABILITY: In no event shall Mageplaza be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of ‘Authorized Users’ use of or inability to use the Mageplaza products, even if Mageplaza has been advised of the possibility of such damages. In no event will Mageplaza be liable for prosecution arising from use of the Software against law or for any illegal use.
32-
1+
Copyright © 2016-present Mageplaza Co. Ltd.
2+
3+
This License is entered by Mageplaza to govern the usage or redistribution of Mageplaza software. This is a legal agreement between you (either an individual or a single entity) and Mageplaza for Mageplaza software product(s) which may include extensions, templates and services.
4+
5+
By purchasing, installing, or otherwise using Mageplaza products, you acknowledge that you have read this License and agree to be bound by the terms of this Agreement. If you do not agree to the terms of this License, do not install or use Mageplaza products.
6+
7+
The Agreement becomes effective at the moment when you acquire software from our site or receive it through email or on data medium or by any other means. Mageplaza reserves the right to make reasonable changes to the terms of this license agreement and impose its clauses at any given time.
8+
9+
1. GRANT OF LICENSE: By purchasing a product of Mageplaza:
10+
11+
1. Customer will receive source code open 100%.
12+
13+
2. Customer will obtain a License Certificate which will remain valid until the Customer stops using the Product or until Mageplaza terminates this License because of Customer’s failure to comply with any of its Terms and Conditions. Each License Certificate includes a license serial which is valid for one live Magento installation only and unlimited test Magento installations.
14+
15+
3. You are allowed to customize our products to fit with your using purpose.
16+
17+
4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS
18+
19+
5. Installation and Use
20+
21+
6. For each new Software installation, you are obliged to purchase a separate License. You are not permitted to use any part of the code in whole or part in any other software or product or website. You are legally bound to preserve the copyright information intact including the text/link at bottom.
22+
23+
2. Distribution: You are not allowed to distribute Mageplaza software to third parties. Any distribution without our permission, including non commercial distribution is considered as violation of this Agreement and entails liability, according to the current law. You may not place the Software onto a server that allows access to the Software via a public network or the Internet for distribution purposes.
24+
25+
3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone.
26+
27+
4. Compliance with Applicable Laws: You must comply with all applicable laws regarding use of software products. Mageplaza software and a portion of it are protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. Accordingly, customer is required to treat the software like any other copyrighted material. Any activity violating copyright law will be prosecuted according to the current law. We retain the right to revoke the license of any user holding an invalid license.
28+
29+
5. TERMINATION: Without prejudice to any other rights, Mageplaza may terminate this License at any time if you fail to comply with the terms and conditions of this License. In such event, it constitutes a breach of the agreement, and your license to use the program is revoked and you must destroy all copies of Mageplaza products in your possession. After being notified of termination of your license, if you continue to use Mageplaza software, you hereby agree to accept an injunction to prevent you from its further use and to pay all costs (including but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages suffered by us because of your misuse of the Software. We are not bound to return you the amount spent for purchase of the Software for the termination of this License.
30+
31+
6. LIMITATION OF LIABILITY: In no event shall Mageplaza be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of ‘Authorized Users’ use of or inability to use the Mageplaza products, even if Mageplaza has been advised of the possibility of such damages. In no event will Mageplaza be liable for prosecution arising from use of the Software against law or for any illegal use.
32+
3333
The latest License: https://www.mageplaza.com/LICENSE.txt

Plugin/Controller/Category/View.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
Data $jsonHelper,
5151
LayerData $moduleHelper
5252
) {
53-
$this->_jsonHelper = $jsonHelper;
53+
$this->_jsonHelper = $jsonHelper;
5454
$this->_moduleHelper = $moduleHelper;
5555
}
5656

@@ -64,10 +64,10 @@ public function afterExecute(\Magento\Catalog\Controller\Category\View $action,
6464
{
6565
if ($this->_moduleHelper->ajaxEnabled() && $action->getRequest()->isAjax()) {
6666
$navigation = $page->getLayout()->getBlock('catalog.leftnav');
67-
$products = $page->getLayout()->getBlock('category.products');
67+
$products = $page->getLayout()->getBlock('category.products');
6868
if ($this->_moduleHelper->getConfigValue('mpquickview/general/enabled')) {
6969
$quickView = $page->getLayout()->getBlock('mpquickview.quickview');
70-
$result = [
70+
$result = [
7171
'products' => $products->toHtml(),
7272
'navigation' => $navigation->toHtml(),
7373
'quickview' => $quickView->toHtml()

0 commit comments

Comments
 (0)