Tag Archives: programming

Absolute Pricing in Magento

For some reason, Magento will only allow you to show the difference an option will have on the price of a configurable product. For example, if you are selling a shirt for $15, but the extra larges cost $17, the extra large option would show (+$2). And, while this makes sense to me, it does [...]
Posted in General | Also tagged , , | 1 Comment

Internet Explorer 6 Magic CSS Hack

This little line of code put into a conditional stylesheet for IE6 will work wonders: * html div {overflow-x: hidden;}
Posted in General | Also tagged , | Leave a comment

Shadowbox is Undefined

If you are experiencing this error in Internet Explorer, I think it is related to bug in the base Shadowbox adapter. So, I like to solve this by using the jquery adapter. If you are using version 3.0b, this can be done simply by loading jquery before loading shadowbox. I like to pull jquery from [...]
Posted in General | Also tagged , , , , , | Leave a comment

Custom Scaffolding Theme (Symfony)

Copy the default theme from [sfPropelPlugin]data/generator/sfPropelCrud/default/theme to data/generator/sfPropelCrud/default/theme Edit the files in data/generator/sfPropelCrud/default/theme/templates as you would with an admin template. Generate like usual: ./symfony propel:generate-crud [app] [module] [base] Derived from: http://www.playingwithwire.com/2007/02/review-of-the-definitive-guide-to-symfony/
Posted in General | Also tagged , | Leave a comment

PHP UUID generator function

Via: http://www.ajaxray.com/blog/2008/02/06/php-uuid-generator-function/ /** * Generates an UUID * * @author Anis uddin Ahmad * @param string an optional prefix * @return string the formatted uuid */ function uuid($prefix = ”) { $chars = md5(uniqid(rand())); $uuid = substr($chars,0,8) . '-'; $uuid .= substr($chars,8,4) . '-'; $uuid .= substr($chars,12,4) . '-'; $uuid .= substr($chars,16,4) . '-'; $uuid [...]
Posted in General | Also tagged | 1 Comment