mauricio / module-movies
A magento 2 module that consumes a movies api and import movies as products
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.1.3||~7.2.0||~7.3.0
This package is not auto-updated.
Last update: 2024-09-21 09:35:29 UTC
README
Requirements
- Magento: 2.3.4
How to install
- command - composer require mauricio/module-movies
- link - https://packagist.org/packages/mauricio/module-movies
- version - version 1.0.1
After installing
- Is important to change the module's configuration data, which are:
- 'api_key' (authentication key in api movies),
- 'price' and 'stock' (these are the default values when creating a new product,
but it can be changed on the screen whenever you create a new product).
About the module
- Integration with the Movies API (admin):
- The integration with the API is performed on the backend,through the same endpoint
used to access the movies index page. But, the pagination was done using JavaScript;
- The integration with the API is performed on the backend,through the same endpoint
- Importing products (admin):
- An 'attribute_set' was created, which has the 'is_movie' attribute,
used to represent products that are movies;
- An 'attribute_set' was created, which has the 'is_movie' attribute,
- InstallSchema and InstallData (admin):
- In addition to InstallSchema for the creation of new product attributes,
a new table has also been created in the database, which serves to maintain
the data regarding the movies that have been saved as favorites by customers;
- In addition to InstallSchema for the creation of new product attributes,
- 'Add to favorites' button:
- Was appended to the product view through the file “product.info.addto”;
- Screen to view the top 10 favorite movies (admin):
- ui_components was used to create the table with the data.