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)
-   -   Lightbox JS v2.0 implementation (https://forum.x-cart.com/showthread.php?t=23858)

l0st 03-15-2008 07:43 PM

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%"


Steils 03-28-2008 05:12 AM

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

mike_turbo 04-01-2008 08:22 AM

Re: Lightbox JS v2.0 implementation
 
brill mod thanks a lot :)

Drayer38 04-04-2008 03:16 PM

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?

kube 04-04-2008 03:40 PM

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).

Zaja 04-05-2008 12:11 AM

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.

Supraman 06-10-2008 10:51 PM

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!

benfung007@gmail.com 06-12-2008 08:55 AM

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

Drayer38 06-16-2008 12:52 PM

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

aimeea 06-17-2008 01:50 PM

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.


All times are GMT -8. The time now is 12:27 PM.

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