Skip to content

Commit

Permalink
Added readme, development.txt and images
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohgdl1995 committed Jun 15, 2020
1 parent 1df300c commit 5552e6f
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 0 deletions.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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
![alt text](https://github.com/lima195/Lima_Movie/images/01_menu.png)

* System configuration
![alt text](https://github.com/lima195/Lima_Movie/images/02_config.png)

* Search Movie Results
![alt text](https://github.com/lima195/Lima_Movie/images/03_search_movie.png)

* Setup custom price
![alt text](https://github.com/lima195/Lima_Movie/images/04_setup_custom_price.png)

* Confirm Import
![alt text](https://github.com/lima195/Lima_Movie/images/05_import_confirm.png)

* Import Movie Queue (waiting cron process)
![alt text](https://github.com/lima195/Lima_Movie/images/06_import_movie_queue.png)


* Force Import
![alt text](https://github.com/lima195/Lima_Movie/images/07_import_movie_queue_force.png)

* Import Success
![alt text](https://github.com/lima195/Lima_Movie/images/08_import_movie_success.png)

* Favorite List Before
![alt text](https://github.com/lima195/Lima_Movie/images/09_movie_favorite_list_before.png)

* Search Movie Results (frontend)
![alt text](https://github.com/lima195/Lima_Movie/images/10_movie_search_result_frontend.png)

* Product View
![alt text](https://github.com/lima195/Lima_Movie/images/11_movie_view.png)

* Added as favorite
![alt text](https://github.com/lima195/Lima_Movie/images/12_movie_add_favorite.png)

* Favorite List Now (This collection has a group by product_id, count and limit 10 in _initSelect() on collection file)
![alt text](https://github.com/lima195/Lima_Movie/images/13_movie_favorite_list.png)
21 changes: 21 additions & 0 deletions development.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

See readme for demo images
I tooked almost 3 weekends to finish this.
Binary file added images/01_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/02_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/03_search_movie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/04_setup_custom_price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/05_import_confirm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/06_import_movie_queue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/07_import_movie_queue_force.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/08_import_movie_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/09_movie_favorite_list_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/10_movie_search_result_frontend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_movie_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_movie_add_favorite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_movie_favorite_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5552e6f

Please sign in to comment.