mauricio/module-movies
Composer 安装命令:
composer require mauricio/module-movies
包简介
A magento 2 module that consumes a movies api and import movies as products
README 文档
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.
Screenshots
Custom admin navigation bar
Module configurations
Page to import movies
Showing movies
Add Favorite button on the product page
Top 10 Favorite Movies page
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-01-28





