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

Need Help Completing a Mod for 4.1.3

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-01-2006, 01:28 PM
 
Impact_1 Impact_1 is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 88
 

Default Need Help Completing a Mod for 4.1.3

Hey Guys, this is my first attempt at a MOD, I got it working for 4.0.19 but I need to change it for filesystem rather than calling from the database for 4.1.3 and was hoping some of you brainiacs could help. In return obviously I am sharing this very simple MOD

In skin1/customer/main/product.tpl

Change the call for product_thumbnail.tpl to product_thumbnail2.tpl

Create product_thumbnail2.tpl with the following code:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}<a href=#><IMG id="{$id}" src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$alt|strip_tags:false|strip}" border="0"
onclick="window.open('{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}', 'IS_pop','width={$image_x+$image_x+20},height={$im age_y+$image_y+50},menubar=no,location=no,resizabl e=no,scrollbars=no,status=no');"></a>{/if}

In 4.0.x this will create a simple "click on thumbnail for full-size pop-up" MOD

Unfortunately though in 4.1.3 I use the filesystem for all my images and this MOD calls from the database. Please can somebody tell me how to change this code to simply call up the image I am clicking on in a pop-up window?

Thanks and I hope this code helps out some people
__________________
Version: 4.1.3

One of the largest UK Suppliers of Car Modification Accessories
http://www.impact-styling.com
Reply With Quote
  #2  
Old 11-11-2006, 06:23 AM
 
Impact_1 Impact_1 is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 88
 

Default Re: Need Help Completing a Mod for 4.1.3

Nobody have any input for this at all?
__________________
Version: 4.1.3

One of the largest UK Suppliers of Car Modification Accessories
http://www.impact-styling.com
Reply With Quote
  #3  
Old 11-14-2006, 12:01 PM
 
zimpler zimpler is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 1
 

Default Re: Need Help Completing a Mod for 4.1.3

Shaun, inf Xcart 4.1.3 there´s an option at General Settings -> Detailed Product Images options, that let´s you link to a popup, maybe it´s useful for your case.
__________________
PW
Reply With Quote
  #4  
Old 11-17-2006, 12:30 PM
 
Impact_1 Impact_1 is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 88
 

Default Re: Need Help Completing a Mod for 4.1.3

Thank you for the input
__________________
Version: 4.1.3

One of the largest UK Suppliers of Car Modification Accessories
http://www.impact-styling.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:18 AM.

   

 
X-Cart forums © 2001-2020