Jump to content

Product page social buttons


Recommended Posts

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...