Jump to content

How do i create separate template file for product quick view only?


PrabuSS

Recommended Posts

Hi

 

In default product.tpl file serving the layout design of product quick view popup in most of the theme. I would like to create separate template file for product quick view it self. And will need to change the layout on that file.

 

How do i achieve this?

 

Please any one 

 

PS version : 1.6.1.7

 

Site url : https://www.applesupported.nl/presta_test

Edited by Prabukaran (see edit history)
Link to comment
Share on other sites

This is very simple all you need to do is check if it is quickview view, if yes you include another template file.

In product.tpl add something like this:

{if $content_only}
{include file="$tpl_dir./your_custom_popup_view_file.tpl"}
{else}
HERE REST OF PRODUCT.TPL FILE CONTENT
{/if}
Link to comment
Share on other sites

 

This is very simple all you need to do is check if it is quickview view, if yes you include another template file.

In product.tpl add something like this:

{if $content_only}
{include file="$tpl_dir./your_custom_popup_view_file.tpl"}
{else}
HERE REST OF PRODUCT.TPL FILE CONTENT
{/if}

 

Hi finally I've found the place to add your code. Its working like a charm. Credits goes to you only. Thanks a lot!!!

 

One more thing please. I would like to add link like "more details" in quick view popup it will redirect the users to appropriate product page? How do i do this?

Edited by Prabukaran (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...