Categories
CMS Magento Mastering Development

Magento 2 | Add field to customer edit in adminhtml

I want to edit a field to the customer edit in admin html. When you look at the picture I want to add a field below “First Name”. I don’t want to create a customer attribute, I just want to add a field there. Any idea how to do that?

Categories
CMS Magento Mastering Development

Call CMS Static Block in Carrier Class?

I have a CMS Static Block in Admin Panel. I can get its content from block class by this code: public function getCMSContent() { $blockId = ‘1’; $content = ”; if ($blockId) { $storeId = $this->_storeManager->getStore()->getId(); $block = $this->_blockFactory->create(); $block->setStoreId($storeId)->load($blockId); $content = $this->_filterProvider->getBlockFilter()->setStoreId($storeId)->filter($block->getContent()); explode(“;”, $content); } return $content; } But if I bring this code […]

Categories
CMS Magento Mastering Development

Dashboard is loading after login in Magento2

My login page didn’t show after successfully install Magento2. Then solve the issue from below link After installing magento 2.3 admin login page cant open properly After successfully login My Admin dashboard isn’t load fully. Only loading icon is shown. I upload an image for better understand.

Categories
CMS Magento Mastering Development

Dashboard is loading after login in Magento2

My login page didn’t show after successfully install Magento2. Then solve the issue from below link After installing magento 2.3 admin login page cant open properly After successfully login My Admin dashboard isn’t load fully. Only loading icon is shown. I upload an image for better understand.

Categories
CMS Drupal Mastering Development

Hiding view filter option based on another filter selection – Drupal

I have a view with search criteria and the search criteria looks like below: Age group(options: new born, toddler, pre-school) Classroom (options: NA, potty-trained, transition, not-trained) All these filter fields are check boxes. When I select ‘new born’ as age-group, all of the classroom options should be hidden/disabled except NA option When I select ‘toddler/pre-school’ […]

Categories
CMS Magento Mastering Development

Dashboard is loading after login in Magento2

My login page didn’t show after successfully install Magento2. Then solve the issue from below link After installing magento 2.3 admin login page cant open properly After successfully login My Admin dashboard isn’t load fully. Only loading icon is shown. I upload an image for better understand.

Categories
CMS Magento Mastering Development

Trouble sorted pages index google

I currently have the mageplaza layered navigation extension on my site in Magento 2.2.9 and I have a problem : Google indexes all the filter pages. I blocked some of them via the robots.txt but certainly remains indexed but I don’t know how the blocked ones because they have a different scheme : https://mysite/lang/category/104-251-82.html I […]

Categories
CMS Magento Mastering Development

External database connection error in magento 2.3.4

Here is my function for external database connection and using connection factory class to create connection, it is working fine in 2.3.3. //use Magento\Framework\App\ResourceConnection\ConnectionFactory; public function getConnection(){ $db = $this->connectionFactory->create( [ ‘host’ => XX.XXX.XXX.X, ‘dbname’ => ‘dbname’, ‘username’ => ‘username’, ‘password’ => ‘password’, ‘active’ => ‘1’, ] ); return $db; } However when i tested […]

Categories
CMS Magento Mastering Development

Magento2: How to remove zip code in magento 2 address book page?

How to remove zipcode field in magento 2 address book

Categories
CMS Magento Mastering Development

Magento2: How to remove zip code in magento 2 address book page?

How to remove zipcode field in magento 2 address book