Andrew McCombe


Full Stack Web Developer

Magento: remove admin mass action for specific role

I had a use case where a Magento admin user was limited to viewing the orders only. They should be able to view orders but not perform any actions on an order. The best way to do this with Magento is to remove admin mass actions for a specific user role.


Magento: Remove specific tabs from product edit in admin

Here’s how to remove specific tabs from Magento’s admin product edit pages.


How to upgrade Magento 2 to a later version

Here’s how to upgrade Magento 2 to a later version. For example, if you are currently running 2.1.6 and you need to upgrade to 2.1.7.


How to get the URL of a CMS page or a static block in Magento

Here’s how to get the URL of a CMS page or a static block in Magento.


Magento Snippet: Use a Group By clause on a collection model

Here’s a Magento snippet showing how to use a Group By clause on a Magento collection model.


Magento Custom Variables

Magento provides an interface for you to define your own custom variables. You can use these in CMS pages, static blocks, email templates and phtml templates. Here’s how to use them.


Testing Magento Email with Mailtrap.io

Have you discovered how hard it is when testing Magento email? Have you ever tried getting Magento to use a separate SMTP server to send emails? I have, and got very frustrated with it. My solution to testing magento email is to use Mailtrap.io.


How to backup and restore with Magento 2

Magento 2 comes with built-in functionality to backup and restore the code, media, and database. You can choose to backup and restore code, media, or database separately. Here’s how to backup and restore with Magento 2.


Product and Breadcrumb Rich Snippets in Magento

Here’s how to add products and breadcrumb Rich Snippets in Magento.


Magento Snippet: How to set and get cookies in Magento

Here’s how to get and set cookies in Magento.