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

Lightbox JS v2.0 implementation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #211  
Old 03-15-2008, 07:43 PM
 
l0st l0st is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 69
 

Default Re: Lightbox JS v2.0 implementation

Yeah-- I don't think I'm doing this right.. I have my Detailed Product Images options turned on and Display detailed images in a popup window and Switch detailed images in a popup window without page reloading (using the dynamic image loading): both unchecked. I followed the instructions as instructed.. any help?


PHP Code:
{* $Idproduct.tpl,v 1.147.2.16 2007/06/28 05:47:00 max Exp $ *}
{include 
file="main/include_js.tpl" src="main/popup_image.js"}
{if 
$active_modules.Special_Offers}
{include 
file="modules/Special_Offers/customer/product_offers_short_list.tpl" product=$product}
{/if}
{include 
file="form_validation_js.tpl"}
{if 
$product.product_type eq "C" && $active_modules.Product_Configurator}
{include 
file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
{
capture name=dialog}
<
form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();">
<
table width="100%">
<
tr>
    <
td class="PImgBox" rowspan="2">

{if 
$active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Detailed_Product_Images/popup_image.tpl"}
{elseif 
$product.force_image_type eq 'W' && $product.variantid}
{include 
file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}&nbsp;
{include 
file="thickbox/thickbox_productpage.tpl" }
{else}

<
table cellspacing="0">
<
tr>
    <
td class="ProductTopBorder"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
</
tr>
<
tr>
    <
td class="ProductBorder">
{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 id="product_thumbnail" type="P"}
{include 
file="thickbox/thickbox_productpage.tpl" }
    </
td>
</
tr>
</
table>
{/if}
{if 
$active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Magnifier/popup_magnifier.tpl"}
{/if}
    </
td>
    <
td valign="top" width="100%"
__________________
X-Cart Gold v. 4.1.9
Reply With Quote
  #212  
Old 03-28-2008, 05:12 AM
 
Steils Steils is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 58
 

Default Re: Lightbox JS v2.0 implementation

Is there a way to have the detailed images load as thumbnails instead of auto reducing the full image for the detailed images. I just have 15 detailed images on one of my products and it takes the product page a very long time to load. Being able to load thumbnails images around 16k each would greatly speed up load time.

https://image-reflections.com/xcart/product.php?productid=54&cat=0&page=1&featured
__________________
Steils
X-Cart v 4.1.9 [Unix]
Image Reflections
Reply With Quote
  #213  
Old 04-01-2008, 08:22 AM
 
mike_turbo mike_turbo is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 38
 

Default Re: Lightbox JS v2.0 implementation

brill mod thanks a lot
__________________
Version 4.1.9
Reply With Quote
  #214  
Old 04-04-2008, 03:16 PM
 
Drayer38 Drayer38 is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 32
 

Default Re: Lightbox JS v2.0 implementation

I am in skin1-customer-main and search did not turn up anything close to

{if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')}
<p />
{include file="modules/Detailed_Product_Images/product_images.tpl" }
{/if}

Any thoughts?
__________________
www.gpmotoparts.com
xcart 4.1.9 [unix]
Los Angeles California
Reply With Quote
  #215  
Old 04-04-2008, 03:40 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by Drayer38
I am in skin1-customer-main and search did not turn up anything

Are you sure there's nothing at all similar in skin1/customer/main/product.tpl ? It shouldn't be much different in 4.1.4, I would've thought (but you never know with these things).
__________________
Doms
kube v4.1.9
Reply With Quote
  #216  
Old 04-05-2008, 12:11 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by Drayer38
I am in skin1-customer-main and search did not turn up anything close to

{if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')}
<p />
{include file="modules/Detailed_Product_Images/product_images.tpl" }
{/if}

Any thoughts?

You have custom product template, this is why you can't find required code.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #217  
Old 06-10-2008, 10:51 PM
 
Supraman Supraman is offline
 

Newbie
  
Join Date: Jun 2008
Posts: 5
 

Default Re: Lightbox JS v2.0 implementation

ok i looked through all 22 pages. I have telafirma mod and was looking to intergate this with thick box. how hard do you think this would be to implement as it would solve a lot of problems!
__________________
4.0 gold
Reply With Quote
  #218  
Old 06-12-2008, 08:55 AM
 
benfung007@gmail.com benfung007@gmail.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 32
 

Default Re: Lightbox JS v2.0 implementation

May I know when I have created a link inside the thickbox
how I can control its target window?
1: inside the same thickbox
2: at the browser

Thank you
__________________
X-cart gold v4.1.6
X-RMA
Reply With Quote
  #219  
Old 06-16-2008, 12:52 PM
 
Drayer38 Drayer38 is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 32
 

Default Re: Lightbox JS v2.0 implementation

Quote:
Originally Posted by Zaja
You have custom product template, this is why you can't find required code.

Any thoughts on how to make this work? You are right I do have a custom product template.

Matt
__________________
www.gpmotoparts.com
xcart 4.1.9 [unix]
Los Angeles California
Reply With Quote
  #220  
Old 06-17-2008, 01:50 PM
 
aimeea aimeea is offline
 

Advanced Member
  
Join Date: May 2008
Posts: 33
 

Default Re: Lightbox JS v2.0 implementation

Could someone tell me what file to edit to get my shop centered again. After adding the
{include file="thickbox/thickbox_productpage.tpl" } into the product.tpl my shop is lining up to the left.

http://aimeeasher.com/shoppe/product.php?productid=1&cat=0&page=1

Thanks in advance.
__________________
Version 4.1.10
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 04:42 PM.

   

 
X-Cart forums © 2001-2020