//value or label which you select in back end
echo $_product->getResource()->getAttribute('size')->getFrontend()->getValue($_product);
//label of the attribute
echo $_product->getResource()->getAttribute('size')->getFrontend()->getLabel();
// value or option Id
echo $_product->getSize()
Tuesday, September 13, 2011
Getting or Displaying Attributes value and label of product in magento programmatically
Sunday, September 4, 2011
Sending email from local system in magneto OR Sending email from magento in local system
Hi
we can enable sending email from local system if you working magento in local system
we can send or enable sending email from magento in local system
1) make sure you did setting in php.ini
i'e
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.yourdomine.com
; http://php.net/smtp-port
smtp_port = 25
and in magento go to admin
System->Configuration->System->Mail Sending Setting->host
replace host from localhost to mail.yourdomine.com
we can enable sending email from local system if you working magento in local system
we can send or enable sending email from magento in local system
1) make sure you did setting in php.ini
i'e
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.yourdomine.com
; http://php.net/smtp-port
smtp_port = 25
and in magento go to admin
System->Configuration->System->Mail Sending Setting->host
replace host from localhost to mail.yourdomine.com
Subscribe to:
Posts (Atom)