5

You can replace entire Magento 2 core packages (modules, theme, other) with composer. Create your own Git repo for each module you patch. I haven't tried with a single Git repository for multiple core modules like module-catalog and module-sales in the same Git repository (it could potentially work). Add the url of your Git repo in repositories (before repo....


3

You can get website name and url using this snippet. public function __construct( \Magento\Store\Model\StoreManagerInterface $storeManager, ) { $this->_storeManager = $storeManager; } public function getWebsites() { $_websites = $this->_storeManager->getWebsites(); $_websiteData = array(); foreach($_websites as $website){ ...


2

In order to be able to get the guest user's email using $quote->getBillingAddress()->getEmail() you need first set it in the payment information. If you have a look at paypal's module in view/frontend/web/js/action/set-payment-method.js you can see: if (!customer.isLoggedIn()) { serviceUrl = urlBuilder.createUrl('/guest-carts/:...


2

... /** * @var \Magento\Checkout\Model\Session */ private $session; ... public function __construct( \Magento\Framework\App\Action\Context $context, \Magento\Checkout\Model\Session $session, ... ) { parent::__construct($context); ... $this->session = $session; } ... public function execute() { ... $customerEmail = $this-&...


1

It seems like the footer_links_block is gone in the newer version of M2. So here's how to do it based on this forum Q&A: Create a block Under Content > Blocks click the Add New Block button. Block Title: Footer Links Block Identifier: footer_links_block Store View: choose your store view Add your custom link list in the content. For example: <ul ...


Only top voted, non community-wiki answers of a minimum length are eligible