X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   free Dynamic Images module released (https://forum.x-cart.com/showthread.php?t=41912)

intel352 08-22-2008 04:32 AM

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

intel352 08-22-2008 08:12 PM

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.

tarty00 08-23-2008 11:02 PM

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!!

Freakmode 08-25-2008 11:50 PM

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

intel352 08-26-2008 12:04 AM

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?

Freakmode 08-26-2008 01:11 AM

Re: free Dynamic Images module released
 
yep - thats the one

coppercup 08-26-2008 10:36 AM

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

coppercup 08-26-2008 12:54 PM

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

intel352 08-26-2008 05:50 PM

Re: free Dynamic Images module released
 
looks like I'm several posts behind, glad you got it sorted :-) new mod looks great

intel352 08-27-2008 10:07 AM

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


All times are GMT -8. The time now is 04:24 PM.

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