Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove Quantity on Details Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-14-2011, 11:59 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Remove Quantity on Details Page

So I did a little more playing around with another site I have.

In the following code, notice I perform an if/then/else on the $product.productid eq 90. 90 is the Product ID for Party Deposit and it hides the multiplier options for just the Party Deposit. (see attachment) I've been trying to figure this out for MONTHS! Oh well...Done now.

Code:
<span class="product-price-text"> {if $product.productid eq '90'} {else} {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> {/if}
Attached Thumbnails
Click image for larger version

Name:	thepeanutman_Cart_Multiplier_Example.jpg
Views:	132
Size:	128.0 KB
ID:	2780  
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020