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
  #191  
Old 12-13-2007, 08:08 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Lightbox JS v2.0 implementation

i cant seem to get this to work in 4.1.9

anyone tested this in 4.1.9?
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #192  
Old 12-13-2007, 08:17 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Lightbox JS v2.0 implementation

Works fine in 4.1.9

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #193  
Old 12-13-2007, 08:24 AM
 
cutterc cutterc is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 93
 

Default Re: Lightbox JS v2.0 implementation

Yeah it does work in 4.1.9...

Code:
{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} {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" } {/if} </div> {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/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}

Look in your /skin1/customer/main/product.tpl and look for this code( it will be close to the top...it should resemble something like this once you put the {include file="thickbox/thickbox_productpage.tpl" }...for some reason I have to put it in both IF statements for it to show all my detailed images....don't know why but for some product it uses one and for others it uses the other...so I put it in both and it works fine...but I do want to work on this a bit more to find out why...because the first IF statement is really where it goes...also in the thickbox.tpl...I had to put {literal} tags around the js callout as w/o them the animated gif was always showing on top....
__________________
X-Cart Gold
Version 4.1.9
RMA 4.1.9
One Page Checkout v1.3.11
CDSEO
PHP 5.2.9
SQL 5.1.30

Reply With Quote
  #194  
Old 12-14-2007, 02:17 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Lightbox JS v2.0 implementation

could you please post your whole product.tpl

thanks
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #195  
Old 12-14-2007, 05:36 AM
 
cutterc cutterc is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 93
 

Default Re: Lightbox JS v2.0 implementation

I couldn't put all of it because I excedded the max character limit on here...but I am showing the area where you would need to concentrate.....

One more thing...you do have "Detailed Product Images" in the modules section of your admin area turned ON..right and have both option for this un-checked...right???

"Detailed Product Images" has to be turned on for this to work...again note I have thickbox added in two spot...for some reason I have to because some products use one IF statment while others use the ELSE statment....I need to look at this a little more to find out why.

I hope this helps....

Code:
{* $Id: product.tpl,v 1.1.2.28 2007/09/03 09:30:59 max Exp $ *} {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" width="100%"> <div> {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} {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" } {/if} </div> {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/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> </tr> <!-- <td valign="top" width="100%"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</td> {if $product.taxed_price gt 0 and $product.list_price gt 0} <td align="right" valign="top" width="60" id="save_percent_box"{if $product.taxed_price >= $product.list_price} style="display: none;"{/if}> <table width="60" cellspacing="1" cellpadding="2"> <tr> <td class="SaveMoneyLabel"> <br /> {math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} &nbsp;<span id="save_percent">{ $discount }</span>% </td> </tr> </table> </td> {/if} </tr> </table> --> <p />
__________________
X-Cart Gold
Version 4.1.9
RMA 4.1.9
One Page Checkout v1.3.11
CDSEO
PHP 5.2.9
SQL 5.1.30

Reply With Quote
  #196  
Old 12-14-2007, 06:01 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Lightbox JS v2.0 implementation

Thanks,
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #197  
Old 12-14-2007, 06:04 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Lightbox JS v2.0 implementation

Thanks, its worked. It was because the two boxes where ticked in the admin.

Is it possible to make the image clickable rather than have the test below the image.

Thanks
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #198  
Old 12-14-2007, 08:39 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Lightbox JS v2.0 implementation

ARGH!!!

I have got to be doing something wrong. Here is my product.tpl file (the top part of it). I have tried to comment out that line in the instructions but it seems if I do that, it will leave an if statement unopened.

It is just so a Friday in December before the holidays! Can someone give me a hand here.

Quote:
{* $Id: product.tpl,v 1.147.2.15 2007/05/11 08:00:26 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%" cellspacing="15">
<tr>
<td class="PImgBox">
{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;
{else}
{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"}&nbsp;
{/if}
{include file="thickbox/thickbox_productpage.tpl"}
{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%">
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><b><font class="ProductDetailsTitle">{$lng.lbl_details}</font></b>

</td></tr>
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #199  
Old 12-14-2007, 08:44 AM
 
cutterc cutterc is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 93
 

Default Re: Lightbox JS v2.0 implementation

Try putting the {include file="thickbox/thickbox_productpage.tpl"} into the same spots I have mine...and see if that works...post#195
__________________
X-Cart Gold
Version 4.1.9
RMA 4.1.9
One Page Checkout v1.3.11
CDSEO
PHP 5.2.9
SQL 5.1.30

Reply With Quote
  #200  
Old 12-14-2007, 08:50 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Lightbox JS v2.0 implementation

Still not working.

ARGH!!!!!! Is it the new year yet?
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
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:53 AM.

   

 
X-Cart forums © 2001-2020