Ricardo Martins
  • Member for 8 years, 11 months
  • Last seen this week
Magento 2 product image in new order email
Accepted answer
18 votes

I did that by copying vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml to my template folder app/design/frontend/[VENDOR]/[TEMPLATE]/Magento_Sales/templates/email/...

View answer
500 after install - Class Magento\Framework\App\ResourceConnection\Proxy does not exist
7 votes

Delete composer autoload (vendor/autoload.php) as suggested by @JELLEJ and type composer install in magento root folder to recreate it. It worked for me on Magento 2.3.5-p1 (but should work in other ...

View answer
Magento2 checkout/onepage/success redirects to cart
7 votes

Look very carefully to your var/log/system.log. In my case, I was missing some important information there and the problem was Redis. The session was being locked by some other process and didn't ...

View answer
Why does magento need to load all labels from universe to build color swatches?
Accepted answer
7 votes

I've created a module to override \Mage_ConfigurableSwatches_Model_Resource_Catalog_Product_Attribute_Super_Collection::_loadOptionLabels with the following: protected function _loadOptionLabels() { ...

View answer
When to use 'name' and when to use 'as'
6 votes

When you use as, you can call $this->getChildHtml("as_value") on the phtml template. The name must be unique, and can be used for < reference > blocks, < remove >, etc. For example (catalog....

View answer
echo in controller
Accepted answer
5 votes

You must use $this->getResponse()->setBody('your echo');

View answer
Where to download magento security patches
4 votes

You can download it here https://github.com/akai-z/magento1-os-patches Or SUPEE-11346 directly. And for old Magento versions (and old docs): https://www.magenteiro.com/blog/magento-1/magento1-...

View answer
Magento 2: What is difference between Cache Clean & Cache Flush?
4 votes

Quoting Fabrizio Branca for this one: (...) Magento that comes with those two different actions in the first place (you'll also find two buttons on the cache management page). While cache:...

View answer
Magento place order redirects to shopping cart empty
4 votes

I was facing this problem on Magento 2, and realized it only happens when using Redis. The problem was solved by increasing break_after_frontend from 5 to 15 in app/etc/env.php. I saw people ...

View answer
Magento 2 : Not loading all the core Api's in swagger
4 votes

It seems that after authenticating and adding the API key on the top we can get all methods. However, the error displayed on the botton is because the ajax request to online.swagger.io returns the ...

View answer
Magento 2: How to get resize image for Custom Module?
4 votes

I'm afraid you don't need to create new classes for resizing your images, since Magento helpers already have it (see \Magento\Catalog\Helper\Image::resize). So, you can just do: $_imageHelper = \...

View answer
Magento 2: Show pending payment order in store front
3 votes

Click on Assign status to state button above (Stores > Order Status) and you'll be able to change that. Important note for Pending Payments If you have a "pending payment" status order, ...

View answer
Getting Missing required argument $routerList of Magento\Framework\App\RouterList in Magento 2
3 votes

Just run bin/magento module:enable --all to regenerate config.php, and then bin/magento setup:upgrade.

View answer
Security Patch SUPEE-9767 - Possible issues?
3 votes

The patch doesn't work even for a vanilla Magento 1.7.0.2. martins@martinsmac.local:/var/www/magento1702-original$ ./PATCH_SUPEE-9767_CE_1.7.0.2_v1-2017-05-25-09-31-32.sh Checking if patch can be ...

View answer
How to override .phtml files in Magento 2
2 votes

Classy Llama did a good job on an article that shows multiple situations and how to override template files in each of them. https://www.classyllama.com/blog/template-override-m2 It helped me when I ...

View answer
"invalid form key. please refresh the page" - cannot login to admin panel
2 votes

In my case the problem seems to be because I've created the admin user using n98-magerun with an user that cannot write on magentofolder/var and used the fallback folder /tmp/magento instead. I just ...

View answer
How to get root directory path in a phtml magento 2?
2 votes

I prefer Alan Storm's approach. $object_manager = MagentoCoreModelObjectManager::getInstance(); $dir = $object_manager->get('MagentoAppDir'); $base = $dir->getDir(); $media = $dir-&...

View answer
How does MageReport determine if patch 9767 is installed?
2 votes

If it helps, here are the requests made by Magereport.com with the check I did today: 188.166.64.179 - - [21/Aug/2017:14:39:43 +1000] "GET / HTTP/1.1 "200 14922 "-" "Mozilla/5.0 (www.magereport.com/...

View answer
SOLVED - How to override email/items.phtml?
2 votes

As yourself said editing the question, I'll just paste here the solution you (Tipo) found: Found the solution: I tried all the time to change the template in this way: <body> <...

View answer
Magento Backend 404 for all but two "Website" configuration scopes
2 votes

I had similar issue on single-website store, and solved with the following query. SET SQL_SAFE_UPDATES=0; SET FOREIGN_KEY_CHECKS=0; UPDATE `core_store` SET store_id = 0 WHERE code='admin'; UPDATE `...

View answer
"No alive nodes found in your cluster" error in magento 2.1.6 after elasticsearch
1 votes

1. Check if ElasticSearch is working and accessible from Magento server In order to test your connection, log in to your SSH and type curl http://localhost:9200 If you get a JSon as response, your ...

View answer
Can anyone help me fix this error regarding 404 Media_URL styles.css?
1 votes

This is (usually) caused when reinstalling a store with sample data with missing modules. This specific css is required in the theme configuration in the admin area (Content > Visual > ...

View answer
Magento 1.9 Recurring profile error
Accepted answer
1 votes

The problem is that Magento have created this foreign key expecting that the customer specified in sales_recurring_profile table exists in customer_entity table. The problem is that (out of the box) ...

View answer
Magento 1.9 admin and frontend always shows 404 not found
1 votes

Try these steps: Check if you are accessing the correct admin url (see admin...frontName node in app/etc/local.xml file) Try to run the sql below: SET SQL_SAFE_UPDATES=0; SET FOREIGN_KEY_CHECKS=0; ...

View answer
custom transactional email special characters issue
1 votes

If you're using Ashroder_SMTPPro module, and you use the @Alexglvr's approach above, you'll always be sending emails using sendmail (instead the configured method on SMTPPro). If you want to use your ...

View answer
setup:di:compile in the different modes
1 votes

Theorically you don't need (and you shouldn't) to run setup:di:compile when in developer mode. However, once you do that, Magento will generate the compiled classes under /generated/code (/var/...

View answer
Force HTTPS on all pages in the frontend, not just Checkout/Account
1 votes

Most approaches on .htaccess would redirect most pages to home when accessed via http. Example: http://www.mystore.com/productA.html => http://www.mystore.com/ instead of https://www.mystore.com/...

View answer
Mage::log() not working on new Magento update (1.9.4.1)
1 votes

My temporary solution was to copy lib/Zend/Validate/File/Extension.php to app/code/local/Zend/Validate/File/Extension.php and remove this part of the code from isValid() method: // Is file ...

View answer
Magento 2 module install error "data: current version - none, required version 2.0.0"
1 votes

Just update your setup_module table with the required version, or delete in case of NULL required. In your case, just put 2.0.0 on data column.

View answer
Magento 2: change template for block in "sales.email.order.renderers"
1 votes

You can just copy vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml to app/design/frontend/[VENDOR]/[THEME]/Magento_Sales/templates/email/items/order/default.phtml ...

View answer