Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Detailed Product Images Popup on Thumbnail click.

 
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 01-19-2004, 05:23 PM
  chetlucas's Avatar 
chetlucas chetlucas is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Inverness, Florida
Posts: 56
 

Default 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
  #52  
Old 01-19-2004, 05:33 PM
  chetlucas's Avatar 
chetlucas chetlucas is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Inverness, Florida
Posts: 56
 

Default 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
  #53  
Old 01-19-2004, 05:39 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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"); ?>
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #54  
Old 01-19-2004, 07:49 PM
 
krishmandal krishmandal is offline
 

Advanced Member
  
Join Date: Oct 2003
Posts: 62
 

Default

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?
  #55  
Old 01-19-2004, 07:54 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #56  
Old 01-20-2004, 02:06 AM
  chetlucas's Avatar 
chetlucas chetlucas is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Inverness, Florida
Posts: 56
 

Default

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.
  #57  
Old 01-22-2004, 08:13 AM
 
sabrina sabrina is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Indianapolis, IN., USA
Posts: 53
 

Default

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
  #58  
Old 01-22-2004, 08:15 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
  #59  
Old 01-22-2004, 08:25 AM
 
sabrina sabrina is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Indianapolis, IN., USA
Posts: 53
 

Default

Can you show how?
  #60  
Old 01-22-2004, 08:37 AM
  chetlucas's Avatar 
chetlucas chetlucas is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Inverness, Florida
Posts: 56
 

Default 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
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:34 AM.

   

 
X-Cart forums © 2001-2020