Our brands

Answer for Quickview not working since i enable SSL on my site

Hello Manuel,
 
Please try to edit the file “app/code/community/Ves/Tempcp/Helper/Data.php”, then find code:
 

public function getQuickviewURL( $product_url = “”) {

if(is_numeric($product_url)) {
return Mage::getUrl(‘vestempcp/quickview/view’).’id/’.$product_url;
} else {
$prodHref = “”;
$prodHref = $this->readHref($product_url);
$prodHref = $prodHref == “/” ? substr($prodHref, 1, strlen($prodHref)) : $prodHref;
$prodHref = trim($prodHref);
return Mage::getUrl(‘vestempcp/quickview/view’).’path’.$prodHref;
}
}

Replace to:
 

public function getQuickviewURL( $product_url = “”) {
$isSecure = false;
if( Mage::app()->getFrontController()->getRequest()->isSecure()) {
$isSecure = true;
}
if(is_numeric($product_url)) {
return Mage::getUrl(‘vestempcp/quickview/view’, array(‘_secure’=> $isSecure)).’id/’.$product_url;
} else {
$prodHref = “”;
$prodHref = $this->readHref($product_url);
$prodHref = $prodHref == “/” ? substr($prodHref, 1, strlen($prodHref)) : $prodHref;
$prodHref = trim($prodHref);
return Mage::getUrl(‘vestempcp/quickview/view’, array(‘_secure’=> $isSecure)).’path’.$prodHref;
}
}

Share this Post!

Panda Thuan
Panda Thuan
Creativity is falling in love with the world
Do NOT follow this link or you will be banned from the site!