midana Posted January 24, 2015 Share Posted January 24, 2015 I have added sharing icons called Sharrre. It works great, but the button for pinterest doesn't work fully. It says image_url is not there.. I have tried calling the products image but I don't know how.. :/ Here's how it looks: $('#pinterest').sharrre({ share: { pinterest: true }, template: '<a class="box" href="#"><div class="share btn btn-default btn-pinterest social-sharing"><span></span></div><div class="count" href="#">{total}</div></a>', enableHover: false, media: '{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}', layout: 'horizontal' enableTracking: true, click: function(api, options){ api.simulateClick(); api.openPopup('pinterest'); } }); I added: media: '{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}', and I don't know whatelse I can try there to get the products image url. Anyone who knows? Thanks <3 Link to comment Share on other sites More sharing options...
midana Posted February 1, 2015 Author Share Posted February 1, 2015 Anyone? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now