- On the Admin sidebar, go Content > Design > Configuration > Select your current theme > .
- Choose the storeview you want to change the welcome message.
- Under Action column, open the Edit mode.
- Scroll down and expand the Header section. Then, enter the Welcome Text that you want to appear.
Monthly Archives: March 2019
create admin user n98-magerun2.phar
Run the following commands
./n98-magerun2.phar admin:user:create [--admin-user ADMIN-USER] [--admin-password ADMIN-PASSWORD] [--admin-email ADMIN-EMAIL] [--admin-firstname ADMIN-FIRSTNAME] [--admin-lastname ADMIN-LASTNAME]
n98-magerun.phar command not found
In my case its was prmission issue . The following command solved the issue
chmod +x ./n98-magerun.phar
magento 2 image path phtml
<?php echo $this->getViewFileUrl('images/footer-icon.png'); ?>
store code on phtml page magento 2
public function getStoreCode() { return $this->_storeManager->getStore()->getCode(); }
sublime increase tab font size
- Navigate to Sublime Text -> Preferences -> Browse Packages
- Open the User directory
- Create a file named Default.sublime-theme (if you’re using the default theme) and add the following text
vi /root/.config/sublime-text-3/Packages/User/Default.sublime-theme
[ {
"class": "tab_label",
"font.size": 13
},
]
run chrome as root user
Edit the file /usr/bin/google-chrome-stable
vi /usr/bin/google-chrome-stable
and replce the code exec -a “$0” “$HERE/chrome” “$@” with exec -a “$0” “$HERE/chrome” “$@” –no-sandbox
Something went wrong while saving this configuration: Area is already set
This is a known issue in magento 2.2.4. It can be fixed by modifying the function setForcedArea() in Magento\Email\Model\AbstractTemplate.php
Update
public function setForcedArea($templateId)
{ if ($this->area) {
throw new \LogicException(__('Area is already set'));
}
$this->area = $this->emailConfig->getTemplateArea($templateId);
return $this;
}
To
public function setForcedArea($templateId)
{ if (!isset($this->area)) {
$this->area = $this->emailConfig->getTemplateArea($templateId);
}
return $this;
}