X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to enlarge the "Edit Options" pop-up window? (https://forum.x-cart.com/showthread.php?t=25523)

TL408 10-04-2006 11:51 AM

How to enlarge the "Edit Options" pop-up window?
 
Hi guys,

I would like to enlarge the "Edit Options" pop-up window. How do I go about doing this? Looking through the "WebMaster" mode, I was able to track it down to the "edit_product_options.tpl" template file but couldn't figure out what I need to change.

As you can see from the image below, my product option list is quite wide. I wanted to enlarge the pop-up window so the width would fit the product option list.

Thanks
-Tuan

http://img175.imageshack.us/img175/224/popupwindownk8.jpg

balinor 10-04-2006 03:55 PM

Re: How to enlarge the "Edit Options" pop-up window?
 
Actually the size of the box is set in the link itself in customer/main/cart.tpl

TL408 10-05-2006 03:23 PM

Re: How to enlarge the "Edit Options" pop-up window?
 
Quote:

Originally Posted by balinor
Actually the size of the box is set in the link itself in customer/main/cart.tpl

Thanks Ryan, can you show me where it is? I can't seem to find it. Here is my cart.php file

Code:

{* $Id: cart.tpl,v 1.95 2006/03/16 15:28:19 svowl Exp $ *}
{if $active_modules.Product_Options}
{include file="main/include_js.tpl" src="modules/Product_Options/edit_product_options.js"}
{/if}

{*  <h3>{$lng.lbl_your_shopping_cart}</h3>  *}
{*{if $cart ne ''}
{$lng.txt_cart_header}
{if $active_modules.Gift_Certificates ne ""}
{$lng.txt_cart_note}
{/if}
{/if}*}
<p />
{capture name=dialog}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_offers.tpl"}
{/if}
<p />
{if $products ne ""}
<form action="cart.php" method="post" name="cartform">
<table width="100%">
{section name=product loop=$products}
{if $products[product].hidden eq ""}
<tr><td class="PListImgBox">
<a href="product.php?productid={$products[product].productid}">{if $products[product].is_pimage eq 'W' }{assign var="imageid" value=$products[product].variantid}{else}{assign var="imageid" value=$products[product].productid}{/if}{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}</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}
</td>
<td valign="top">
<font class="ProductTitle">{$products[product].product}</font>
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
{$products[product].descr}
</td></tr></table>
{if $products[product].product_options ne ""}


{* <b>{$lng.lbl_selected_options}:</b> *}


<b> {include file="modules/Product_Options/display_options.tpl" options=$products[product].product_options} </b>
<br />
{/if}
{assign var="price" value=$products[product].display_price}
{if $active_modules.Product_Configurator ne "" and $products[product].product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_cart.tpl" main_product=$products[product]}
{assign var="price" value=$products[product].pconf_display_price}
<br /><br />
{/if}
<div align="left">
{if $active_modules.Subscriptions ne "" and $products[product].sub_plan ne "" and $products[product].product_type ne "C"}
{include file="modules/Subscriptions/subscription_priceincart.tpl"}
{else}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_price_special.tpl"}
{/if}
<font class="ProductPriceConverting">{include file="currency.tpl" value=$price} x {if $active_modules.Egoods and $products[product].distribution}1<input type="hidden"{else}<input type="text" size="3"{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}" /> = </font><font class="ProductPrice">{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}</font><font class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}</font>
{if $config.Taxes.display_taxed_order_totals eq "Y" and $products[product].taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}
{/if}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_free.tpl"}
{/if}
{/if}
<br />
<br />
<table cellspacing="0" cellpadding="0">
<tr>
<td class="ButtonsRow">{include file="buttons/delete_item.tpl" style="button" href="cart.php?mode=delete&amp;productindex=`$products[product].cartid`"}</td>
        <td class="ButtonsRow">
{if $products[product].product_options ne ''}
{if $config.UA.platform eq 'MacPPC' && $config.UA.browser eq 'MSIE'}
{include file="buttons/edit_product_options.tpl" style="button" id=$products[product].cartid js_to_href="Y"}
{else}
{include file="buttons/edit_product_options.tpl" style="button" id=$products[product].cartid}
{/if}
{/if}
        </td>
</tr>
</table>
</div>
</td></tr>
<tr><td colspan="2"><hr size="1" noshade="noshade" /></td></tr>
{/if}
{/section}
</table>
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}
{if $main eq "fast_lane_checkout"}
{include file="modules/Fast_Lane_Checkout/cart_subtotal.tpl"}
{else}
{include file="customer/main/cart_totals.tpl"}
{/if}
<br />
<br />
{if $js_enabled}
<table cellpadding="0" width="100%" border="0" style="border-collapse: collapse">
<tr>
<td>
<table cellpadding="0" border="0" style="border-collapse: collapse">
<tr>
{*<td class="ButtonsRow">{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}</td>*}

