Run M2 from subdirectory

Magento 2.2.6 Have the main directory / and subdirectories like /germany, /france/, /poland etc. each subdirectory has index.php file like: <?php /** * Application entry point * * Example – run a particular store or website: * ——————————————– * require __DIR__ . ‘/app/bootstrap.php’; * $params = $_SERVER; * $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = ‘website2’; * $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = ‘website’;…

sales_order_save_after event not fired when creating an invoice

I like the event to be fired when we create an invoice for an order, to get order status complete etc/backend/events.xml <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <!– new code Tarek –> <event name=”sales_order_save_after”> <observer name=”qbonline_syncOrder_completed” instance=”Vendor\Module\Observer\Order\Create”/> </event> </config> Vendor/Module/Observer/Order/Create.php namespace Vendor\Module\Observer\Order; use Magenest\QuickBooksOnline\Observer\AbstractObserver; use Magento\Framework\App\ObjectManager; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface as ObserverInterface; use Vendor\Module\Model\Synchronization\Order; use Magento\Framework\Message\ManagerInterface; use Vendor\Module\Model\Config;…