Jump to content

best way to get in prestashop if force ssl is activated


wayann

Recommended Posts

Hi folks!

$this->context->smarty->tpl_vars['force_ssl']->value

I'm calling this from a module override. ( I'm overriding the socialsharing module )

 

I just need to form an url path to an image that will work no matter if force ssl is turned on or off.

 

is this ok? or there's a better way to do it?

Edited by wayann (see edit history)
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...