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

X-Cart reBOOT (reDUX) Template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #331  
Old 06-18-2021, 02:39 PM
 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 522
 

Default Re: X-Cart reBOOT (reDUX) Template

Hi Phil,

I generated new images on a test store of mine where I created a copy of my current live store.

If I want to use these resized images on my 'prod site', what is the best way to do that?

Do I 'rename' the webp suffix to jpg (which is the suffix of my current image P, T, D, C directories, and upload to my live store directories after making a backup of them.

Or do I do something else?

Thanks

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.5 | Live
IONOS Hosting | Linux | PHP 7.4.5 | MySQL 5.7
Reply With Quote
  #332  
Old 06-18-2021, 05:02 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,929
 

Default Re: X-Cart reBOOT (reDUX) Template

I haven't finished the work yet, maybe wait a few days, but if you've generated WEBP images, you can kind of use them now, by editing /skin/reboot/product_thumbnail.tpl

Replace...
Code:
{$tmbn_url|amp}
With...
Code:
{$tmbn_url|amp|replace:"/{$type|default:'T'}/":"/webp/{$type|default:'T'}/"|replace:'.jpg':'.webp'|replace:'.jpeg':'.webp'|replace:'.png':'.webp'}
^ It doesn't replace *all* images with WEBP, as it needs more work/testing.

It will at least replace product thumbnails and product images with WEBP's.

The aim is to be able to enable WEBP images as you would normally do in General Settings > Appearance, but I may take a different route.
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote

The following user thanks PhilJ for this useful post:
ITVV (06-18-2021)
  #333  
Old 06-18-2021, 05:47 PM
 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 522
 

Default Re: X-Cart reBOOT (reDUX) Template

Phil,

Will test webp mod tomorrow on TEST server

Thx

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.5 | Live
IONOS Hosting | Linux | PHP 7.4.5 | MySQL 5.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:01 AM.

   

 
X-Cart forums © 2001-2020