-- url of the page with the problem -- :
daniellefenningdesigns.com/
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : All browsers
The Pinterest social button is not appearing anywhere in my shop. I am using the latest version of Hikashop with the https code below. Is there something else I'm not doing?
function _addPinterestButton(&$plugin){
$product = $this->_getProductInfo();
$imageUrl = $this->_getImageURL($product->product_id);
if($plugin->params==0){
if($plugin->params==0){ $count='horizontal'; $div="<span class='hikashop_social_pinterest'>";}
if($plugin->params==1){ $count='vertical'; $div="<span class='hikashop_social_pinterest'>";}
if($plugin->params==2){ $count='none'; $div="<span class='hikashop_social_pinterest'>";}
}else{
if($plugin->params==0){ $count='horizontal'; $div="<span class='hikashop_social_pinterest_right'>";}
if($plugin->params==1){ $count='vertical'; $div="<span class='hikashop_social_pinterest_right'>";}
if($plugin->params==2){ $count='none'; $div="<span class='hikashop_social_pinterest_right'>";}
}
if(isset($product->product_canonical) && !empty($product->product_canonical)){
$url = hikashop_cleanURL($product->product_canonical);
}else{
$url=hikashop_currentURL('',false);
}
$html=$div.'<a href="http'.$this->https.'://pinterest.com/pin/create/button/?url='.urlencode($url).'&media='.urlencode($imageUrl).'&description='.htmlspecialchars(strip_tags($product->product_description), ENT_COMPAT,'UTF-8').'" class="pin-it-button" count-layout="'.$count.'"><img border="0" src="
assets.pinterest.com/images/PinExt.png
" title="Pin It" /></a></span>';
return $html;