Jump to content

Force big image on opening product page


Recommended Posts

Our goal :

Force the open of the big image when customers clic on product

 

Now it could be done in 2 steps: choose the product and clic on photo, we want that when the customer clic on the product, that could be automatic.

 

We know that the code is in the product.tpl file and in particular this sentence :

 

{if $have_image}
<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}"
{if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />
{else}
<img src="{$img_prod_dir}{$lang_iso}-default-large.jpg" id="bigpic" alt="" title="{$cover.legend|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" />
{/if}
 
But we are not so good in php, so we need your help, please
Thank you !
We have PS 1.4.7 version
 
Sorry for english language mistakes
 
________________________________
Link to comment
Share on other sites

Yep, we would like that when a customer clicks on a product, for example this one :

 

http://www.kissene.com/en/bags/630-london-look-bag.html

 

(but for every products is the same ...) we would like that it appears the big picture of the product ("thickbox" I think) instead of this default,

 

The customer can display it clicking on the photo, but it's not so easy to understand and not every customers click on it so that's why our question

Link to comment
Share on other sites

Where do you plan to put "more details" "pick a color"...boxes? Because with bigger image, these boxes should move down.

 

Anyway, you can manage this by modifiying widths of "#pb-right-column" and "#pb-right-column #image-block " in your theme/css/product.css. Then you go to B.O-->preferences-->images and modify "large" image size. and then regenerate images in the same tab.

 

But again the other boxez will move and you should manage this

 

Hope it will help you

Link to comment
Share on other sites

No, there is a misunderstanding, maube it's my english.

 

We would like that things remain the same as now, we only want that when customer click on one product, when the product page opens (product.tpl) instantly appears the big image (thickbox) instead of what happens now.

Then the customer could close the big image and see as default all images and "pick a color" sentence

Link to comment
Share on other sites

  • 2 weeks later...

To force the original image instead of the thickbox_default I just removed the words thickbox_default on the product.tpl

 

from this:

 

<a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}" 

 

to this:

 

<a href="{$link->getImageLink($product->link_rewrite, $imageIds, '')}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}" 

 

 

Link to comment
Share on other sites

×
×
  • Create New...