Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Remove "Quantity" section in shopping cart

    Hello All,

    In my shopping cart section I want to remove the "Qty" section and "Update Total" button.

    I tried different ways to do that:

    1. I commented the "cartQuantity" block in "/includes/template/default_template/tpl_shopping_cart_default.php

    PHP Code:
    [B]<td class="cartQuantity">[/B]
    <?php
      
    if ($product['flagShowFixedQuantity']) {
        echo 
    $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
      } else {
        echo 
    $product['quantityField'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
      }
    ?>
           </td>
           <td class="cartQuantityUpdate">
    <?php
      
    if ($product['buttonUpdate'] == '') {
        echo 
    '' ;
      } else {
        echo 
    $product['buttonUpdate'];
      }
    ?>
           </td>
    This took the qty. section out however the page template become inconsistent.

    2. I added the following code into stylesheet.css:

    PHP Code:
    #scQuantityHeading{display: none;}*/ 
    It eliminated the quantity heading but not the whole quantity section

    Is there anyway I can get it work?

    In addition, when I tested the site in IE, the cartRemoveDisplay division was bordered in black???? Is there anyway I can get rid of the black border?

    By the way, here is my website: http://www.oleklejbzon.com/campbells...=shopping_cart
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	quantity1.jpg 
Views:	55 
Size:	7.0 KB 
ID:	9566   Click image for larger version. 

Name:	delete1.jpg 
Views:	49 
Size:	6.3 KB 
ID:	9567  

  2. #2
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Remove "Quantity" section in shopping cart

    Quote Originally Posted by wilson_li View Post
    Hello All,

    In my shopping cart section I want to remove the "Qty" section and "Update Total" button.

    I tried different ways to do that:

    1. I commented the "cartQuantity" block in "/includes/template/default_template/tpl_shopping_cart_default.php

    PHP Code:
    [B]<td class="cartQuantity">[/B]
    <?php
      
    if ($product['flagShowFixedQuantity']) {
        echo 
    $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
      } else {
        echo 
    $product['quantityField'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
      }
    ?>
           </td>
           <td class="cartQuantityUpdate">
    <?php
      
    if ($product['buttonUpdate'] == '') {
        echo 
    '' ;
      } else {
        echo 
    $product['buttonUpdate'];
      }
    ?>
           </td>
    This took the qty. section out however the page template become inconsistent.

    2. I added the following code into stylesheet.css:

    PHP Code:
    #scQuantityHeading{display: none;}*/ 
    It eliminated the quantity heading but not the whole quantity section

    Is there anyway I can get it work?

    In addition, when I tested the site in IE, the cartRemoveDisplay division was bordered in black???? Is there anyway I can get rid of the black border?

    By the way, here is my website: http://www.oleklejbzon.com/campbells...=shopping_cart
    Well, I guess I have to find a better way to do that, any suggestion?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Remove "Quantity" section in shopping cart

    Your first method should work, but you'll have to re-adjust the other header text to line up. I assume your products are one-of-a-kind ?

  4. #4
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Remove "Quantity" section in shopping cart

    Quote Originally Posted by stevesh View Post
    Your first method should work, but you'll have to re-adjust the other header text to line up. I assume your products are one-of-a-kind ?
    Problem solved, I need also to
    PHP Code:
    #scUpdateQuantity {
        
    displaynone;
        
    width2em;
        } 
    disable the scUpdateQuantity

    Steve, how do you think the black border around the delete button? Can I get rid of that?

 

 

Similar Threads

  1. Replies: 4
    Last Post: 23 Mar 2015, 01:46 PM
  2. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  3. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  4. Remove "Zen-Cart!" from Title in Admin Section
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 3 Jun 2008, 05:23 AM
  5. Removing "new products" in Shopping Cart section
    By CKlemow in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Sep 2007, 07:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR