X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Dynamic Images for X-Cart version 4.1.x (https://forum.x-cart.com/showthread.php?t=33191)

samz724 12-12-2007 04:53 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
www.qualityhomegoods.com

Thanks

pixeldust 01-14-2008 11:50 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
Since adding this mod, my Xcart Pro seems to be really fussy about which product images it will upload and which it won't. Small images (under about 100kb) upload OK, anything larger aren't rejected - they just don't show up at all!

I have set the size limits under Images Location to 150000 bytes for each option.

Is there a setting somewhere else I need to change?

scottmotte 01-14-2008 02:59 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Hi TelaFirma. Great mod.

How do I show the thumbnails for recommend products instead of it automatically using the product listing size image. Thanks in advance.

I took a look at: http://forum.x-cart.com/showthread.php?p=192847&highlight=get+thumbnail#po st192847 but am getting a func_get_thumbnail_url does not exist error.

TelaFirma 01-14-2008 03:59 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Quote:

Originally Posted by pixeldust
Since adding this mod, my Xcart Pro seems to be really fussy about which product images it will upload and which it won't. Small images (under about 100kb) upload OK, anything larger aren't rejected - they just don't show up at all!

I have set the size limits under Images Location to 150000 bytes for each option.

Is there a setting somewhere else I need to change?


See my PM...

TelaFirma 01-14-2008 04:02 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
The thread that you posted is for version 4.0.x and you are running 4.1.x. The two versions handle images very differently.

Possibly this will solve your issue with showing product images for the recommended products...

http://www.telafirma.com/store/product.php?productid=16142



Quote:

Originally Posted by scottmotte
Hi TelaFirma. Great mod.

How do I show the thumbnails for recommend products instead of it automatically using the product listing size image. Thanks in advance.

I took a look at: http://forum.x-cart.com/showthread.php?p=192847&highlight=get+thumbnail#po st192847 but am getting a func_get_thumbnail_url does not exist error.


scottmotte 01-14-2008 04:07 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Thanks. I will use that.

scottmotte 01-15-2008 08:29 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
TelaFirma, the mod works great - except for one drawback. I use the recommended products on every page - including product listings, and the home page. When on these pages, it does not resize to the thumbnail sized image which I have set at 80px. (instead it stays resized to 150px, which I have set as the product listing image size)

Is there a way to directly call just the thumbnail or trick the recommended products into thinking it is on a single product page?

Thanks in advance.

TelaFirma 01-15-2008 09:36 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
Open the file /skin1/modules/Recommended_Products/recommends.tpl anf find the line:

Code:

{include file="product_thumbnail.tpl" productid=$recommends[num].productid alt=$recommends[num].product image_x=$config.Appearance.recommends_thumbnail_width tmbn_url=$recommends[num].tmbn_url}

Change this to:

Code:

{if $active_modules.Dynamic_Images}
{thumb file=$recommends[num].tmbn_url width=$config.Appearance.recommends_thumbnail_width class=Thumbnail alt=$recommends[num].product}
{else}
{include file="product_thumbnail.tpl" productid=$recommends[num].productid alt=$recommends[num].product image_x=$config.Appearance.recommends_thumbnail_width tmbn_url=$recommends[num].tmbn_url}
{/if}


This will call the thumbnail plugin directly if you have the Dynamic Image mod installed and enabled, and use the previous code if it is disabled. Then it will respect the setting within Admin for the image with for the Recommended Products when the image mod is active.



Quote:

Originally Posted by scottmotte
TelaFirma, the mod works great - except for one drawback. I use the recommended products on every page - including product listings, and the home page. When on these pages, it does not resize to the thumbnail sized image which I have set at 80px. (instead it stays resized to 150px, which I have set as the product listing image size)

Is there a way to directly call just the thumbnail or trick the recommended products into thinking it is on a single product page?

Thanks in advance.


scottmotte 01-15-2008 02:11 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Thanks so much TelaFirma. I really appreciate it.

Cyber Matrix 01-20-2008 06:53 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
I have a few questions about this mod. The site is almost done and we have 20K plus images already. Not all images are in the same folder.

In what folder would the main image be uploaded to?

I'm consider using the X cart magnifier and would I need to load the images for it or would this take care of the images for the magnifier?


All times are GMT -8. The time now is 06:34 AM.

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