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

Xcart Image display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-01-2015, 04:43 PM
 
TonyD TonyD is offline
 

eXpert
  
Join Date: Mar 2004
Location: Okc
Posts: 288
 

Default Xcart Image display

Hi

I am using X-Cart DB Version: 4.7.3 GOLD.
In my shop Product images src is like "image.php?type=P&id=XXXX". i hope by default it is like that.

Let me know whether it is possible to have the imagefilename displayed . Eg:images/P/filename.jpg

Looking forward for your advice!
Reply With Quote
  #2  
Old 11-01-2015, 05:12 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xcart Image display

Are images in database? Move them to file system - admin -> settings -> images location
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-02-2015, 05:40 AM
 
TonyD TonyD is offline
 

eXpert
  
Join Date: Mar 2004
Location: Okc
Posts: 288
 

Default Re: Xcart Image display

There has been a developer working on the cart and there is an error when trying to use the built in functions of changing the images location..

INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id=1 LIMIT 1' at line 1
SQL QUERY FAILURE:SELECT image_x, image_y, image_path FROM WHERE id=1 LIMIT 1
Backtrace:

file: 610 - /var/www/vhosts/mysite.com/staging2/include/func/func.db.php
call: func_get_backtrace_html()

file: 971 - /var/www/vhosts/mysite.com/staging2/include/func/func.db.php
call: db_query("SELECT image_x, image_y, image_path FROM WHERE id=1 LIMIT 1")

file: 4 - /var/www/vhosts/mysite.com/staging2/modules/TXS_Fashion_Walk/logo.php
call: func_query_first()

file: 30 - /var/www/vhosts/mysite.com/staging2/modules/TXS_Fashion_Walk/init.php
call: unknown()

file: 9 - /var/www/vhosts/mysite.com/staging2/modules/TXS_Fashion_Walk/config.php
call: unknown()

file: 1065 - /var/www/vhosts/mysite.com/staging2/init.php
call: include("/var/www/vhosts/mysite.com/staging2/modules/TXS_Fashion_Walk/config.php")

file: 53 - /var/www/vhosts/mysite.com/staging2/admin/auth.php
call: require_once("/var/www/vhosts/mysite.com/staging2/init.php")

file: 44 - /var/www/vhosts/mysite.com/staging2/admin/images_location.php
call: require("/var/www/vhosts/mysite.com/staging2/admin/auth.php")
__________________
X-Cart v 4.7.8(live)
Reply With Quote
  #4  
Old 11-02-2015, 07:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xcart Image display

Quote:
SQL QUERY FAILURE:SELECT image_x, image_y, image_path FROM WHERE id=1 LIMIT 1

is missing table. It should be

....FROM TABLE_NAME WHERE....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-02-2015, 08:50 AM
 
TonyD TonyD is offline
 

eXpert
  
Join Date: Mar 2004
Location: Okc
Posts: 288
 

Default Re: Xcart Image display

Do you know from where the call is being initiated for the above query?
__________________
X-Cart v 4.7.8(live)
Reply With Quote
  #6  
Old 11-02-2015, 08:52 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xcart Image display

look at the Backtrace within the error
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   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 05:55 AM.

   

 
X-Cart forums © 2001-2020