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 this to something simple – basically, just the wysiwyg URL, which is a readable link for most everyone.
Continue reading “Magento – Change URL of Uploaded WYSIWYG Image Paths” »

Posted in Magento, Magento Enterprise, PHP, WYSIWYG

Magento – AddThis Extension with Bit.ly Shortener Fix

I have noticed that the Magento extension used for AddThis sharing service does not include the necessary calls for using the Bit.ly URL shortening service with Twitter. Within your AddThis account, you can specifically say that you want to use bit.ly to shorten all links over 40 characters when sharing a page with Twitter. However, if you are using the magento extension (and not just the plain ol’ JS calls to AddThis on your pages), this will not call back and work. Luckily, it’s an easy addition!
Continue reading “Magento – AddThis Extension with Bit.ly Shortener Fix” »

Posted in AddThis, Javascript, Magento, Social Media

Magento – Removing “Top 5 Search Terms” from Dashboard.

If you’ve installed the Magento test data, you may notice search terms that you really don’t want/need to show up on the Dashboard once you push a site live. While working on a client’s site, all they were seeing were erroneous terms; computer, Sony, etc were all there. They don’t sell electronics, so this data was throwing off their mojo in really gathering correct data and products to push quickly. Thankfully, there is a really quick way of removing these!
Continue reading “Magento – Removing “Top 5 Search Terms” from Dashboard.” »

Posted in Magento, Magento Enterprise

Magento Admin Editor – “Opener is null” Issue with Inserting Images/Files

While working on a Magento EE 1.12 site, an issue came up that affect mostly Firefox and Chrome, where anytime we would try to Insert File via the Magento Media Manager, nothing would happen. Investigating this lead to an error: TypeError: opener is null in browser.js. Obviously this is a huge issue, and was able to come up with a quick fix:
Continue reading “Magento Admin Editor – “Opener is null” Issue with Inserting Images/Files” »

Posted in Javascript, Magento, Magento Enterprise, Magento Fixes

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 information below: Continue reading “Magento – Getting Store Information, Name, Codes, etc” »

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 PHP to create a most recent images posting.
Continue reading “Using cURL to Show Instagram Photos on your Website” »

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 was accomplished. This was done on Magento Enterprise 1.12
Continue reading “Magento – Set Order Status Programmatically” »

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 I accomplished this.
Continue reading “Magento – Get Orders within a Specified Date Range Collection” »

Posted in Magento, Magento Enterprise, PHP

HTML5 – Add Elements to DOM to Style with CSS – Target IE8

If you’ve started creating your markup with HTML5, using elements such as nav, header, and others, IE8 will need a jump-start to recognize these, and apply your CSS specific rules to them. Read past the break to see some examples of this in work.
Continue reading “HTML5 – Add Elements to DOM to Style with CSS – Target IE8” »

Posted in CSS, HTML, HTML5, Javascript

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.

if (Mage::app()->getStore()->isCurrentlySecure()) { 
    //you are on a secured page
} 
else { 
    //normal, unsecure, http:// URL
}?>
Posted in Magento, Magento Enterprise, Magento Professional, PHP
About Fort Wayne Web Development
FortWayneWebDevelopment.com is specifically a web-development and design blog dedicated to providing answers for common issues, problems, bugs, and requests of popular web-based software, such as Magento eCommerce, Sitefinity CMS, MODx CMS. Alongside these pieces of software, this blog will also feature code snippets to specific programming languages, such as JavaScript (more specifically the jQuery libraries), ASP.Net with C#, PHP, HTML, and CSS.