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)

mltriebe 11-06-2007 03:37 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Great mod should be a real time saver for me. I had a small problem with the instructions but he was very helpful in resolving the issue.

Thanks, Mike

Owl 11-10-2007 12:33 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
I ordered it a couple of days ago, it works fine.

BUT i never got the switch image function for the 4.0.x version, anyone know how to get it to work. I have a deadline tomorrow on that function, so need an answer quick please =)

Owl 11-12-2007 01:32 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
I got the files from telefirma, thanks

But

a. the switch function does not work in IE6.
b. the recommended products dosent show pictures any more.

TelaFirma 11-12-2007 06:41 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
The recommended products do not show thumbnails by default in X-Cart. In addition, when building the products array for the recommended products, X-Cart does not add the URL of the thumbnail.

To fix this in version 4.0.x, open the /recommends.php file and add these lines:

Code:

if (!empty($recommends)) {
foreach ($recommends as $k=>$v) {
 $recommends[$k]["tmbn_url"] = func_get_thumbnail_url($v["productid"]);
}
}


right before the line:

$smarty->assign("recommends",$recommends);

This will add the thumbnail URL to the recommended products array and then allow it to pass that URL to the mod.

Also - I have emailed you the files that address the issues with some versions of IE6.

naemsmommy 11-22-2007 09:54 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Mine doesn't do that image swap, is there already a newer version out?

Also, I would love to be able to control both the height and width of images. Ideally, I'd like to set a max height and a max width. For example, if I set my max height and max width for thumbnails to 100px, and then upload a thumbnail that is 200x100, it will resize to 100x50. If I uploaded one that was 100x200, it would resize to 50x100. Is that possible? My current site (not X-Cart) does that and I love it! Otherwise, some product images look very odd, like these thumbnails for instance: http://www.babyplanetboutique.com/xcart/baby-store/cleansers-and-moisturizers

And this product image for example:
http://www.babyplanetboutique.com/xcart/baby-products/bare-organics-all-in-one-cleanser.html

Thanks!

TelaFirma 11-23-2007 05:31 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
This would take a little custom coding. Contact me as scouch@telafirma.com to discuss.

TL408 11-23-2007 12:13 PM

Re: Dynamic Images for X-Cart version 4.1.x
 
Hi Stephen,

I have been sending you multiple messages over the past several days but did not receive a reply. I would certainly appreciate if you would reply to my message to let me know one way or another.

From your previous message on 10/30, I was under the impression it was a quick fix to correct the problem and should only take a day or two to make it work properly on Windows/IIS. But has over 3 weeks now. With you stopped replying to my message, I have decided to go with a different alternative.

Please go ahead and refund my payment. I will be more than happy to re-purchase your software again when you can get it to work properly on the Windows/IIS platform. (I think you should update your product description page and exclude the Windows/IIS platform.)

Thank you
-Tuan

ach21 11-25-2007 09:50 AM

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

Originally Posted by maineiac
Thank you for this wonderful add-on! It's working almost perfectly for me. So far, the problem I'm encountering happens only in IE7 - if a product does not have any detailed images, then when clicking on the product image it opens in the same window. I've found that if I do have a detailed image for the product and disable the detailed image, then IE7 is fine with it and opens in the lightbox as intended. Any ideas? This is on v4.1.8



I'm having the same problem with IE7. What did you do to get this fixed?

ach21 11-25-2007 10:53 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
Solved. Stephen sent the updated version of his mod.

Good response time.

ach21 11-26-2007 08:21 AM

Re: Dynamic Images for X-Cart version 4.1.x
 
I know this isn't part of the mod but I was wondering if anyone was able to display thumnails in the related products section (upselling).

I am using the 3column mod from the following post:
http://forum.x-cart.com/showpost.php?p=178759&postcount=36

but the thumbnails won't show and was wondering if anyone knows how to make them appear.


Code:

{* $Id: related_products.tpl,v 1.15 2005/12/07 14:07:32 max Exp $ *}

{if $product_links ne ""}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$product_links}

{if $product_links[cat_num].productid}{assign var="tmp" value="1"}{/if}

{/section}

{section name=cat_num loop=$product_links}
{ if %cat_num.first% }

<table border="0" cellspacing="0" width="100%">
<tr>
{/if}
{if $smarty.section.cat_num.index is div by 3}
</tr><tr>
{/if}

<td align="center">

<div class="relatedsidebox">
<div class="relatedboxhead"><p>

&nbsp;

</p></div>
<div class="relatedboxbody">

<a style="text-decoration: none;" href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
{include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=$config.Appearance.thumbnail_width product=$product_links[cat_num].product type="T"}</a>
<br>

<a style="color: #FFFFFF" href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
<b>{ $product_links[cat_num].product}</b>
</a>
<br>

<font class="ProductPriceRelated">{include file="currency.tpl" value=$product_links[cat_num].taxed_price}</font>
{if $product.taxes}<font class="ProductPriceVatRelated">
{include file="customer/main/taxed_price.tpl"
taxes=$product.taxes}</font>
{/if}
</div>
</div>

</td>

{ if %cat_num.last% }
</tr></table>
{/if}
{/section}
{/capture}
{include file="dialog.tpl" title="Related products" content=$smarty.capture.dialog extra="width=100%"}
{/if}




All times are GMT -8. The time now is 11:05 AM.

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