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

Detailed Product Images Popup Addon - Request

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-21-2005, 10:35 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default Detailed Product Images Popup Addon - Request

Hi,

I'm not sure if I'm posting in the right forum so please excuse me if I'm not.

I've been searching for a way to do detailed popup images, and I found a few mods on here (i.e. Boomer's), but it's not exactly what I need - not to mention that Boomer's didn't work for me :/ And yeah, I tried fixing some things by hand but it still won't work).

However, that's not the real point...I need something simple.

Lemme explain:

I'm going to be selling house plans, and I will be displaying floor plans for each set of house plans. All I need is for the Detailed Images to show a thumbnail of around 300x300 or so (regular thumbnail size), which the customer clicks on and it expands in a new window to reveal the full size image. I don't need collating or forward/backwards arrows etc... Just something simple. Click, pop-up, expand, close. That's all.

Is there anything out there that does it? I'm not looking for mouseoevers or anything like that (I found a great one here by a Dutch guy but it's really more than I need, but it did work).

Does anyone have any suggestions?

I did manage to test out my own little creation which simply sized all files on the thumbnails to 300x300 and clicks to a popup of 1000x1000 when you click on it, but that seems to me a little extreme. So anyone have any smart php code that can just do something that simple? I don't even need it to upload a thumbnail of the detailed images - it can just resize the detailed image in the display, and when you click on it, it will expand. The great thing about house plans is that they are just black lines on a white background, so they load real fast no matter what size you make them and size them down to.

Thanks for any help, and thanks to the contributions already here.
__________________
Version 4.0.14
Reply With Quote
  #2  
Old 07-21-2005, 10:40 AM
 
balinor balinor is offline
 

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

Default

I'd suggest trying Boomer's mod again...that does exactly what it sounds like you want it to do. Simple, easy and straightforward. What exaxctly didn't work for you?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-22-2005, 08:50 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

Hey Balinor,

thanks for the reply. It gives me a {/skip} error on line 16 of products.tpl, I believe. I used both the downloaded version from his site and also the one he posted in a thread here, and it unfortunately gives me the same error. Couldn't figure out what it was doing wrong.

I can post the error again after I try it again, since I reverted back to the original after it broke. :/ I'll give it a go again and I'll see what happens.
__________________
Version 4.0.14
Reply With Quote
  #4  
Old 07-22-2005, 08:57 AM
 
balinor balinor is offline
 

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

Default

You shouldn't be adding any code to products.tpl....it should be going in product.tpl.....that could be the issue
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-22-2005, 09:01 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

This is the error I get:

Quote:

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
__________________
Version 4.0.14
Reply With Quote
  #6  
Old 07-22-2005, 09:03 AM
 
balinor balinor is offline
 

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

Default

Looks like you didn't quite get the {if} statements and {strip} statements in the correct place. Be sure and follow Boomer's instructions to the letter.....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-22-2005, 09:04 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

Yeah, I didn't add it to products.tpl but to product.tpl. Sorry, just woke up and still trying to drink that first cup of coffee...makes for typos in the forum when I first start to communicate.

That's the same error I got yesterday and I'm currently using the one downloaded from his site. I'd love for it to work but I have no idea why it isn't. :/
__________________
Version 4.0.14
Reply With Quote
  #8  
Old 07-22-2005, 09:06 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

He has a line in the readme which says the following:

Quote:
STEP 3) Save the below code as: xcart/skin1/customer/main/product_images.tpl

Unfortunately, it's not clear which code he means since there is no code below it.

I'll post the whole readme below as well:

Quote:
INSTALLATION:
Making a backup of your files is HIGHLY RECOMMENDED before Installing any modifications!

STEP 1) Copy the file customer/product_detailed_iamges.php into your xcart/ directory.

STEP 2) Copy the file skin1/detailed_popup_js.tpl into your xcart/ directory.

STEP 3) Save the below code as: xcart/skin1/customer/main/product_images.tpl

STEP 4) Edit your xcart/skin1/customer/main/product.tpl and locate the following code:

{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}

Replace it with the following code snippet:

{*** 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 ***}

STEP 5) You will need to remove the following code from the same product.tpl file to keep the detailed images from showing up on the details page:

{if $active_modules.Detailed_Product_Images ne ""}



{include file="modules/Detailed_Product_Images/product_images.tpl" }
{/if}

Either remove it or {* comment *} it out.

I can't figure out which code he wants me to save as product_images.tpl. I forgot what I tried yesterday but it still didn't work.
__________________
Version 4.0.14
Reply With Quote
  #9  
Old 07-22-2005, 09:12 AM
 
balinor balinor is offline
 

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

Default

http://forum.x-cart.com/viewtopic.php?t=11621
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 07-22-2005, 09:22 AM
 
GoodHousePlans GoodHousePlans is offline
 

Member
  
Join Date: Jul 2005
Posts: 25
 

Default

Thanks.

I just posted there. Thanks for the pointer.
__________________
Version 4.0.14
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

   

 
X-Cart forums © 2001-2020