Through the past 12 months, all of our Magento deployments go on AWS EC2. Their infrastructure, prices, and their ability to auto scale properly make it very attractive for companies to host on AWS. We’ll eventually share our terraform scripts for deploying Magento 1 or Magento 2 on AWS, however today we’ll share the automated script we use to setup Amazon Linux with the right packages in order to run Magento successfully.
How to Properly Add an External JS/CSS file to Magento10:40 am
How to Check for HTTPS in Magento phtml Files?7:01 am
These days our eCommerce pages are littered with third party social bookmarking tools, social media tools, facebook like buttons, add this buttons, and third party marketing scripts. It is easy to lose track of the most basic aspect of your shopping carts’ security: valid HTTPS pages. Here is a quick way to isolate all of these third party utilities and simply avoid using them in the HTTPS pages:
Add Custom Tabs to Product Edit page in Magento Admin Panel6:00 am
Just a quick note this time on a great way to introduce tabs into the product edit page in the Magento Admin panel: via the
Fix for Multi Store View Bug in Magento12:54 pm
There is a pretty nasty bug in Magento if you are using multi store view with configurable products. I have recently patched it nicely with an extension that overrides the original controller method. This is a much nicer fix than actually hacking the core files which can then break in the next upgrade.
Retrieving the Collection of Enabled Grouped Products in Magento7:15 am
Retrieving the collection of enabled grouped products in Magento, programmatically. Also note that various options available.
Bulk Copying Product Attributes in Magento5:11 pm
This static method can copy attributes between products in Magento very fast and relatively secure. We are bypassing the main Magento architecture and accessing the Database directly, but notice we are using the Zend framework for the db query and we still use DB transactions. It accepts the source product ID (not SKU), destination product ID, the array of attribute codes (‘size’, ‘color’, ‘name’, etc.), and the attribute type (‘varchar’, ‘int’, etc.).
How to Change Index Status to REINDEX REQUIRED in Magento1:10 pm
Indexing and index processes were introduced in Magento since version 1.4.x. Here is how you can set one index to ‘REINDEX REQUIRED’ with code programmatically.