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

replace image.php with full image url

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-10-2009, 12:28 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default replace image.php with full image url

Hi all!

Does anyone know how to replace '/image.php?type=P&id=' on the product page with a full image url (in product_thumbnail.tpl).

Like 'http://www.angelsdream.com.au/image.php?type=P&id=70'
must be 'http://www.angelsdream.com.au/images/D/comet_diana_bra.jpg'

image.php works fine, but I found that image with full url loads faster than image.php

and Google doesn't recognize it as image and doesn't include in image search.

Thanks.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
  #2  
Old 05-11-2009, 04:01 PM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default Re: replace image.php with full image url

You want to store the images in the filesystem not the database.
In the x-cart admin there is an option to change where the images are located.
See under the "administration' section of the x-cart admin.

Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
  #3  
Old 05-11-2009, 10:10 PM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: replace image.php with full image url

All pictures are in the file system from the beginning.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
  #4  
Old 05-12-2009, 05:04 AM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default Re: replace image.php with full image url

Have you verified that by looking at your 'xcart_images_P' table?
Do you have blob data in the 'image' fields?

Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
  #5  
Old 05-12-2009, 05:22 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: replace image.php with full image url

in 'image' field: [BLOB - 0 B]
in 'image_path':
./images/P/lola_luna_hawai.jpg

it's a first record in this table:
56 49 [BLOB - 0 B] ./images/P/lola_luna_hawai.jpg image/jpeg 300 450 39981 lola_luna_hawai.jpg 1217167379 Y 0 ebd7a39f67d0c31d64c6dbf35cc33c86
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
  #6  
Old 05-12-2009, 05:39 AM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default Re: replace image.php with full image url

I would look into CDSEO Pro or your other mods as a possible cause.
It's hard to tell what's causing it without investigating your site.
Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
  #7  
Old 05-13-2009, 04:09 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Thumbs up Re: replace image.php with full image url

Problem has been fixed.
It was caused by the code in the custom mod.

Thanks rubyaryat.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:35 PM.

   

 
X-Cart forums © 2001-2020