tdr170 Posted April 10, 2012 Share Posted April 10, 2012 Hi All: (Prestashop 1.4.7 Std theme) Been trying to change header logo link the code in header tpl is as below no matter what I try I end up with a double link. I want it to lead to the other shepherd site mysite.com/shepherd So lets say as is the link leeds to mysite.com/shop no matter what I try I end up with mysite.com/shop/mysite.com/shepherd. What's the trick here is this link hard coded to the banner somehow. I even went as far as chaging all the code to <a href="nuggetsranchraceway.com/shepherd" target="_blank"><img src="img/logo.jpg" alt="Shepherd Micro Racing" width="980" height="230" border="0"></a> but still got the same double link. (code in header.tpl) <a id="header_logo" href="{$link->getPageLink('index.php')}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> Link to comment Share on other sites More sharing options...
El Patron Posted April 10, 2012 Share Posted April 10, 2012 did you set smarty for re-compile and turn off cache in the back office? Link to comment Share on other sites More sharing options...
Dh42 Posted April 10, 2012 Share Posted April 10, 2012 {$base_dir}../shepard But when your site goes deeper than the main directory, you will be stuck with a broken link. To not get the double link and hardcode it you need http://mysite.com that makes the link absolute and not relative. 2 Link to comment Share on other sites More sharing options...
tdr170 Posted April 10, 2012 Author Share Posted April 10, 2012 I always turn force compile on and cache off when making code changes. (but thanks) Ok thanks DH that works to some degree as the link does change now without the double link however it still contains my shared SSL address that the shepherd site I want to link to does not require. Is there a way to just have it go to the standard http address. My shop uses a shared ssl and to use that I have to change the address form nuggetsranchraceway.com/shop to nuggetsranchracewayc.ipage.com/shop. So what happens when I change to $base_dir is the link goes to nuggetsranchracewayc.ipage.com/shepherd I just want nuggetsranchraceway.com/shepherd. Is this possible or is this just part of using shared SSL. ( I know you don't understand using shared SSL ) But either way thanks for the tip as it does work now. This is how I changed the code <a id="header_logo" href="{$base_dir}../shepherd" title="{$shop_name|escape:'htmlall':'UTF-8'}"> Link to comment Share on other sites More sharing options...
Dh42 Posted April 10, 2012 Share Posted April 10, 2012 You wouldn't be able to drop the ipage out of the shared that url because ipage.com is the actual domain that you are going to. You can make the link absolute and hard code it. Have you tried in the back of your house entering nuggetsranchraceway.com/shop for the site url and nuggetsranchracewayc.ipage.com/shop for the ssl url? Then you could run most of your shop thru your domain name and only switch to the ipage for your checkout process. Link to comment Share on other sites More sharing options...
tdr170 Posted April 10, 2012 Author Share Posted April 10, 2012 Yes thanks your quick. I was just coming back to say that I figured it out by changing to: (thanks to you) <a id="header_logo" href="http://nuggetsranchraceway.com/shepherd" title="{$shop_name|escape:'htmlall':'UTF-8'}"> It forced the page to nuggetsranchraceway.com/shepherd. I was trying before without the HTTP:// part and that does not work. Gave you a LIke. 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