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)
-   -   Detailed Image(s) Popup 2.1 [3.4.x-4.0.x] (https://forum.x-cart.com/showthread.php?t=8460)

dManager 07-15-2005 08:59 AM

Thanks
 
Thanks for the mod.


Truly,
Rich

DanceScape 07-15-2005 09:13 AM

How to upload "Detailed" Product Images <?>
 
Hello,
We are able to upload thumbnails (150 pixels is what we have as our standard).

But for some reason, can't seem to find the link/button to upload the DETAILED product images (can see it referenced in the Admin images section as a default to manage in the database, but can't see it when actually trying to update/upload new product images, or modify old ones).

Please help. Is there something we have to activate to enable users to upload both thumbnails and detailed images?

GoodHousePlans 07-22-2005 09:22 AM

Hey Boomer,

I'd love for this to work. :)

This is the error I get when I tried to install it 3 times, however:

Code:


Fatal error: Smarty error: [in customer/main/product.tpl line 16]: syntax error: mismatched tag {/if}. expected {/strip} (opened line 16). (Smarty_Compiler.class.p in /home2/grimlog/public_html/catalog/Smarty-2.6.9/Smarty.class.php on line 1088


I tried both from this board and also from the code on your site. :/ Did anyone else have that problem?

weckie 07-22-2005 10:34 AM

There's one {/if} too many in your code. smarty want to close an if statement but there isn't one open.

Quote:

Originally Posted by GoodHousePlans
Hey Boomer,

I'd love for this to work. :)

This is the error I get when I tried to install it 3 times, however:

Code:


Fatal error: Smarty error: [in customer/main/product.tpl line 16]: syntax error: mismatched tag {/if}. expected {/strip} (opened line 16). (Smarty_Compiler.class.p in /home2/grimlog/public_html/catalog/Smarty-2.6.9/Smarty.class.php on line 1088


I tried both from this board and also from the code on your site. :/ Did anyone else have that problem?


GoodHousePlans 07-22-2005 10:52 AM

Yeah, I know....but which?

Here's the block of code, lines 14-19:

Code:

{*** Detailed Image Popup mod by www.cart-lab.com ***}
{include file="detailed_popup_js.tpl"}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}<A HREF="javascript: productimagedetail({$product.productid});">{/if}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Detailed_Product_Images ne "" && $images}

<CENTER>[img]{$ImagesDir}/preview.gif[/img]View Details</CENTER></A>{/strip}{/if}
{*** Detailed Image Popup mod by www.cart-lab.com ***}


I only copy/pasted the code that Boomer wrote. I didn't modify it. :/

GoodHousePlans 07-22-2005 11:46 AM

Aha! Got it to work!

I modified it so that the {strip} and {/strip} lines only surrounded the HTML tags. This is what I changed it to:

Code:

{*** Detailed Image Popup mod by www.cart-lab.com ***}
{include file="detailed_popup_js.tpl"}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}<A HREF="javascript: productimagedetail({$product.productid});">{/strip}{/if}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}

<CENTER>[img]{$ImagesDir}/preview.gif[/img]View Details</CENTER></A>{/strip}{/if}
{*** Detailed Image Popup mod by www.cart-lab.com ***}


One thing, however...now I obviously don't get a "Detailed Images" section below the catalog entry. Instead, I get a "View Details" icon under the thumbnail of the entry... How would I change it to make it so I get the Thumbnails section back (I know I deleted that section per the instructions, but read on) and activate this on each listed Product Detail Images thumbnail in that section?

GoodHousePlans 07-22-2005 11:52 AM

Basically, it works great but I don't want just a generic document w/ magnifying glass icon...I want to display thumbnails of the pictures which you get when you click on it.

Any tips? That's what I'm really looking for.

balinor 07-22-2005 12:00 PM

http://forum.x-cart.com/viewtopic.php?t=18101

GoodHousePlans 07-22-2005 12:17 PM

Thanks Balinor,

That's not what I mean though. :) I already tried that one and it's great, but I don't want mouseover stuff, or a CSS layer/popup when I click on something. Just the display of thumbnails and then the pop-up enlarge effect when clicked on is really what is needed - in a regular browser window.

balinor 07-22-2005 12:19 PM

Ok, I give up :)


All times are GMT -8. The time now is 07:13 PM.

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