2

create Model app/code/VendoreName/ModuleName/Model CustomerAddress.php <?php namespace VendoreName\ModuleName\Model; use Magento\Framework\Model\AbstractModel; use VendoreName\ModuleName\Model\ResourceModel\CustomerAddress as CustomerAddressResourceModel; class CustomerAddress extends AbstractModel { protected function _construct() { ...


2

Try to execute this query in your database : UPDATE `customer_entity` SET `password_hash` = SHA2('admin123', 256) WHERE `entity_id` = 1; or UPDATE `customer_entity` SET `password_hash` = CONCAT(SHA2('xxxxxxxadmin123', 256), ':xxxxxxx:1') WHERE `entity_id` = 1; replace value of password instead of admin123 replace value of xxxxxxx with crypt key. You can ...


1

you can go into Store >> Configuration >> Customers >> Customer Configuration >> Address Templates >> HTML. It is formatted address template you can adjust like below: {{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}{{depend firstname}...


1

You can use below code to check Customer is Logged in Or Not ? Using Object Manager : $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager->get('Magento\Customer\Model\Session'); if($customerSession->isLoggedIn()) { // customer login action } In Controller : $this->_objectManager->get('...


1

app/code/VendoreName/ModuleName/Controller/Account Sampleorders.php <?php namespace VendoreName\ModuleName\Controller\Account; use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; class Sampleorders extends \Magento\Customer\...


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