yvesima Posted November 15, 2017 Share Posted November 15, 2017 Hello i' m on Presta 1.6.1.17 I want to move on https. All is ok just one link is still on http Whan i look on the template (.tpl) source i've this code href="{$link->getPageLink('cart' i don't know where is incremented this variable Please can you help me Thanks Link to comment Share on other sites More sharing options...
selectshop.at Posted November 15, 2017 Share Posted November 15, 2017 It is a problem of the theme in use. See also here same problem: https://www.prestashop.com/forums/topic/635630-change-http-to-https/?do=findComment&comment=2633445 Native Prestashop themes form the link correctly if SSL-certificate is implemented. Link to comment Share on other sites More sharing options...
selectshop.at Posted November 15, 2017 Share Posted November 15, 2017 For PS 1.6. responsible file for to get https link is: /config/config.inc.php this block /* Link should also be initialized in the context here for retrocompatibility */ $https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://'; $context->link = new Link($https_link, $https_link); /** Link to comment Share on other sites More sharing options...
yvesima Posted November 16, 2017 Author Share Posted November 16, 2017 Hi Thanks for your quick replies Al is ok as you tell i don't see what is the reason Thanks Link to comment Share on other sites More sharing options...
selectshop.at Posted November 16, 2017 Share Posted November 16, 2017 If you tell us the URL of your page, we can take a look on it. Link to comment Share on other sites More sharing options...
yvesima Posted November 18, 2017 Author Share Posted November 18, 2017 Hi thanks for your reply i ve sent you the url and the pic on private message Thanls for your help Link to comment Share on other sites More sharing options...
selectshop.at Posted November 19, 2017 Share Posted November 19, 2017 As I said, it is a third party development not respecting Prestashop standard rules. You should ask for assistance of theme developer. Link to comment Share on other sites More sharing options...
yvesima Posted November 20, 2017 Author Share Posted November 20, 2017 Thanks for your reply That's what I feared THANKS Link to comment Share on other sites More sharing options...
selectshop.at Posted November 20, 2017 Share Posted November 20, 2017 Take a look into the link I added before. One developer has also answered there:https://www.prestashop.com/forums/topic/635630-change-http-to-https/ Link to comment Share on other sites More sharing options...
yvesima Posted December 19, 2017 Author Share Posted December 19, 2017 Thanks for your reply That's what I feared THANKS Link to comment Share on other sites More sharing options...
yvesima Posted December 19, 2017 Author Share Posted December 19, 2017 Hi i ve send a post to the developper but no reply since...........and several reminders It was a recommanded theme by prestashop I ve changed a lot of basedir by {if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if} but there is one ajax link whicch not work in a .tpl file i've {if ($product.allow_oosp || $product.quantity > 0)} <p class="addcart_icon"> {if isset($static_token)} <a class="button ajax_add_to_cart_button " href="{$link->getPageLink('cart',true, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='tvhomeproducttab2'}" data-id-product="{$product.id_product|intval}"></a> {else} <a class="button ajax_add_to_cart_button " href="{$link->getPageLink('cart',true, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='tvhomeproducttab2'}" data-id-product="{$product.id_product|intval}"></a> {/if} </p> {/if} so i've searched in classes Link.php and i put a trace which shows https and not http $uri_path = Dispatcher::getInstance()->createUrl($controller, $id_lang, $request, false, '', $id_shop); echo($this->getBaseLink($id_shop, $ssl, $relative_protocol).$this->getLangLink($id_lang, null, $id_shop).ltrim($uri_path, '/')); echo '<br>'.__LINE__; return $this->getBaseLink($id_shop, $ssl, $relative_protocol).$this->getLangLink($id_lang, null, $id_shop).ltrim($uri_path, '/'); So i see the trace https but the link stays at http i've empty all cache... i don't understand what happen Can somebody help me? Hope to be clear... Thanks Link to comment Share on other sites More sharing options...
yvesima Posted January 4, 2018 Author Share Posted January 4, 2018 Hi HELP please is there anybody who can help me? i'm very bored Thanks thanks 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