<td class="ButtonsRow">{include file="buttons/update.tpl" style="button" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}</td>

<td class="ButtonsRow">{include file="buttons/clearcart.tpl" button_title=$lng.lbl_clear_cart style="button" href="cart.php?mode=clear_cart"}</td>
</tr>
</table>
</td>
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_checkout_buttons.tpl"}
{/if}
<td>
<table border="0" width="100%" style="border-collapse: collapse">
<tr>
<td align="right"><a href="javascript:history.go(-2);">{include file="buttons/continue_shopping.tpl" style="button"}</a></td>
<td align="right" width="30%">{include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"}
                </td>
        </tr>
</table>
</td>
</tr>
</table>
{else}
<input type="hidden" name="mode" value="checkout" />
{include file="submit_wo_js.tpl" value=$lng.lbl_checkout}
{/if}
</form>
{else}
<b>{$lng.txt_your_shopping_cart_is_empty}</b>
{/if}
{/capture}
{*  {include file="dialog_none.tpl" title="" content=$smarty.capture.dialog extra='width="100%"'}  *}
    {include file="dialog.tpl"      title=$lng.lbl_your_shopping_cart content=$smarty.capture.dialog extra='width="100%"'}




{if $cart.coupon_discount eq 0 and $products ne ""}
<p />
{if $active_modules.Discount_Coupons ne ""}
{include file="modules/Discount_Coupons/add_coupon.tpl}
{/if}
{/if}


balinor 10-05-2006 03:56 PM

Re: How to enlarge the "Edit Options" pop-up window?
 
Oops, sorry Tuan, I mis-read your signature as you using 4-0-18 instead of 4.1.2 :( They have indeed changed the code...not sure where that is set now.

inebriate 10-05-2006 06:42 PM

Re: How to enlarge the "Edit Options" pop-up window?
 
I dont have 4.1.2 installed but I did skim through it in the archive file I have...looks like you need to edit modules/product_options/edit_product_options.php and change the width, this will probably effect all popups however

syddos 10-06-2006 02:30 AM

Re: How to enlarge the "Edit Options" pop-up window?
 
From 4.1.3

Have a look at

{include file="main/include_js.tpl" src="modules/Product_Options/edit_product_options.js"}

look for the following javascript code: -
PHP Code:

function openPopupPOptions(targetid) {
    return 
window.open('popup_poptions.php?target='+target+'&id='+id,'POptions','width=400,height=350,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');



Note the "width", "height" and "resizable" settings.

TL408 10-06-2006 02:30 PM

Re: How to enlarge the "Edit Options" pop-up window?
 
Quote:

Originally Posted by balinor
Oops, sorry Tuan, I mis-read your signature as you using 4-0-18 instead of 4.1.2 :( They have indeed changed the code...not sure where that is set now.

Thanks anyway, Ryan.

Quote:

Originally Posted by syddos
From 4.1.3

Have a look at

{include file="main/include_js.tpl" src="modules/Product_Options/edit_product_options.js"}

look for the following javascript code: -
PHP Code:

function openPopupPOptions(targetid) {
    return 
window.open('popup_poptions.php?target='+target+'&id='+id,'POptions','width=400,height=350,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');



Note the "width", "height" and "resizable" settings.

Thanks so much Syddos. That did it. Your help is greatly appreciated. Have a great weekend.

-Tuan


All times are GMT -8. The time now is 09:41 AM.

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