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)
-   -   Removing Quantity Field from cart (https://forum.x-cart.com/showthread.php?t=29662)

ARW VISIONS 03-13-2007 10:54 AM

Removing Quantity Field from cart
 
I want to remove the quantity field in the cart section on my store. I don't want the custoemr to be able to change the quantity ordered. Any suggestion on how this is done?

carlisleglass 03-14-2007 02:40 AM

Re: Removing Quantity Field from cart
 
I'm guessing you will always want 1 as the quantity so heres how to do it

in skin1/customer/main/product.tpl .... change:

Code:

<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>

to:

Code:

<input type="hidden" id="product_avail" name="amount" value="1">


All times are GMT -8. The time now is 11:25 AM.

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