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

Dynamic Images for X-Cart version 4.1.x

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #91  
Old 12-12-2007, 04:53 AM
 
samz724 samz724 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 84
 

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

www.qualityhomegoods.com

Thanks
__________________
Samz
--------------------------------------
Heavily modified
X-Cart Gold v4.1.10
Reply With Quote
  #92  
Old 01-14-2008, 11:50 AM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default 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?
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
Reply With Quote
  #93  
Old 01-14-2008, 02:59 PM
  scottmotte's Avatar 
scottmotte scottmotte is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 41
 

Default 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.
__________________
x-cart pro 4.1.9
http://allprotools.com
Reply With Quote
  #94  
Old 01-14-2008, 03:59 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default 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...
Reply With Quote
  #95  
Old 01-14-2008, 04:02 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default 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.
Reply With Quote
  #96  
Old 01-14-2008, 04:07 PM
  scottmotte's Avatar 
scottmotte scottmotte is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 41
 

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

Thanks. I will use that.
__________________
x-cart pro 4.1.9
http://allprotools.com
Reply With Quote
  #97  
Old 01-15-2008, 08:29 AM
  scottmotte's Avatar 
scottmotte scottmotte is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 41
 

Default 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.
__________________
x-cart pro 4.1.9
http://allprotools.com
Reply With Quote
  #98  
Old 01-15-2008, 09:36 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default 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.
Reply With Quote
  #99  
Old 01-15-2008, 02:11 PM
  scottmotte's Avatar 
scottmotte scottmotte is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 41
 

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

Thanks so much TelaFirma. I really appreciate it.
__________________
x-cart pro 4.1.9
http://allprotools.com
Reply With Quote
  #100  
Old 01-20-2008, 06:53 AM
  Cyber Matrix's Avatar 
Cyber Matrix Cyber Matrix is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 199
 

Default 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?
__________________
Cyber Matrix
-------------------
X-Cart 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 07:39 AM.

   

 
X-Cart forums © 2001-2020