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

1.0.1 2021-01-28 18:21 UTC

This package is not auto-updated.

Last update: 2024-09-21 09:35:29 UTC


README

Requirements

  • Magento: 2.3.4

How to install

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

  1. Integration with the Movies API (admin):
    1. 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;
  2. Importing products (admin):
    1. An 'attribute_set' was created, which has the 'is_movie' attribute,
      used to represent products that are movies;
  3. InstallSchema and InstallData (admin):
    1. 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;
  4. 'Add to favorites' button:
    1. Was appended to the product view through the file “product.info.addto”;
  5. Screen to view the top 10 favorite movies (admin):
    1. ui_components was used to create the table with the data.

Screenshots

Custom admin navigation bar

Custom admin navigation bar

Module configurations

Module configurations

Page to import movies

Page to import movies

Showing movies

Showing movies

Add Favorite button on the product page

Add Favorite button on the product page

Top 10 Favorite Movies page

Top 10 Favorite Movies page