X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Detailed Image(s) Popup 2.1 [3.4.x-4.0.x] (https://forum.x-cart.com/showthread.php?t=8460)

longhorn180 03-23-2005 11:01 AM

Disregard my last post. I was able to call the pic in another part of the page that actually looks better than right above the detailed image. Thanks anyway.

kalmaster 04-01-2005 07:25 AM

Thanks alot boomer, this MOD works great!!!

pwd88 04-04-2005 03:34 PM

Does anyone tried to have this detailed image popup mod working at products.tpl and cart.tpl level, I tried, but no luck, that will be nice if we can have this popup mod works at different level

RobotDeathSquad 04-05-2005 12:37 PM

Is there anyway to display the alt text that has been entered followed by "(click to close window)" instead of just having "click to close window"?
Or display that text below the image or something?

D.Thornley@salford.ac.uk 04-24-2005 02:28 AM

Is this hack compatible with v4.0.12 ?

Online Michael 04-25-2005 03:37 AM

I have discovered something rather interesting and I don't know if it's a bug or not. What I did was I entered the http://www.stonecomputers.com.au website (which btw is using this mod) and clicked on an image of a laptop which it then enlarged on a separate window (so far so good). I then entered the http://www.mydukkan.com website and did the same thing with a guitar. What happened was, the window that displayed the image of a laptop was replaced with a picture of a guitar. Both websites were using the same image window to display their own images and no matter how many more new sites you visit, that use this mode, all the detailed pictures are shown through this one window. And while viewing the image, you can use the 'Back' button on your browser and see all the images previously shown. Sort of cool in a way... but not really sure what to think of it actually. Just thought you guys may want to know.

sstillwell@aerostich.com 04-25-2005 08:58 AM

Quote:

Originally Posted by RobotDeathSquad
Is there anyway to display the alt text that has been entered followed by "(click to close window)" instead of just having "click to close window"?
Or display that text below the image or something?


Put this somewhere in skin1/customer/main/product_images.tpl
Code:

{if $images[1].imageid ne ""}
  <tr>
    <td width="20%" height="21" onClick="javascript:backward();return false;" style="cursor:pointer;cursor:hand;" onMouseOver="'"><p align="left">[img]{$ImagesDir}/larrow.gif[/img] Previous</td>
    <td align="center"><div id="photosalt"><script>document.write(photos_alt[0])</script></div></td>
    <td width="20%" height="21" onClick="javascript:forward();return false;" style="cursor:pointer;cursor:hand;"><p align="right">Next [img]{$ImagesDir}/rarrow.gif[/img]</td>
  </tr>
{/if}


The line
Code:

<script>document.write(photos_alt[0])</script>

Will print out the Alt text above the image in this case.

LightingMania 04-28-2005 07:07 AM

Quote:

Warning: Smarty error: unable to read resource: "detailed_popup_js.tpl" in /x-cart/Smarty-2.6.3/Smarty.class.php on line 1082

Above is an error I am getting with x-cart 4.0.13

Any idea how to correct this?

Thanks!

chetlucas 04-28-2005 07:38 AM

Fix for Smarty Error Message
 
I solved this problem about the smarty error not being able to read the file (same error you are having and version).

I changed the "product.tpl" to put in a ../ before the file that was to be included so it knew where to look for it. It was at {include file="../detailed_popup_js.tpl"}.

Once this was accomplished, voila - it was fixed. Now, if we could only do something with the search function!!

Owl 04-29-2005 12:50 AM

:p
 
did i ever tell you i love you bomer? :oops:
it works on my shop atleast, with the php file directly under, not in customer


All times are GMT -8. The time now is 02:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.