![]() |
Thickbox 2.0 implementation
Hi All
http://www.7dana.com/106.84.0.0.1.0.phtml This is a must have mod for me as it is what i am after. Trouble is i have read the 4.1 instructions and cannot get it to work at all, and where it says; The same file(product.tpl), comment this out with a {* *}: {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} I cannot even see this line in the tpl file. Would it be asking to much for someone to look over it for me and advise further as i only need a couple of thing putting in. My tpl file reads as follows so if someone can just highlight where the following goes than that would be great. INSTALLATION ------------ 1. Open skin1/customer/main/product.tpl add following code at the end: {include file="thickbox/thickbox_include.tpl" } 2. The same file(product.tpl), add following code right after product_thumbnail line(after {/if}): {include file="thickbox/thickbox_productpage.tpl" } 3. The same file(product.tpl), comment this out with a {* *}: {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} 4. Copy thickbox folder to skin1 directory. products.tpl {* $Id: products.tpl,v 1.72.2.2 2006/08/11 12:18:08 max Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} <div class="FCButtonsBox"> {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {include file="modules/Feature_Comparison/products_check_js.tpl"} </div> {/if} {if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl" products=$products} {else} {if $products} {section name=product loop=$products} {assign var="discount" value=0} <table width="100%" cellpadding="0" cellspacing="0" align="center" class="{cycle values="ProductBox1,ProductBox2"}"> <tr> <td class="ProductLeftShadow"> <table width="100%" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="ProductBox"> <table width="100%" cellpadding="0" cellspacing="0" align="center" class="DialogBorderStart"> <tr> <td class="DialogBorderEnd"> <table width="100%" cellpadding="0" cellspacing="0" align="center" class="DialogCorner"> <tr> <td valign="top" class="ProductBoxStart"> <table width="100%" cellpadding="29" cellspacing="0" align="center" class="ProductBoxEnd"> <tr> <td valign="top" class="DialogShadow2"> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_p age}{if $featured eq 'Y'}&featured{/if}"><font class="ProductTitle">{$products[product].product}</font></a> <br /> <br /> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> <div class="PListImgBox"> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_p age}{if $featured eq 'Y'}&featured{/if}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url show_border="Y"}</a> {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} </div> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_p age}{if $featured eq 'Y'}&featured{/if}">{$lng.lbl_see_details}</a> {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0 && $printable ne 'Y'} <br /> <br /> <div align="center"> {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} </div> {/if} </td> <td><img src="{$ImagesDir}/spacer.gif" width="14" height="1" alt="" /></td> <td valign="top" width="100%"> {if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""} {$lng.lbl_sku}: {$products[product].productcode} <br /> <br /> {/if} {$products[product].descr|truncate:300:"...":true} <br /> <br /> {if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_p age`"} {else} {if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} <font class="MarketPrice">{$lng.lbl_market_price}: <s> {include file="currency.tpl" value=$products[product].list_price} </s></font><br /> {/if} {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} <s> {/if} <font class="ProductPriceSmall">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</font><font class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</font>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""}, {/if}{$lng.lbl_save_price} {$discount}%{/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} </s> {/if} {if $products[product].taxes} <br /> <div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div> {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} <font class="ProductPrice">{$lng.lbl_enter_your_price}</font> {/if} {/if} {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} <br /> {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} {/if} </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> {/section} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} <div class="FCButtonsBox"> {include file="modules/Feature_Comparison/compare_selected_button.tpl" no_form=true} </div> {/if} {else} {$lng.txt_no_products_found} {/if} {/if} Thanks Richard |
Re: Thickbox 2.0 implementation
Moving to THird Party Add-Ons
|
Re: Thickbox 2.0 implementation
Richard,
skin1/customer/main/product.tpl NOT products.tpl. Fordy.. |
Re: Thickbox 2.0 implementation
Thanks for that fordy, it may explain where i went wrong - how stupid dop i feel now.
Richard |
Re: Thickbox 2.0 implementation
Just done what was advised but with same issue.
Here is my product.tpl if someone can help me implement it correctly. {* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 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 valign="top"> <br /> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="PImgBox"> {if $product.taxed_price gt 0 and $product.list_price gt 0} <table cellpadding="0" cellspacing="0" width="127" id="save_percent_box"{if $product.taxed_price ge $product.list_price} style="display: none;"{/if}> <tr> <td class="SaveMoneyLabel"> {$lng.lbl_save_price}{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} <span id="save_percent">{ $discount }</span>% </td> </tr> <tr> <td> </td> </tr> </table> {/if} {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"} {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"} {/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%" style="padding-left: 8px;"> <span>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</span> </td> </tr> </table> <p /> {include file="main/subheader.tpl" title=$lng.lbl_details} <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="30%">{$lng.lbl_sku}</td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> </tr> {if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""} <tr> <td width="30%">{$lng.lbl_in_stock}</td> <td nowrap="nowrap" id="product_avail_txt"> {if $product.avail gt 0}{$lng.txt_items_available|substitute:"items":$pr oduct.avail}{else}{$lng.lbl_no_items_available}{/if} </td> </tr> {/if} {if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td width="30%">{$lng.lbl_weight}</td> <td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}< /span> {$config.General.weight_symbol}</td> </tr> {/if} {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product.tpl"} {/if} {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="ProductPriceTitle"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> </tr> {/if} </table> <p /> {include file="main/subheader.tpl" title=$lng.lbl_options} <table width="100%" cellpadding="0" cellspacing="0"> {if $active_modules.Product_Options ne ""} { include file="modules/Product_Options/customer_options.tpl"} {/if} <tr><td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td> <td> {if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> {else} {if $config.General.unlimited_products eq "Y"} {assign var="mq" value=$config.Appearance.max_select_quantity} {else} {math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"} {if $tmp<2} {assign var="minamount" value=$product.min_amount} {else} {assign var="minamount" value=1} {/if} {math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail} {/if} {if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)} {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = {$start_quantity|default:1}; var avail = {$mq|default:1}-1; var product_avail = {$product.avail|default:"0"}; --> </script> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option> {/section} </select> {else} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if} </td></tr> <tr><td colspan="2"> <input type="hidden" name="mode" value="add" /> {include file="customer/main/product_prices.tpl"} {if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)} {if $js_enabled} <br /> {if $product.forsale ne "B"} <table cellspacing="0" cellpadding="0"> <tr> <td>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td> <td> &nbs p;</td> <td> {if ($login ne "" || $config.Wishlist.add2wl_unlogged_user eq 'Y') && $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if} </td> </tr> </table> {else} {$lng.txt_pconf_product_is_bundled} {/if} {if $smarty.get.pconf ne ""} <br /><br /> <input type="hidden" name="slot" value="{$smarty.get.slot}" /> <input type="hidden" name="addproductid" value="{$product.productid}" /> {include file="buttons/button.tpl" button_title=$lng.lbl_pconf_add_to_configuration style="button" href="javascript:if (FormValidation()) `$ldelim`document.orderform.productid.value='`$sma rty.get.pconf`';document.orderform.action='pconf.p hp';document.orderform.submit()`$rdelim`"} <br /> {$lng.txt_add_to_configuration_note} <br /> {/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product_buttons.tpl"} {/if} <br /><br /> </td> </tr></table> </td> </tr> </table> <input type="hidden" name="productid" value="{$product.productid}" /> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" /> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" /> </form> {/capture} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y'} <p /> {include file="customer/main/send_to_friend.tpl" } {/if} {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} {if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <p /> {include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- check_options(); --> </script> {/if} |
Re: Thickbox 2.0 implementation
Try this......
{* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 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 valign="top"> <br /> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="PImgBox"> {if $product.taxed_price gt 0 and $product.list_price gt 0} <table cellpadding="0" cellspacing="0" width="127" id="save_percent_box"{if $product.taxed_price ge $product.list_price} style="display: none;"{/if}> <tr> <td class="SaveMoneyLabel"> {$lng.lbl_save_price}{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} <span id="save_percent">{ $discount }</span>% </td> </tr> <tr> <td> </td> </tr> </table> {/if} {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"} {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"} {/if} {* Added by Fordy *} {include file="thickbox/thickbox_productpage.tpl" } {* end Fordy *} {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%" style="padding-left: 8px;"> <span>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</span> </td> </tr> </table> <p /> {include file="main/subheader.tpl" title=$lng.lbl_details} <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="30%">{$lng.lbl_sku}</td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> </tr> {if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""} <tr> <td width="30%">{$lng.lbl_in_stock}</td> <td nowrap="nowrap" id="product_avail_txt"> {if $product.avail gt 0}{$lng.txt_items_available|substitute:"items":$pr oduct.avail}{else}{$lng.lbl_no_items_available}{/if} </td> </tr> {/if} {if $product.weight ne "0.00" || $variants ne ''} <tr id="product_weight_box"> <td width="30%">{$lng.lbl_weight}</td> <td nowrap="nowrap"><span id="product_weight">{$product.weight|formatprice}< /span> {$config.General.weight_symbol}</td> </tr> {/if} {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product.tpl"} {/if} {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="ProductPriceTitle"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> </tr> {/if} </table> <p /> {include file="main/subheader.tpl" title=$lng.lbl_options} <table width="100%" cellpadding="0" cellspacing="0"> {if $active_modules.Product_Options ne ""} { include file="modules/Product_Options/customer_options.tpl"} {/if} <tr><td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td> <td> {if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> {else} {if $config.General.unlimited_products eq "Y"} {assign var="mq" value=$config.Appearance.max_select_quantity} {else} {math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"} {if $tmp<2} {assign var="minamount" value=$product.min_amount} {else} {assign var="minamount" value=1} {/if} {math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail} {/if} {if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)} {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = {$start_quantity|default:1}; var avail = {$mq|default:1}-1; var product_avail = {$product.avail|default:"0"}; --> </script> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option> {/section} </select> {else} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if} </td></tr> <tr><td colspan="2"> <input type="hidden" name="mode" value="add" /> {include file="customer/main/product_prices.tpl"} {if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)} {if $js_enabled} <br /> {if $product.forsale ne "B"} <table cellspacing="0" cellpadding="0"> <tr> <td>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td> <td> &nbs p;</td> <td> {if ($login ne "" || $config.Wishlist.add2wl_unlogged_user eq 'Y') && $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if} </td> </tr> </table> {else} {$lng.txt_pconf_product_is_bundled} {/if} {if $smarty.get.pconf ne ""} <br /><br /> <input type="hidden" name="slot" value="{$smarty.get.slot}" /> <input type="hidden" name="addproductid" value="{$product.productid}" /> {include file="buttons/button.tpl" button_title=$lng.lbl_pconf_add_to_configuration style="button" href="javascript:if (FormValidation()) `$ldelim`document.orderform.productid.value='`$sma rty.get.pconf`';document.orderform.action='pconf.p hp';document.orderform.submit()`$rdelim`"} <br /> {$lng.txt_add_to_configuration_note} <br /> {/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product_buttons.tpl"} {/if} <br /><br /> </td> </tr></table> </td> </tr> </table> <input type="hidden" name="productid" value="{$product.productid}" /> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" /> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" /> </form> {/capture} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y'} <p /> {include file="customer/main/send_to_friend.tpl" } {/if} {* Commented out by Fordy {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} *} {if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <p /> {include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- check_options(); --> </script> {/if} {include file="thickbox/thickbox_include.tpl" } |
Re: Thickbox 2.0 implementation
Thanks Dave,
Just one thing though if you take a look here you will see what i mean.. http://www.havenlights.com/product.php?productid=42&cat=6&page=1 Is this correct ? |
Re: Thickbox 2.0 implementation
To get rid of the X-Cart Detailed Image link....
In admin, Detailed Product Images options, uncheck "Display detailed images in a popup window: " Fordy |
Re: Thickbox 2.0 implementation
Hi David
Thanks for your continued help. The advice you offered half fixed the problem, i say half as it removed the large image link and not the detailed image link as it should have. I am sure it has something to do with the removal of 3. The same file(product.tpl), comment this out with a {* *}: {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} but i removed {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"} {else} But then got an error. |
Re: Thickbox 2.0 implementation
Hi, I'm having what I guess is a similar error, I've done everying in the installation up until editing the final line where it asks me to comment out,
{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} whereas my file has the following 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"} {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"} {/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} I've tried commenting out everything from the start of the snippet to both else and if, bot both return errors. Anyone have any ideas? |
Re: Thickbox 2.0 implementation
Anyone have any ideas on this guys?
|
Re: Thickbox 2.0 implementation
I would post up your file so we can take a look. Insure also you have uploaded the thickbox folder to SKIN1 and not the root
|
Re: Thickbox 2.0 implementation
Yep, the folder is in the correct location, the code excerpt is in my first post.
|
Re: Thickbox 2.0 implementation
I can see where you have got it wrong. If you post your whole .tpl file and not just part of it i can edit it for you to what it should be.
|
Re: Thickbox 2.0 implementation
I am looking into how it is possible to change the size of the image to 100%.
I have been modificate the CSS that followed but still the same. |
Re: Thickbox 2.0 implementation
Yes i would love to know how to enlarge the image also. Not a lot, well not 100% for sure, as it may take a time to load !
|
Re: Thickbox 2.0 implementation
Yes, was also looking for that solution. Heard that it can be set at the .js file.
But till now haven't figured it out yet. If someone has a solution, It's highly appreciated. |
Re: Thickbox 2.0 implementation
This is my product.tpl
{* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 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} <font class=product_grey_dark_lrg_bold>{$product.product title}</font><br> <form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();"> <table width="100%" border=0> <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"} {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"} {/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%" border=0> <table width="100%" cellpadding="0" cellspacing="0"> {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="price_lrg_bold"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> <td align=right>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td> </tr> {/if} <tr> <td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td> <td> {if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> {else} {if $config.General.unlimited_products eq "Y"} {assign var="mq" value=$config.Appearance.max_select_quantity} {else} {math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"} {if $tmp<2} {assign var="minamount" value=$product.min_amount} {else} {assign var="minamount" value=1} {/if} {math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail} {/if} {if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)} {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = {$start_quantity|default:1}; var avail = {$mq|default:1}-1; var product_avail = {$product.avail|default:"0"}; --> </script> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option> {/section} </select> {else} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if} </td></tr> {if $product.descr} <tr> <td colspan=2><br>{$product.descr}<br><br></td> </tr> {/if} <tr> <td width="30%"><span class="product_grey_dark_sml"><b>Product Code:</b></span></td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> </tr> {if $active_modules.Product_Options ne ""} {include file="modules/Product_Options/customer_options.tpl"} {/if} {if $product_wholesale ne ""} <tr><td colspan="2"> {include file="customer/main/product_prices.tpl"} <br /><br /> </td> </tr> {/if} {if $active_modules.Feature_Comparison ne ""} <tr><td colspan="2"> {include file="modules/Feature_Comparison/product_buttons.tpl"} <br /><br /> </td> </tr> {/if} <input type="hidden" name="mode" value="add" /> <input type="hidden" name="productid" value="{$product.productid}" /> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" /> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" /> </form> {if $config.Appearance.send_to_friend_enabled eq 'Y'} <tr> <td colspan=2><br> <span class="x_send_to" onClick="javascript: if (document.getElementById('send_to_friend').style.d isplay == 'none') document.getElementById('send_to_friend').style.di splay=''; else document.getElementById('send_to_friend').style.di splay='none'">Email a friend about this product</span> <br> <div id='send_to_friend' style='display: none'> {include file="customer/main/send_to_friend.tpl"} </div> <br> </td> </tr> {/if} </table> </td> </tr> </table> {if $product.fulldescr} {$product.fulldescr} {/if} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {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} {if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <p /> {include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- check_options(); --> </script> {/if} |
Re: Thickbox 2.0 implementation
Quote:
edit thickbox.js Look for: Code:
// Resizing large images - orginal by Christian Montoya edited by me. To make the images larger change the var x and var y variables to a smaller number (>150) To make the images smaller change the var x and var y variables to a larger number (<150) |
Re: Thickbox 2.0 implementation
Try this
{* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 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} <font class=product_grey_dark_lrg_bold>{$product.product title}</font><br> <form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();"> <table width="100%" border=0> <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"} {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"} {/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%" border=0> <table width="100%" cellpadding="0" cellspacing="0"> {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="price_lrg_bold"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> <td align=right>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td> </tr> {/if} <tr> <td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td> <td> {if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> {else} {if $config.General.unlimited_products eq "Y"} {assign var="mq" value=$config.Appearance.max_select_quantity} {else} {math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"} {if $tmp<2} {assign var="minamount" value=$product.min_amount} {else} {assign var="minamount" value=1} {/if} {math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail} {/if} {if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)} {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = {$start_quantity|default:1}; var avail = {$mq|default:1}-1; var product_avail = {$product.avail|default:"0"}; --> </script> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option> {/section} </select> {else} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if} </td></tr> {if $product.descr} <tr> <td colspan=2><br>{$product.descr}<br><br></td> </tr> {/if} <tr> <td width="30%"><span class="product_grey_dark_sml"><b>Product Code:</b></span></td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> </tr> {if $active_modules.Product_Options ne ""} {include file="modules/Product_Options/customer_options.tpl"} {/if} {if $product_wholesale ne ""} <tr><td colspan="2"> {include file="customer/main/product_prices.tpl"} <br /><br /> </td> </tr> {/if} {if $active_modules.Feature_Comparison ne ""} <tr><td colspan="2"> {include file="modules/Feature_Comparison/product_buttons.tpl"} <br /><br /> </td> </tr> {/if} <input type="hidden" name="mode" value="add" /> <input type="hidden" name="productid" value="{$product.productid}" /> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" /> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" /> </form> {if $config.Appearance.send_to_friend_enabled eq 'Y'} <tr> <td colspan=2><br> <span class="x_send_to" onClick="javascript: if (document.getElementById('send_to_friend').style.d isplay == 'none') document.getElementById('send_to_friend').style.di splay=''; else document.getElementById('send_to_friend').style.di splay='none'">Email a friend about this product</span> <br> <div id='send_to_friend' style='display: none'> {include file="customer/main/send_to_friend.tpl"} </div> <br> </td> </tr> {/if} </table> </td> </tr> </table> {if $product.fulldescr} {$product.fulldescr} {/if} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {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} {if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <p /> {include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- check_options(); --> </script> {/if} {include file="thickbox/thickbox_include.tpl" } |
Re: Thickbox 2.0 implementation
That doesn't seem to do anything apart from un-centre the page
|
Re: Thickbox 2.0 implementation
Then the other way is
{* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 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} <font class=product_grey_dark_lrg_bold>{$product.product title}</font><br> <form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();"> <table width="100%" border=0> <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"} {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"} {/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%" border=0> <table width="100%" cellpadding="0" cellspacing="0"> {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} <tr> <td valign="top"> {if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="price_lrg_bold"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if} </td> <td align=right>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td> </tr> {/if} <tr> <td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td> <td> {if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> {else} {if $config.General.unlimited_products eq "Y"} {assign var="mq" value=$config.Appearance.max_select_quantity} {else} {math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"} {if $tmp<2} {assign var="minamount" value=$product.min_amount} {else} {assign var="minamount" value=1} {/if} {math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail} {/if} {if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)} {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = {$start_quantity|default:1}; var avail = {$mq|default:1}-1; var product_avail = {$product.avail|default:"0"}; --> </script> <select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option> {/section} </select> {else} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 1; var product_avail = 1; --> </script> <font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if} </td></tr> {if $product.descr} <tr> <td colspan=2><br>{$product.descr}<br><br></td> </tr> {/if} <tr> <td width="30%"><span class="product_grey_dark_sml"><b>Product Code:</b></span></td> <td nowrap="nowrap" id="product_code">{$product.productcode}</td> </tr> {if $active_modules.Product_Options ne ""} {include file="modules/Product_Options/customer_options.tpl"} {/if} {if $product_wholesale ne ""} <tr><td colspan="2"> {include file="customer/main/product_prices.tpl"} <br /><br /> </td> </tr> {/if} {if $active_modules.Feature_Comparison ne ""} <tr><td colspan="2"> {include file="modules/Feature_Comparison/product_buttons.tpl"} <br /><br /> </td> </tr> {/if} <input type="hidden" name="mode" value="add" /> <input type="hidden" name="productid" value="{$product.productid}" /> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" /> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" /> </form> {if $config.Appearance.send_to_friend_enabled eq 'Y'} <tr> <td colspan=2><br> <span class="x_send_to" onClick="javascript: if (document.getElementById('send_to_friend').style.d isplay == 'none') document.getElementById('send_to_friend').style.di splay=''; else document.getElementById('send_to_friend').style.di splay='none'">Email a friend about this product</span> <br> <div id='send_to_friend' style='display: none'> {include file="customer/main/send_to_friend.tpl"} </div> <br> </td> </tr> {/if} </table> </td> </tr> </table> {if $product.fulldescr} {$product.fulldescr} {/if} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <p /> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {*{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}*} {if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <p /> {include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <script type="text/javascript" language="JavaScript 1.2"> <!-- check_options(); --> </script> {/if} {include file="thickbox/thickbox_include.tpl" } |
Re: Thickbox 2.0 implementation
Hi,
Thanks very much! It seems to be working, but the page is still becoming left-alligned. It should be centred. Any ideas what's causing this? |
Re: Thickbox 2.0 implementation
Quote:
open thickbox.css: Find Quote:
Quote:
|
Re: Thickbox 2.0 implementation
Thanks for following up on this ranger
Anyhow, hope it all now works ok Richard |
Re: Thickbox 2.0 implementation
Thanks for thehelp guys, that worked out fine!
Did you manage to solve removing the detailed images link in the end? I tried unticking the 'show detailed images' box i the options, but that meant that the large images were displayed on the products page |
Re: Thickbox 2.0 implementation
Hi, i'm trying to install the this mod too but can't work out how to make the file changes.
Can someone help? below is my product.tpl {* $Id: product.tpl,v 1.37.2.1 2004/08/19 12:17:53 max Exp $ *} {capture name=dialog} <TABLE border="0" width="100%"> <FORM> <TR> <TD valign="top" align="left" width="30%"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <P> {if $smarty.get.mode ne "printable"} <A href="product.php?productid={$product.productid}&m ode=printable" target=_blank><IMG src="{$ImagesDir}/print.gif" width="23" height="22" border="0" name="print" alt="{$lng.lbl_printable_version}"></A> {/if} </TD> <TD valign="top"> <TABLE width="100%" cellpadding="0" cellspacing="0" border="0"> <TR><TD>{$lng.lbl_sku}</TD><TD>{$product.productcode}</TD></TR> <TR><TD>{$lng.lbl_category}</TD><TD>{$product.category_text}</TD></TR> {if $usertype eq "A"}<TR><TD>{$lng.lbl_vendor}</TD><TD>{$product.provider}</TD></TR>{/if} <TR><TD>{$lng.lbl_availability}</TD><TD>{if $product.forsale eq "Y"}{$lng.lbl_avail_for_sale}{elseif $product.forsale eq "B"}{$lng.lbl_pconf_bundled_descr}{elseif $product.forsale eq "H"}{$lng.lbl_hidden}{else}{$lng.lbl_disabled} {/if}</TD></TR> <TR><TD colspan="2"> <BR> <BR> <SPAN class="Text"> {$product.descr} </SPAN> <BR> <BR> </TD></TR> <TR><TD colspan="2"><B><FONT class="ProductDetailsTitle">{$lng.lbl_price_info}< /FONT></B></TD></TR> <TR><TD class="Line" height="1" colspan="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD></TR> <TR><TD colspan="2"> </TD></TR> <TR><TD width="50%">{$lng.lbl_price}</TD><TD nowrap><FONT class="ProductPriceSmall">{include file="currency.tpl" value=$product.price}</FONT></TD></TR> <TR><TD width="50%">{$lng.lbl_quantity}</TD><TD nowrap>{$product.avail} {$lng.lbl_items_available}</TD></TR> <TR><TD width="50%">{$lng.lbl_weight}</TD><TD nowrap>{$product.weight} {$config.General.weight_symbol}</TD></TR> </TR></TABLE> <BR> {include file="buttons/modify.tpl" href="product_modify.php?productid=`$product.produ ctid`"} {include file="buttons/clone.tpl" href="process_product.php?mode=clone&productid=`$p roduct.productid`"} {include file="buttons/delete.tpl" href="process_product.php?mode=delete&productid=`$ product.productid`"} </TD> </TR> <INPUT type="hidden" name="mode" value="add"> <INPUT type="hidden" name="productid" value="{$product.productid}"> </FORM> </TABLE> {/capture} {if $smarty.get.mode eq "printable"} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=440"} {else} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"} {/if} |
Re: Thickbox 2.0 implementation
Has anybody successfully installed this on 4.0.18? product.tpl is different than the installation instructions.
|
Re: Thickbox 2.0 implementation
Quote:
Yeah - what he says.... 4.0.xxx? |
Re: Thickbox 2.0 implementation
Because of my lack of knowledge of x-cart, I shouldn't have attempted this mod on my own, but I did. I thought I would be safe by making a backup of the product.tpl file.
After following the install instructions, I got an error on the cart, so I decided to chicken out and uninstall the mod. I deleted all of the files and put the original product.tpl file back. For some reason, I'm getting the following error when I click on detailed view: Warning: Smarty error: unable to read resource: "thickbox/thickbox_productpage.tpl" in /home/crazymil/public_html/store/Smarty-2.6.12/Smarty.class.php on line 1095 Does anyone have a clue what I need to do to correct this. Everything seems to be working, it just that this error is appearing. Thank you, David |
Re: Thickbox 2.0 implementation
Go to your Admin Summary page and scroll down to "Clear templates cache" and push the clear button. That may help.
|
Re: Thickbox 2.0 implementation
TA,
Thank you, that cleared it! |
Re: Thickbox 2.0 implementation
The error says it is trying to read / opem the file: "thickbox/thickbox_productpage.tpl"
Probably you have deleted the file. To let the error disappear, check your code and look if there is in still some code left in your product.tpl And you can just upload the file back to your server. Run yourshopurl/cleanup.php (clear template cache, refreshing your templates). |
Re: Thickbox 2.0 implementation
1 Attachment(s)
This mod is working beautifully for the most part; it really looks great.
The problem is that it doesn't show thumbnails like the demo shows on the download page. Instead, it shows text descriptions with a small icon that invites you to click. It still looks sharp, but I'd rather have thumbnails. Any idea on this one? Is everyone else getting thumbnails? |
Re: Thickbox 2.0 implementation
Anyone who has a working thickbox mod on their site (without some kind of custom mod), could you post your link? I can't figure out why "my" version seems designed without thumbnails ... other than that it works great.
|
Re: Thickbox 2.0 implementation
whats the install for 4.0.x?
|
Re: Thickbox 2.0 implementation
There is no current install for 4.0.x. I confirmed this about a month ago from the guys that wrote this. They supposedly are working on it....
|
Re: Thickbox 2.0 implementation
I'm assuming I fall in the "4.0.x" group and can't use this mod yet?
|
Re: Thickbox 2.0 implementation
There was a version of this available for 4.0.X at one time. I am not sure why it is no longer available.
|
Re: Thickbox 2.0 implementation
http://www.7dana.com had this all zipped up for 4.0x some time ago, maybe contact them for the zip file ?
|
All times are GMT -8. The time now is 04:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.