In your custom layout file include the below script.
Preferred Location preferredlocation/edit
Preferred Location preferredlocation/edit
In your shell type the below command to install ntp
# yum install ntp
Turn on ntp service
# chkconfig ntpd on
Synchronize system clock with 0.pool.ntp.org server:
# ntpdate pool.ntp.org
Start the NTP service:
# /etc/init.d/ntpd start
Now check whether this has solved the cookie problem. If not try the following. comment the below lines in "/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php".
if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}
if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();
}
$attribute_code = $_item->getFilter()->getAttributeModel()->getAttributeCode();
$this->formatDate($product->getSpecialToDate())
$price = $_product->getPrice();
$specialprice = $_product->getFinalPrice();
if($specialprice != $price)
{
//your stuff here
echo $specialprice;
}