Category: PHP

Magento – Change URL of Uploaded WYSIWYG Image Paths

While working on a Magento CE 1.7 site, the client was tired of seeing crazy URLs for his uploaded images (directives!) for everything that he was uploading through his WYSIWYG editor for products, CMS pages, etc. I wanted to change

Posted in Magento, Magento Enterprise, PHP, WYSIWYG

Magento – Getting Store Information, Name, Codes, etc

Just a quick post tonight – came across a site that I wanted to use a PHP Dynamic Copyright function, but wanted to use the Magento Store Names due to multiple storefronts being used. A quick list of Magento’s store

Posted in Magento, Magento Enterprise, PHP

Using cURL to Show Instagram Photos on your Website

While creating a “Social” page for a client, I came across an issue with displaying the users’ feed of new images from Instagram. The solution we came up with was to use Statigr.am’s awesome RSS feed, cURL, and SimpleXML within

Posted in Instagram, PHP, Statigram

Magento – Set Order Status Programmatically

While working on a project this evening, I was tasked with setting the order status of all orders within September to Complete automatically, no notifications to the customer, and a comment was needed for exporting later. Below is how it

Posted in Magento, Magento Enterprise, PHP

Magento – Get Orders within a Specified Date Range Collection

A quick update again! I needed to grab all orders within a specific time frame, and run a cron job each day to grab the past 7 days worth of orders that were not set to Complete. Below is how

Posted in Magento, Magento Enterprise, PHP

Magento – Check for Secure / Unsecure URLs in code

Here’s a quick way to check if you are in a secure URL, such as would happen if you have “Use Secure URLs in Frontend” enabled. This code can be placed within phtml files to check the URL.

Posted in Magento, Magento Enterprise, Magento Professional, PHP

PHP Dynamic Copyright Date – Echo the Year

Just a short update today – a way to dynamically output the year with PHP, so your site always stays updated! One less thing to worry about. This will output in a format, say “© 2010 – 2012 My awesome

Posted in PHP

Magento 1.7 Released with Tons of Improvements!

Just a quick update here! If you haven’t already seen the gigantic list of additions, improvements, and fixes in Magento 1.7 (Community Edition, EE was also updated), you should! Some of my favorite updates: – Auto Generation of Coupon Codes

Posted in Magento, Magento Enterprise, Magento Fixes, Mobile Development, PHP

Moving the Magento Breadcrumbs

The breadcrumbs in Magento’s default layout are fairly well placed, but lets say you want to move them to the header.phtml file? How do you go about moving it, because you cannot simply cut the out of the page template

Posted in Magento, Magento Enterprise, Magento Fixes, Magento Professional, PHP

Magento – Delete Products Programmatically

In a previous post, I showed how to delete products in the Magento catalog using the SOAP API. In this post, we’ll be using a simple method using our Mage class, and removing products via the Magento Mage calls. Using

Posted in Magento, Magento Enterprise, Magento Fixes, Magento Professional, PHP