MFreeman Posted April 1, 2016 Share Posted April 1, 2016 I changed the product image on product page to 600x600 and when i press share on facebook it shares the image 600x600 and i crops the image. I want the product image on product page 600x600 but when i share on facebook 600x300 Thank you! Link to comment Share on other sites More sharing options...
NemoPS Posted April 1, 2016 Share Posted April 1, 2016 Do you have a 600x300 image format? If you do, see where the template is outputting open graphs (or better to say, which module does it) and make sure it uses that size instead Link to comment Share on other sites More sharing options...
MFreeman Posted April 1, 2016 Author Share Posted April 1, 2016 In product page i use medium_default (600x600) for the product image and i created a new image size called "socialshare" and its 600x300 I use the module Social sharing that has facebook twiter, pinterest and google Link to comment Share on other sites More sharing options...
NemoPS Posted April 2, 2016 Share Posted April 2, 2016 See if you can find this<meta property="og:image" content="{$link->getImageLink($link_rewrite, $cover.id_image, large_default)}" />It's in socialsharing_header.tpl Change the image type to yours Link to comment Share on other sites More sharing options...
MFreeman Posted April 4, 2016 Author Share Posted April 4, 2016 Hi, ive done what you said and its going somewhere now, but still not working with <meta property="og:image" content="{$link->getImageLink($link_rewrite, $cover.id_image, socialshare)}" /> it creates a url like website.com/32-1/tuyau-inox-simple-paroi-1m.jpg but if i change to website.com/32-socialshare/tuyau-inox-simple-paroi-1m.jpg it works What do i need to change in <meta> to make it work? Link to comment Share on other sites More sharing options...
NemoPS Posted April 5, 2016 Share Posted April 5, 2016 use 'socialshare' with quotes Link to comment Share on other sites More sharing options...
MFreeman Posted April 5, 2016 Author Share Posted April 5, 2016 Now with quotes the URL is good, but when i try to share on facebook it loads the product image 600x600px and not the socialshare one Thank you Nemo for your help Link to comment Share on other sites More sharing options...
NemoPS Posted April 6, 2016 Share Posted April 6, 2016 Odd, I wonder if the plugin is not set to use that on its own in the sharing button config. Might be this, socialsharing.php, line 202 on my version'sharing_img' => addcslashes($this->context->link->getImageLink($product->link_rewrite, $image_cover_id), "'")Try adding the type there Link to comment Share on other sites More sharing options...
MFreeman Posted April 6, 2016 Author Share Posted April 6, 2016 I have to add "socialshare" at the end like this? 'sharing_img' => addcslashes($this->context->link->getImageLink($product->link_rewrite, $image_cover_id), "'socialshare") Link to comment Share on other sites More sharing options...
NemoPS Posted April 8, 2016 Share Posted April 8, 2016 no, inside:'sharing_img' => addcslashes($this->context->link->getImageLink($product->link_rewrite, $image_cover_id, "'socialshare"), "'") Link to comment Share on other sites More sharing options...
MFreeman Posted April 12, 2016 Author Share Posted April 12, 2016 Still not working any other ideias? Thanks alot for your help nemo, youve helped me alot in other prestashop topics Link to comment Share on other sites More sharing options...
NemoPS Posted April 13, 2016 Share Posted April 13, 2016 Totally bugged. What if you just change that to '' ?See if the front image in the code also changes to nothing, otherwise it comes from some other place 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