X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   replace image.php with full image url (https://forum.x-cart.com/showthread.php?t=47468)

Stizerg 05-10-2009 12:28 AM

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.

rubyaryat 05-11-2009 04:01 PM

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

Stizerg 05-11-2009 10:10 PM

Re: replace image.php with full image url
 
All pictures are in the file system from the beginning.

rubyaryat 05-12-2009 05:04 AM

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

Stizerg 05-12-2009 05:22 AM

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

rubyaryat 05-12-2009 05:39 AM

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

Stizerg 05-13-2009 04:09 AM

Re: replace image.php with full image url
 
Problem has been fixed.
It was caused by the code in the custom mod.

Thanks rubyaryat.


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

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