/
Another Technique (2d)

Another Technique (2d)

Exercise:

  • Create cli command line:

    • bin/magento get:product:list --type=simple to get all simple product id

    • bin/magento get:product:list --type=virtual to get all virtual product id

  • Create module:

    • Create page with controller /showProductList

    • Write api to get 10 first simple product, return json type

    • When access controller by /showProductList, use AJAX to call api , use template by knockout js to display simple product like that:

 

Related content

Service Contract/WebApi (1.5d)
Service Contract/WebApi (1.5d)
Read with this
How to Mass Visible Product on POS
How to Mass Visible Product on POS
More like this
Event (4h)
Read with this
How to Mass Visible Product on POS
How to Mass Visible Product on POS
More like this
Model/Resource Model/Collection (1 day)
Model/Resource Model/Collection (1 day)
Read with this
POS Lite How to Mass Visible Product on POS
POS Lite How to Mass Visible Product on POS
More like this