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)
-   -   Change QTY drop down to text field (https://forum.x-cart.com/showthread.php?t=32508)

cflsystems 04-02-2009 08:13 AM

Re: Change QTY drop down to text field
 
It's all there I just didn't break it apart. Look for this in the file (or similar depending on cart version)
Code:

<select name="amount">
{section name=quantity loop=$product.appearance.loop_quantity start=$product.appearance.min_quantity}
<option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option>
{/section}
</select>

and comment it out with {* *}
then add
Code:

<input type="text" style="vertical-align: middle;" name="amount" size="3" maxlength="4" value="{$product.appearance.min_quantity}" />

hoosierglass 04-03-2009 05:43 AM

Re: Change QTY drop down to text field
 
Thanks Steve this worked great.

I am having an alignment issue. This wants to align left. I have tried several different ways to try and center this but can only get it to work by giving a large left padding in the css file in the BuyNowQuantity class. Any thoughts?

Mike

cflsystems 04-03-2009 07:28 AM

Re: Change QTY drop down to text field
 
It's probably the alignment of the parent element that you have to change


All times are GMT -8. The time now is 01:33 AM.

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