lima/movies

A module that integrate magento 2 with some movies api to import movies to catalog

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:magento2-module

1.1.1 2021-01-28 17:31 UTC

This package is auto-updated.

Last update: 2024-09-06 00:41:00 UTC


README

Install this package using the composer: https://packagist.org/packages/lima/movies (version 1.0.4)

Considerations: - The module was built following the best practices of Magento, using ui components, ko javascript, saving data with queue repository, interfaces and queue with cron. - I tried so hard to use ui components to retrieve items from the API, but nothing works, I got overlaping block collection (without ui components), but the pagination, the total of items and the filter were not working well. After many tries, my best solution for this was to use a block model and ko scripts to create a table and an ajax form to retrieve items from the API (keeping magento 2 admin theme at most). All other admin grid uses best practices with full-featured ui components (except in-line editing). - I chose to use the queue system with cron to import products, but the queue import can be forced with the bulk action import (admin grid queue). - I have some versions on packgist because I never put a projeto into packgist and I had to do some tests.

This module contains the following resources: 1 - Set a default value for products like 'price', 'stock' and 'attribute_set' 2 - Define the default search terms, such as 'language' and 'adult' 3 - Import movie with custom price or stock (this overlaps with default 'price' or 'price'), you can override these values in the search results table, just before import 4 - Movies import through the queuing system (using cron). After searching and importing the selected results, this movie goes to a queue import and then becomes a product 5 - The queuing system uses cron to import products 6 - You can add a movie as one of your favorite in the catalog page view clicking "Add to favorites" button next to "Add to wish list" or "Add to compare" 7 - This module can be installed with the composer (https://packagist.org/packages/lima/movies) 8 - ACL for all resources

Demo images:

  • Menu   Menu

  • System configuration   System configuration

  • Search Movie Results   Search Movie Results

  • Setup custom price   Setup custom price

  • Confirm Import   Confirm Import

  • Import Movie Queue (waiting cron process)   Import Movie Queue (waiting cron process)

  • Force Import   Force Import

  • Import Success   Import Success

  • Favorite List Before   Favorite List Before

  • Search Movie Results (frontend)   Search Movie Results (frontend)

  • Product View   Product View

  • Added as favorite   Added as favorite

  • Favorite List Now (This collection has a group by product_id, count and limit 10 in _initSelect() on collection file)   Favorite List Now (This collection has a group by product_id, count and limit 10 in _initSelect() on collection file)