Change Magento Base Url

In a some infuriating day, I have discovered there is one more step to changing a Magneto base url than most people list. It's a rare problem, and not one I expect most people will find.

The standard steps for changing magento's base url are:


Drupal Migration from Location to Address Field Mapping

With Location module quickly becoming obsolete, replaced by the dedicated separate modules: addressfield, geofield, and geocoder, it's handy to have a copy paste mapping to translate the data. Here's a field map from location to addressfield format for you.

Bulk Updating Magento Product Prices

Had a client that needed to increase their prices by 1.58%, across the entire store. They used base product prices on configurable products with super options that had their own price modifications. Think: Product A - $10. Option A (`12 oz ) +$2. The sql queries below will update the product tables as required. Note that these work only on static price adjustments, not percentage. Though, that should be easy enough to figure out given the below tables


Adding Canonical Tags To a View

The Metatags module is great. The things it does automatically across the system is really fantastic, but there's one major problem. It can't add tags to views. That's not so bad, except that paged data might really benefit from canonical links. There are multiple modules in development right now that could be used to solve this issue, but nothing I've found that is really solid. So, here is a simple hook fix you could implement from a custom module to handle the gap for now.



Subscribe to Fragmented Thought RSS