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 Product Images Popup on Thumbnail click. (https://forum.x-cart.com/showthread.php?t=202)

chetlucas 01-19-2004 05:23 PM

Parse Error
 
I made the modification as you suggested above and now I receive the following error. I hate to keep bothering you all about this, because I am sure it is something really easy, but not being knowledgeable enough about php and smarty, I need your assistance. Thanks.

I placed the code in the product_detailed_images.php file

Parse error: parse error in /home/giftcom/public_html/xcart/customer/product_detailed_images.php on line 2

chetlucas 01-19-2004 05:33 PM

Here is Another Error Message
 
Another error message at www.ourgiftshoppe.com when opening detailed image:

Warning: main(/smarty.php): failed to open stream: No such file or directory in /home/giftcom/public_html/xcart/customer/product_detailed_images.php on line 2

Fatal error: main(): Failed opening required '/smarty.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/giftcom/public_html/xcart/customer/product_detailed_images.php on line 2

B00MER 01-19-2004 05:39 PM

New detailed_product_images.php that will work in 3.5.x

Code:

<?
# www.cartlab.net
require "./auth.php";

#
# Collect product images
#
$images = func_query("select * from $sql_tbl[images] where productid='$productid' order by imageid");

$smarty->assign("images",$images);
$smarty->display("modules/Detailed_Product_Images/product_images.tpl");

?>


krishmandal 01-19-2004 07:49 PM

Boomer,

I haven't done this mod (yet?) but was wondering about the operation of it...what happens if there's more than one detailed picture? Which one does it pick to show?

B00MER 01-19-2004 07:54 PM

Quote:

Originally Posted by krishmandal
Boomer,

I haven't done this mod (yet?) but was wondering about the operation of it...what happens if there's more than one detailed picture? Which one does it pick to show?


Every detailed image added will be displayed in the popup window in order added.

hth. ;)

chetlucas 01-20-2004 02:06 AM

:D This is really great - gives me something to work with that actually works. Thanks a whole bunch. I don't know what I would do without this group to help me out. I just changed the detailed_product_images.php and up and away we went. Again, many thanks until you are better paid.

sabrina 01-22-2004 08:13 AM

Boomer, thank you for your help, it's working fine, but popup display image from Database, how display image in popup from file system not from database. Thank you.

X-cart: 3.5.3

B00MER 01-22-2004 08:15 AM

Sabrina,

Since this mod was done before the use of file system image storring some customizations would need to happen in order for this to work.

hth. ;)

sabrina 01-22-2004 08:25 AM

Can you show how?

chetlucas 01-22-2004 08:37 AM

Images from File System
 
I would also like to see how it works to retrieve the images from the file system vice the database, as I plan on transferring files to files rather than i the database. thanks. Also, I have version 3.5.3


All times are GMT -8. The time now is 08:07 AM.

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