xanka
  • Member for 6 years, 5 months
  • Last seen this week
How to render data type html in template email magento2?
23 votes

I change {{trans "%body" body=$data.body}} to {{trans "%body" body=$data.body|raw}}. it render success.

View answer
How to check if customer is logged in or not?
9 votes

Another answer: <?php $_loggedin = $block->getLayout()->createBlock('Magento\Customer\Block\Account\AuthorizationLink')->isLoggedIn() ?> <?php if( $_loggedin ) : ?> // your ...

View answer
Magento2 - Add custom javascript to 'My Account' page
Accepted answer
2 votes

Hope you doing well! To way right there. 1: in your theme create new layout file in <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...

View answer
Magento 2 : Need to redirect on custom menu page instead of dashboard after login in admin panel
2 votes

Please follow this. Stores->Configuration->ADVANCED->Admin->Startup Page

View answer
Magento 2 UI component- Element argument is not allowed here
Accepted answer
2 votes

Go to File > Setting > Plugins > search text ('Magento2'); install this plugin after that click regenerated urn map and reindex in Magento2 Plugin config . Good luck!

View answer
How to put a PHP function in a Button "on click" attribute?
1 votes

This is my idea hope it help. In getButtonData() function add on_click to javascript function something like 'saveHeader()' add your template in layout call to UI form: sample we have MODULE-...

View answer
How to fix product import Add/Update loading issue?
1 votes

You should split the importing sheet into multiple parts and then import it. I got same issue when try to import large data.

View answer
Cant access images in /pub/media/customer
1 votes

I have resloved this issue with pub/media/customer on nginx server after change option on nginx.config.sample on root magento folder. #location /media/customer/ { # deny all; #} then reload ...

View answer
There are no commands defined in the "cache" namespace
1 votes

I got same issue [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "cache" namespace. I checked in my source lost file etc/evn.php. Push on ...

View answer
Navigation Links for CMS Pages
Accepted answer
1 votes

1- Create topmenu.phtml in design/frontend/magento/you_theme/Mageto_Theme/templates/html/topmenu.phtml <?php /** * Top menu for store * * @see \Magento\Theme\Block\Html\Topmenu */ ?> <?...

View answer
How to call function Clean cache in magento2?
1 votes

use function clean($arrayCateTags) in \Magento\Framework\App\Cache

View answer
Delete all images in pub/media/catalog/product not linked to any product
0 votes

I am using Hackathon EAV cleaner module for remove unused images. After installation you can use the command eav:media:remove-unused this is a module https://github.com/magento-hackathon/EAVCleaner/...

View answer
How to show an image as "Option Label" in admin form multi-select field in Magento 2
0 votes

I think NO way to do if you using default magento/ui template. Because your code is using magento/ui component ui/form/element/multiselect. In template have this code optionsText: 'label'. So I think ...

View answer
Should cron jobs get terminated or run forever?
0 votes

Maybe you are not config for Cron jobs and current is using default config. To check Cron schedule tasks. Go to admin > stores > configuration > system > Cron (Scheduled) Task. Hope it ...

View answer
After upgrade from 2.3.4 to 2.3.5 got compilation error with module
0 votes

Edit function __construct() in file Aitoc/ProductFileAttachments/Block/Product/Attachments.php. __construct( .... ){ .... parent::__construct( $context, $data ); }

View answer
Magento 2 Category Custom attribute doesn't exists error
0 votes

Error: You are type wrong field name. Have a look file Setup\InstallDate.php you created new field is custom_text but in category_form.xml you type is banner_text. Fix: So you need change custom_text ...

View answer
Magento2 - Add multiple shipping methods to cities within a specific country?
0 votes

Default magento 2 allow to set multi shipping address for each items in one order. Step 1: you need go to config to Allow Shipping to Multiple Addresses. Magento admin > Store -> configuration -> ...

View answer
Magento 2 : Overriding model gives gateway error
0 votes

Your di.xml should edit like this <preference for="Magento\Company\Model\Role\Validator" type="OSE\Company\Model\Role\Validator" /> and create Validator.php in directory app\code\OSE\Company\...

View answer
Magento 2 Which Index should set "Index By Schedule" or "Update On Save" for performance purpose?
0 votes

All Indexer should be set "Update On Schedule". If you wanna update at that times you changes can run magento cli reindex via SSH.

View answer
Magento2.2.5 make root.phtml load from child theme folder
0 votes

Updated Please follow step. 1) create custom root.phtml in this folder. app/design/frontend/child_theme/Magento_Theme/templates/root.phtml 2) clear cache: bin/magento cache:clean

View answer
Magento 2 issue diffence CSS content on same file domain/pub/static/.../file.css and domain/static/.../files.css?
0 votes

RESOLVED, This issue come from cloudflare CDN just go to Purge Cache on cloudflare.

View answer
Magento Delete all Product Images
0 votes

I used to Kevando on magento 2.2.7 but when import images again will not exactly. So this is my answers it's be tested. SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE catalog_product_entity_media_gallery;...

View answer
Magento Memory issue for installing extensions
0 votes

I got same issue, This's my code to run it: php -d memory_limit=-1 bin/magento setup:upgrade.

View answer
Magento 2 How to remove menu item in admin portal?
0 votes

If item is category u can check option Include in Navigation Menu No in product->categories.

View answer
How to define/change baseurl in config for magento 2.0?
0 votes

U can find this in Store->Configuration->General->Web->Base URLs

View answer
How to create custom page in magento2 which include one textbox and list off payment methods
0 votes

I have idea. maybe help you. 1: create a module and your template in this module. 2: create page in cms and add code in content tab. {{block class="Namespace\Modulename\Block\Blockname" template="...

View answer
how do save customer session in magento2?
0 votes

When i add $this->_customerSession->regenerateId(); $sessionOrderBy = $this->_customerSession->setSortOrderBy('2'); it work.

View answer
custom xml get error is not valid?
0 votes

I'm tried comment <?xml version="1.0"?> in default.xml is work!.

View answer
How to disable or hide the core ACL resources in Magento 2
-2 votes

u can set value 0 in app/etc/config.php

View answer