Search code examples
magentomagento-1.5

Displaying the end time of a category in Magento


How would I go about displaying the "active to" time that you can assign to a category in Magento. Ultimately I plan on using this information to create countdown timers for some short term sales on a client's site - but I cannot figure out what variable to call.


Solution

  • The 'Active Date' is actually a custom design date, so you can call it using getCustomDesignTo() on a category object.

    in design\frontend\base\default\template\catalog\category\view.phtml you can just run,

    echo $_category->getCustomDesignTo();
    

    after the $_category has been loaded.