Jump to content

Qty text box width


Guest

Recommended Posts

CubeCart Version: 3.0.16

SKIN: Silk Sky by vluk (with minor modifications by me)

MODS installed:

Redirect To Basket by Estelle v1.1 20070307

Custom Goup Pricing by Goober

Tabbed Descriptions by Goober

URL: http://www.plastic-productions.com/store/

In the cart area I would like to widen the "Qty" text box (because many purchases will be in the thousands).

How can I widen that text box?

Also in the cart area I would like to add the "Our Products" tab to the navigation menu. (for all "cart" pages)

How do I add to the cart navigation menu so that it's "Cart area Global"?

If you need more information please let me know...

Any help with these would be greatly appreciated.

Thanks,

phastcat

Link to comment
Share on other sites

Guest webicon

In the cart area I would like to widen the "Qty" text box (because many purchases will be in the thousands). 

[b]How can I widen that text box?[/b]

Find where the quantaty box is in the template files (for add to cart: skins/{yourskin}/styleTemplates/content/viewprod.tpl)

add the style attribute into the form tag like so..

<input name="quan" type="text" value="1" size="2" class="textbox" style="width:90px;" />

afraid I dont know answer to second query - but hope this much helps a little.

Link to comment
Share on other sites

Thanks for pointing me in the right direction webicon :)

Found it for the cart here:

/skins/(YOUR SKIN)/styleTemplates/content/cart.tpl

I added the style attribute into the form tag like this:

<td align="center" class="{TD_CART_CLASS}"><input name="quan[{VAL_PRODUCT_KEY}]" type="text" value="{VAL_QUANTITY}" size="2" class="{TEXT_BOX_CLASS}" style="width:50px;" {QUAN_DISABLED} /></td>

MUCH better!

One down one to go....

Link to comment
Share on other sites

If your code is similar to stock Killer skin, look in styleTemplates/boxes/cartNavi.tpl

You'll see code like this:

<!-- BEGIN: repeat_region -->

<td class="topCatsTabLeft">&nbsp;</td>

<td class="topCatsTabMid"><a href="{VAL_LINK}" class="txtCat">{TXT_LINK}</a></td>

<td class="topCatsTabRight">&nbsp;</td>

<!-- END: repeat_region -->

Just after it, you would add this code:

<td class="topCatsTabLeft">&nbsp;</td>

<td class="topCatsTabMid"><a href="index.php?act=viewCat&amp;catId=1" class="txtCat">Our Products</a></td>

<td class="topCatsTabRight">&nbsp;</td>

Link to comment
Share on other sites

If your code is similar to stock Killer skin, look in styleTemplates/boxes/cartNavi.tpl

You'll see code like this:

<!-- BEGIN: repeat_region -->

<td class="topCatsTabLeft"> </td>

<td class="topCatsTabMid"><a href="{VAL_LINK}" class="txtCat">{TXT_LINK}</a></td>

<td class="topCatsTabRight"> </td>

<!-- END: repeat_region -->

Just after it, you would add this code:

<td class="topCatsTabLeft"> </td>

<td class="topCatsTabMid"><a href="index.php?act=viewCat&catId=1" class="txtCat">Our Products</a></td>

<td class="topCatsTabRight"> </td>

WORKS PERFECT!

Thank you so much markscarts!

Awesome :)

phastcat

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...