View Single Post
  #10  
Old 11-14-2011, 11:33 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove Quantity on Details Page

I also figured out that if you open /common_files/customer/main/cart.tpl and put {*}around line 77 that it turns off the ability for the customer to change the quantity. I assume there's probably some way to if/then/else it based on the $product.productcode, but I haven't tried it yet. If I figure that out, I'll post it.

Code:
<span class="product-price-text"> {*{currency value=$price} x {if $active_modules.Egoods and $product.distribution}1<input type="hidden"{else}<input type="text" size="3"{/if} name="productindexes[{$product.cartid}]" value="{$product.amount}" /> = </span>*}

On a side note, putting {*} around Line 134 in the cart.tpl hides the "Estimate shipping" link in the Cart.

Code:
{*{include file="customer/main/shipping_estimator.tpl"}*}
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote