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

Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #131  
Old 07-15-2005, 08:59 AM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default Thanks

Thanks for the mod.


Truly,
Rich
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
Reply With Quote
  #132  
Old 07-15-2005, 09:13 AM
 
DanceScape DanceScape is offline
 

Member
  
Join Date: Jul 2004
Posts: 12
 

Default 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?
__________________
dance is ... PASSION
www.dancescape.com
www.dancescape.TV
www.shopdancescape.com

x-cart-4.0.18 pro
Reply With Quote
  #133  
Old 07-22-2005, 09:22 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

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?
__________________
Version 4.0.14
Reply With Quote
  #134  
Old 07-22-2005, 10:34 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

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?
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #135  
Old 07-22-2005, 10:52 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

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. :/
__________________
Version 4.0.14
Reply With Quote
  #136  
Old 07-22-2005, 11:46 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

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?
__________________
Version 4.0.14
Reply With Quote
  #137  
Old 07-22-2005, 11:52 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

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.
__________________
Version 4.0.14
Reply With Quote
  #138  
Old 07-22-2005, 12:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

http://forum.x-cart.com/viewtopic.php?t=18101
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #139  
Old 07-22-2005, 12:17 PM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

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.
__________________
Version 4.0.14
Reply With Quote
  #140  
Old 07-22-2005, 12:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ok, I give up
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 02:33 AM.

   

 
X-Cart forums © 2001-2020