phantom13 Posted March 17, 2015 Share Posted March 17, 2015 Hi, Can anyone help me replace the highlighted social buttons (view picture here) from the product page with this kind of buttons (see picture here) ? * Note: I do not want to change the position of the buttons. Insted of the buttons in picture 1 I want the buttons from picture 2 but in same position. Thanks! Link to comment Share on other sites More sharing options...
jgamio Posted March 17, 2015 Share Posted March 17, 2015 You need to change the the socialsharing module You want the real buttons you have to create you facebook, twitter pinteret from each social media page Change the tpl on your module then put the code from aech page PD: Links to social media are nice but slow donw your page because they need accesss each social media page to get the conter Link to comment Share on other sites More sharing options...
Paulito Posted March 17, 2015 Share Posted March 17, 2015 Hello I hope @jgamio answer helps you but it is a good idea not to post the same topic in two forums Paul Link to comment Share on other sites More sharing options...
phantom13 Posted March 17, 2015 Author Share Posted March 17, 2015 Hi, Thanks for the solution, but can you please go in detail? (button generation is not an issue, encoding them into the .tpl is ... how do I insert a link / javascript there) I know it will slow down, but it's nice UX Also do you happend to know how to remove the button between email and print in the lower section? The one labeled 'Distribuiuți pe Facebook!' ? Paulito: I know, I'm sorry but I have realized that I posted in the wrong section and I do not know how to delete topic. Thanks again Link to comment Share on other sites More sharing options...
jgamio Posted March 17, 2015 Share Posted March 17, 2015 Ok go to your themes chapter themes->YOURTHEME->modules If you dont have socialsharing chapter (I think by default is not there ) you need create Copy the socialsharing.tp from modules->socialsharing->view->hook to your new chapter then you can se {if $PS_SC_TWITTER} HERE {/if} HERE is the actual code you need remplace for you new button The javascript part dont sure if you have to put here or coping the socialsahring_header.tpl but the importan is write the scrit inside {literal}HERE SCRIPT{/literal} Link to comment Share on other sites More sharing options...
phantom13 Posted March 18, 2015 Author Share Posted March 18, 2015 jgamio: Thanks a lot for the suggestion, I have actually managed to insert the buttons there (including database changes) but I am not able to properly set the URL's to the product for the Facebook Like button and Facebook share button (they need to automatically take the product url). Also once shared or liked they don't change the status...it still says like and share. Shouldn't they change to unlike and shared or something like that? Thanks Link to comment Share on other sites More sharing options...
jgamio Posted March 18, 2015 Share Posted March 18, 2015 OK I dont sure but 1) Change data-href="{$link->getProductLink($product)}" 2) I dont know because I havent use the social buttons 1 Link to comment Share on other sites More sharing options...
phantom13 Posted March 18, 2015 Author Share Posted March 18, 2015 Thanks for the short time answer. Will try it soon and come back with a feedback. 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