Jump to content

Adding twitter and face book to blockcontact


f8dev

Recommended Posts

Hi all,

I am new top prestashop customisation so bear with me.

I know I can hard code the twitter and facebook stuff in to nav.tpl, but what I would like to do is pull the sites facebook and twitter urls.

For example in blocksocial this generates $facebookurl and $twitterurl, I don't think I can access these variables as they are in a different module?

Will I need to alter the module so the user enters the facebook and twitter details in the back end of this module or is there a way of accessing the sites configured facebook and twitter details?

 

 

Link to comment
Share on other sites

unfortunately, as long as variable is a part of external module - you can't use it in different part of shop

in this case you have to customize controller (frontController) or module that displays elements in nav.tpl file (in displayNav hook)

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...