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

Now To Update Images

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-17-2021, 04:03 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Now To Update Images

I need to be able to update my product images. Currently they are 1000px in the longest dimension but I need to make them square (1000x1000).

If I use Filezilla to update the product images in /httpdocs/images/product, I am unable to get them to display in the new format. I have rebuilt the store hoping it would rebuild the cache but they are still displaying in the old format.

What am I doing wrong?
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #2  
Old 01-17-2021, 06:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Now To Update Images

It is not as simple as to copy images to that directory. XC works from var directory so all images are generated in there with different dimensions - so they are served with exact dimensions where needed instead of html scaling.
The product_images table in the database also lists all images, their dimensions and size. So this is something to correct as well.
Redeploying the store will not do anything to images.
Try the "generate resized images" under Look & Feel / Images Settings. However this may only generate the needed images in the var directory and not update the database with proper info. So you may need some custom coding to run a process to properly update the product images table info.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
johngwms (01-18-2021)
  #3  
Old 01-18-2021, 01:25 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Re: Now To Update Images

Thanks Steve

Actually , I just need to make sure that the images column product export csv file refers to images in the 1000 x 1000 format.

Thank you for explaining the process in XCart.
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 02:48 PM.

   

 
X-Cart forums © 2001-2020