I can't seem to see this anywhere. Presently it's 4 characters wide. I really only require 2. Is there a way to change it?
I can't seem to see this anywhere. Presently it's 4 characters wide. I really only require 2. Is there a way to change it?
you can either edit the file itself which would be tpl_product_info_display.php or tpl_product_music_info_display.php
on or about line 101 find
and look for maxlength="6" size="4" and change the size to 1 or 2.Code:$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
ideally however you will want to remove both and control the input via your style sheet and set your exact width of the field there.
Dan - statuscontrols.com/web
web programming and design
Hi,
Thanks, However...I modified both files just changing the size value but the box stayed the same 4 character width.
if your comfortable you can pm me temp ftp details and I can make the changes for you.
Dan - statuscontrols.com/web
web programming and design
Hi Dan,
I would if I could but the site is still a-building on my local computer.
I guess it's just not a matter of modding those two files?
David
should be, if i were you id just remove
size="4"
from that line,
then add this to your stylesheet.css
#cartAdd input { width:25px; }
and adjust as needed.
Dan - statuscontrols.com/web
web programming and design
Thanks. I'll give it a try and report back.
OK nothing worked but I ran a grep on size="4" and found that I could narrow the quantity display field by modifying
C:\server\xampp\xampp\htdocs\store\includes\modules\pages\shopping_cart\header_p hp.php
at line 139 to say size="1"
It's still not quite as narrow as I'd like it but it's a lot better.