View Single Post
  #992  
Old 06-04-2015, 07:39 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by Freakmode
With the Social Sharing option on each product the Pinterest button does not show an image when used
Try the following

In skin/reboot/custom/product_sharing_buttons.tpl

Change:
Code:
<a class="btn btn-danger ttip_n" title="Pinterest" href="//pinterest.com/pin/create/button/?url={$http_location}/{$canonical_url}&media={$http_location}/image.php?type=T&id={$product.productid}&description={$product.product}" target="_blank"> <i class="fa fa-pinterest"></i> </a>
To:
Code:
<a class="btn btn-danger ttip_n" title="Pinterest" href="//pinterest.com/pin/create/button/?url={$http_location}{$smarty.server.REQUEST_URI}&media={$product.image_url|amp}&id={$product.productcode}&description={$product.product}" target="_blank"> <i class="fa fa-pinterest"></i> </a>

If your store is HTTPS see Steve's post http://forum.x-cart.com/showpost.php?p=384126&postcount=13 to set $http_location = $https_location so you don't have to manually change the {$http_location} code in all your templates.
__________________
WooCommerce as of 10/2022
Reply With Quote