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)
-   -   Remove Quantity on Details Page (https://forum.x-cart.com/showthread.php?t=58807)

minfinger 11-14-2011 11:59 AM

Re: Remove Quantity on Details Page
 
1 Attachment(s)
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}


minfinger 11-14-2011 12:22 PM

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}



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

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