Jump to content

product.tpl instead of index.tpl


maz0193

Recommended Posts

hello,

is that someone can help me to have this option on my website:

must be the only product that I have on my shop with its versions ( attributes)  is displayed on the homepage of the site.so, i need to have  product.tpl instead of index.tpl.

 

so, When I click on HOME in Prestashop I want to go to my main product page.

my version is : 1.5.6

 

thank you very much for your help

Link to comment
Share on other sites

hi, 

this is very good that you have done, there is a final request:
when you click on the logo to return to homepage we, the link becomes: mywebsite.com / index.php id_product = 1 & controller = product?
is there a possibility to have this link: mywebsite.com without (index.php id_product = 1 & controller = product?)
Link to comment
Share on other sites

sounds strange, mainly because logo always redirects to the homepage ($base_dir variable contains always url to homepage)

 

make sure that you''ve got this code:

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">
					<img class="logo" src="{$logo_url}" 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>

in header.tpl file where the logo appears.

Link to comment
Share on other sites

yes I know but now even if I put in the navigation bar : www.mywebsite.com it goes directly to: www.mywebsite.com/index.php?id_product=1&controller=product

{$ base_dir}  became www.mywebsite.com/index.php?id_product=1&controller=product instead www.mywebsite.com

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