Magento Forum

   
Custom date/time attribute
 
code2012
Member
 
Total Posts:  37
Joined:  2012-09-17
 

I want to create an attribute for entering date and time on product page from calender.
I have created the attribute and its value is also storing in database but after saving the product the value is not displaying in the particular field in magento 1.6.1. Can anyone help?

 
Magento Community Magento Community
Magento Community
Magento Community
 
quicksand14
Sr. Member
 
Total Posts:  150
Joined:  2010-09-30
 

You will need the code on the frontend of your theme to display this in your theme.

It would look something like this

<?php echo $_product->getAttributeText(\'yourAttributeNameHere\'); ?>

You will put that in app/design/frontend/packname/themename/template/catalog/product/view.phtml most likely.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top