Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Magestore POS Line 4 (POS Pro 4, POS Pro Commerce 4, POS Enterprise 4, POS Enterprise Commerce 4) requires MSI to be installed and enabled before installing the POS. You can follow the guide Install Inventory Management from Magento to install and enable MSI.

POS Installation

...

  1. Checkout the branch for the appropriate environment at your local

...

  1. Place the package

...

  1. in the Project Root Directory

...

  1. Extract the package to the Project Root Directory

    Code Block
    languagebash
    cd <project_root_directory>
    tar -xf <package_name>

...

  1. Add Laminas Barcode package

    Code Block
    languagebash
    composer require laminas/laminas-barcode ^2.8

...

...

  1. Configure deploy client app static at .magento.app.yaml

    • Check how many client

...

    • apps are in your POS package

      Code Block
      languagebash
      $ ls app/code/Magestore/Webpos/build/apps/
      pos
      clickandcollect
      mobile_pos
    • As you can see here above there is only one app named pos you need to add the code block below to the file .magento.app.yaml

      Code Block
      languageyaml
      "/apps/pos":
                  root: "app/code/Magestore/Webpos/build/apps/pos"
                  allow: false
                  scripts: false
                  index:
                      - index.html
                  rules:
                      \.(html|css|js|svg|json|map|hbs|gif|jpe?g|png|tiff|wbmp|ico|jng|bmp|svgz|midi?|mp?ga|mp2|mp3|m4a|ra|weba|3gpp?|mp4|mpe?g|mpe|ogv|mov|webm|flv|mng|asx|asf|wmv|avi|ogx|swf|jar|ttf|eot|woff|otf)$:
                          allow: true
                  passthru: "/get.php"
              "/apps/pos/static":
                  root: "app/code/Magestore/Webpos/build/apps/pos/static"
                  allow: true
                  scripts: false
                  passthru: "/front-static.php"
                  rules:
                      ^/apps/pos/static\d+/(?<resource>.*)$:
                          passthru: "/static/$resource"

      The result looks like this image

...

Info

If you have any further application like clickandcollect or mobile_pos in the directory app/code/Magestore/Webpos/build/apps/, add the corresponding code with adjusted app name

...

    • Image Added

    • Do the same thing with other app like clickandcollect, mobile_pos and so on

  1. Add changed file and push to remote

    Code Block
    git add app/code/Magestore .magento.app.yaml composer.json composer.lock
    git commit -m "Init Magestore POS"
    git push origin <branch-name>

...

  1. Waiting for deployment completed

...

  1. Connect to the environment on Magento Cloud via SSH

...

  1. Adjust Redis session configuration
    Note: This is an optional configuration if you are using Redis for Magento Session.

    • Open file app/etc/env.php in your favorite editor

    • Scroll down to session section as below

...

    • Redis conigurationImage Added

    • Edit the value max_concurrency to a suitable number. Magento recommend we set that number by 10% of the number of PHP processes. If you don’t know that then try in the range from 6 to 24 is fine. For example 20.

...

  1. Configure Message Queue
    Note: Magestore POS default supported to work with Magento Message Queue with no special configuration needed (only need Magento Cron installed and running) if the POS you are having meets the below conditions

...

...

  1. Run redeploy on from Magento Cloud CLI

...

  1. Waiting for deployment completed

Prevnextnav macro