View Single Post
  #12  
Old 11-14-2011, 12:22 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove Quantity on Details Page

Remove the quantity Modifier from the Mini Cart was my next goal, so here it is.
Open the /common_files/customer/minicart.tpl file.

On line 54 put a {* at the begin of that line and on line 67 put *} after the "=" sign.

In order to turn this off on a per product basis, use the following code and change as needed. Starting at line 52:
Notice the use of the Does Not Equal "!=".
Code:
{else} {if $product.productid != '90'} {if $active_modules.Egoods and $product.distribution} <span class="quantity"> 1 <input type="hidden" name="productindexes[{$product.cartid}]" value="1" /> </span> {else} <input type="text" name="productindexes[{$product.cartid}]" value="{$product.amount}" class="quantity" /> {/if} x <span class="price">{currency value=$price}</span> = {else} <span class="total">{multi x=$price y=$product.amount assign=unformatted}{currency value=$unformatted}</span> {/if} {/if}
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote