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

free Dynamic Images module released

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 08-22-2008, 04:32 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default free Dynamic Images module released

The Dynamic Images module has been released, it's a free (basic) alternative to Telafirma's solution. I put this together since Telafirma has pretty much disappeared, and I kept having requests from customers to develop a solution.

This isn't an out-of-the-box replacement of all Telafirma's features in their Dynamic Image Generator mod, as their mod has a image resizing handled in pretty much any area of X-Cart possible, in addition to supporting Thickbox-style popups.

While Dynamic Images can easily do everything Telafirma's mod does (and more), someone will need to put in a bit of elbow grease to get to that point.

Read more about the module here (Third Party Addons forum): http://forum.x-cart.com/showthread.php?t=41911

Here's a page using the module (note, the popup functionality is an implementation of Lytebox, which was implemented separately): http://www.phpsitesolutions.com/x-cart-variant-addons/variant-chart-module.html
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #2  
Old 08-22-2008, 08:12 PM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: free Dynamic Images module released

Just a note, to anyone that tried to get one of the free mods and experienced an error, please try again.

I had made a change to process orders with a total of $0 to automatically be processed, but didn't expect the resulting behavior from X-Cart. The error was reported to me by a customer, and has been corrected

Sorry for the inconvenience.
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #3  
Old 08-23-2008, 11:02 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default Re: free Dynamic Images module released

Jon you are a LEGEND! Off to have a read and by the looks of that example, it rocks and is BETTER than TelaFirma's! Thank you!!
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #4  
Old 08-25-2008, 11:50 PM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: free Dynamic Images module released

Brilliant - will this flip images based on variant choices? - this is the real problem a customer has with the Telefirma mod
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #5  
Old 08-26-2008, 12:04 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: free Dynamic Images module released

are you referring to how X-Cart replaces the product thumbnail with the variant image upon selection of the dropdown value?
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #6  
Old 08-26-2008, 01:11 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: free Dynamic Images module released

yep - thats the one
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #7  
Old 08-26-2008, 10:36 AM
  coppercup's Avatar 
coppercup coppercup is offline
 

Senior Member
  
Join Date: Mar 2007
Location: Oklahoma
Posts: 117
 

Default Re: free Dynamic Images module released

I have been playing with this mod and it does not appear to deal with variant images. If you have a primary product image, but also have variant images, the default variant image will override the primary product image on the product page and it will not be resized (at least by default).

I have figured out a simple mod to keep the primary product image from being replaced by the variant image, either by default or upon selection of a different variant from the corresponding variant popup.

Now I'm trying to figure out how to simply display thumbnails of all the variant images directly on the product page (leaving the primary product image as the main image), and I'd like to use the Dynamic Images mod to automatically size the thumbnails. I've managed to create a template that loops through the variants and accesses their images:

Code:
{* $Id: customer_tn_options.tpl,v 1.24 2008/08/25 05:19:21 svowl Exp $ *} {if $variants ne ''} <table width="100%" class="variant-thumbnails"> {foreach from=$variants item=v key=k} {if $v.options ne ''} <tr><td colspan="2" class="{$tdClass}"> <a href="{$product.tmbn_url}" title="{$product.product|escape}" rel="lytebox[detailed]"><img src="{thumb file="/image.php?type=W&id=$k" width=168 link=false hint=false get_image_path=true}" id="product_thumbnail" class="thumb" alt="{$product.product|escape} Photo" /></a> </td></tr> {/if} {/foreach} </table> {/if}

I've placed an include for this code in the product.tpl just below the product details. This code displays the variant images, but at full size.

The smarty "thumb" directive is attempting to call on the Dynamic Images mod to resize the variant images, but the mod expects a the URL path to the image as a string and I'm using the image.php method of referencing the images. I can't figure out how to reference them by URL.

If anybody knows how to do this, I'm very anxious to get this figured out.

Thanks!
Fritz
__________________
Happy coding!
Fritz
x-cart 4.1.10

Copper Cup Images Print, Web & Multimedia Design
www.coppercupimages.com
Reply With Quote
  #8  
Old 08-26-2008, 12:54 PM
  coppercup's Avatar 
coppercup coppercup is offline
 

Senior Member
  
Join Date: Mar 2007
Location: Oklahoma
Posts: 117
 

Default Re: free Dynamic Images module released

I've answered my own question. I'll post my solution as soon as it's finished. Thanks!

EDIT: See this thread for the Dynamic Variant Images Display mod I just completed: http://forum.x-cart.com/showthread.php?t=41998
__________________
Happy coding!
Fritz
x-cart 4.1.10

Copper Cup Images Print, Web & Multimedia Design
www.coppercupimages.com
Reply With Quote
  #9  
Old 08-26-2008, 05:50 PM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: free Dynamic Images module released

looks like I'm several posts behind, glad you got it sorted new mod looks great
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #10  
Old 08-27-2008, 10:07 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: free Dynamic Images module released

btw, 01bodyjewellery, I haven't had a chance to test the effect of variants with this mod, contact me through email, I'll see what I can do
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:03 AM.

   

 
X-Cart forums © 2001-2020