-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
348 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHANGELOG: https://www.mageplaza.com/releases/better-product-reviews/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Copyright © 2016-present Mageplaza Co. Ltd. | ||
|
||
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. | ||
|
||
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. | ||
|
||
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. | ||
|
||
1. GRANT OF LICENSE: By purchasing a product of Mageplaza: | ||
|
||
1. Customer will receive source code open 100%. | ||
|
||
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. | ||
|
||
3. You are allowed to customize our products to fit with your using purpose. | ||
|
||
4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS | ||
|
||
5. Installation and Use | ||
|
||
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. | ||
|
||
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. | ||
|
||
3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone. | ||
|
||
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. | ||
|
||
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. | ||
|
||
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. | ||
|
||
The latest License: https://www.mageplaza.com/LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Better Product Reviews GraphQl | ||
This module provides type and resolver information for the GraphQl module to generate catalog reviews information endpoints. | ||
|
||
## How to install | ||
Run the following command in Magento 2 root folder: | ||
|
||
``` | ||
composer require mageplaza/module-better-product-reviews-graphql | ||
php bin/magento setup:upgrade | ||
php bin/magento setup:static-content:deploy | ||
``` | ||
|
||
## How to use | ||
|
||
To start working with GraphQl in Magento, you need the following: | ||
- Use Magento 2.3.x. Returns site to developer mode | ||
- Install [chrome extension](https://chrome.google.com/webstore/detail/chromeiql/fkkiamalmpiidkljmicmjfbieiclmeij?hl=en) (currently does not support other browsers) | ||
- Set **GraphQL endpoint** as `http://<magento2-3-server>/graphql` in url box, click **Set endpoint**. (e.g. http://develop.mageplaza.com/graphql/ce232/graphql) | ||
- Mageplaza-supported queries are fully written in the **Description** section of `Query.productreviews.Products` | ||
|
||
![](https://i.imgur.com/8OW0Y2G.png) | ||
# Better Product Reviews GraphQl | ||
This module provides type and resolver information for the GraphQl module to generate catalog reviews information endpoints. | ||
|
||
## How to install | ||
Run the following command in Magento 2 root folder: | ||
|
||
``` | ||
composer require mageplaza/module-better-product-reviews-graphql | ||
php bin/magento setup:upgrade | ||
php bin/magento setup:static-content:deploy | ||
``` | ||
|
||
## How to use | ||
|
||
To start working with GraphQl in Magento, you need the following: | ||
- Use Magento 2.3.x. Returns site to developer mode | ||
- Install [chrome extension](https://chrome.google.com/webstore/detail/chromeiql/fkkiamalmpiidkljmicmjfbieiclmeij?hl=en) (currently does not support other browsers) | ||
- Set **GraphQL endpoint** as `http://<magento2-3-server>/graphql` in url box, click **Set endpoint**. (e.g. http://develop.mageplaza.com/graphql/ce232/graphql) | ||
- Mageplaza-supported queries are fully written in the **Description** section of `Query.productreviews.Products` | ||
|
||
![](https://i.imgur.com/8OW0Y2G.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## Documentation | ||
|
||
- Installation guide: https://www.mageplaza.com/install-magento-2-extension/#solution-1-ready-to-paste | ||
- User Guide: https://docs.mageplaza.com/better-product-reviews/ | ||
- Product page: https://www.mageplaza.com/magento-2-better-product-reviews/ | ||
- FAQs: https://www.mageplaza.com/faqs/ | ||
- Get Support: https://www.mageplaza.com/contact.html or [email protected] | ||
- Changelog: https://www.mageplaza.com/releases/better-product-reviews/ | ||
- License agreement: https://www.mageplaza.com/LICENSE.txt | ||
|
||
## How to install | ||
|
||
### Install ready-to-paste package (Recommended) | ||
|
||
- Installation guide: https://www.mageplaza.com/install-magento-2-extension/ | ||
|
||
## How to upgrade | ||
|
||
1. Backup | ||
|
||
Backup your Magento code, database before upgrading. | ||
|
||
2. Remove BetterProductReviewsGraphQl folder | ||
|
||
In case of customization, you should backup the customized files and modify in newer version. | ||
Now you remove `app/code/Mageplaza/BetterProductReviewsGraphQl` folder. In this step, you can copy override BetterProductReviewsGraphQl folder but this may cause of compilation issue. That why you should remove it. | ||
|
||
3. Upload new version | ||
Upload this package to Magento root directory | ||
|
||
4. Run command line: | ||
|
||
``` | ||
php bin/magento setup:upgrade | ||
php bin/magento setup:static-content:deploy | ||
``` | ||
|
||
|
||
## FAQs | ||
|
||
|
||
#### Q: I got error: `Mageplaza_Core has been already defined` | ||
A: Read solution: https://github.com/mageplaza/module-core/issues/3 | ||
|
||
|
||
#### Q: My site is down | ||
A: Please follow this guide: https://www.mageplaza.com/blog/magento-site-down.html | ||
|
||
|
||
## Support | ||
|
||
- FAQs: https://www.mageplaza.com/faqs/ | ||
- https://www.mageplaza.com/contact.html | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "mageplaza/module-better-product-reviews-graphql", | ||
"description": "Magento 2 Better Product Reviews GraphQl Extension", | ||
"type": "magento2-module", | ||
"version": "1.0.0", | ||
"license": "proprietary", | ||
"authors": [ | ||
{ | ||
"name": "Mageplaza", | ||
"email": "[email protected]", | ||
"homepage": "https://www.mageplaza.com", | ||
"role": "Technical Support" | ||
} | ||
], | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
], | ||
"psr-4": { | ||
"Mageplaza\\BetterProductReviewsGraphQl\\": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Mageplaza | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Mageplaza.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://www.mageplaza.com/LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade this extension to newer | ||
* version in the future. | ||
* | ||
* @category Mageplaza | ||
* @package Mageplaza_BetterProductReviewsGraphQl | ||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) | ||
* @license https://www.mageplaza.com/LICENSE.txt | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | ||
<type name="Magento\Framework\GraphQl\Query\Resolver\Argument\FieldEntityAttributesPool"> | ||
<arguments> | ||
<argument name="attributesInstances" xsi:type="array"> | ||
<item name="reviews" xsi:type="object"> | ||
\Mageplaza\BetterProductReviewsGraphQl\Model\Resolver\FilterArgument | ||
</item> | ||
</argument> | ||
</arguments> | ||
</type> | ||
</config> | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Mageplaza | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Mageplaza.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://www.mageplaza.com/LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade this extension to newer | ||
* version in the future. | ||
* | ||
* @category Mageplaza | ||
* @package Mageplaza_BetterProductReviewsGraphQl | ||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) | ||
* @license https://www.mageplaza.com/LICENSE.txt | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | ||
<type name="Magento\Framework\GraphQl\Query\Resolver\Argument\FieldEntityAttributesPool"> | ||
<arguments> | ||
<argument name="attributesInstances" xsi:type="array"> | ||
<item name="reviews" xsi:type="object"> | ||
\Mageplaza\BetterProductReviewsGraphQl\Model\Resolver\FilterArgument | ||
</item> | ||
</argument> | ||
</arguments> | ||
</type> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Mageplaza | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Mageplaza.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://www.mageplaza.com/LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade this extension to newer | ||
* version in the future. | ||
* | ||
* @category Mageplaza | ||
* @package Mageplaza_BetterProductReviewsGraphQl | ||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) | ||
* @license https://www.mageplaza.com/LICENSE.txt | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> | ||
<module name="Mageplaza_BetterProductReviewsGraphQl"> | ||
<sequence> | ||
<module name="Mageplaza_Core"/> | ||
<module name="Mageplaza_BetterProductReviews"/> | ||
</sequence> | ||
</module> | ||
</config> | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Mageplaza | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Mageplaza.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://www.mageplaza.com/LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade this extension to newer | ||
* version in the future. | ||
* | ||
* @category Mageplaza | ||
* @package Mageplaza_BetterProductReviewsGraphQl | ||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) | ||
* @license https://www.mageplaza.com/LICENSE.txt | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> | ||
<module name="Mageplaza_BetterProductReviewsGraphQl"> | ||
<sequence> | ||
<module name="Mageplaza_Core"/> | ||
<module name="Mageplaza_BetterProductReviews"/> | ||
</sequence> | ||
</module> | ||
</config> |
Oops, something went wrong.