Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    46
    Plugin Contributions
    0

    Default Disable price in the shopping cart?

    I have enabled the shopping cart sidebox, but is there anyway to disable it from showing the price? I will use the quantity discount which only shows at the end of the checkout processso i don't want to discourage people looking at a price that is not right (too high)?

  2. #2
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: Disable price in the shopping cart?

    Hi - I also want to do this as Im building a 'shop' which is actually for a modelling agency and Im using the 'cart' as a 'shortlist'. So i dont want any prices either.

    I shall be watching the thread for an answer

  3. #3
    Join Date
    Jan 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Disable price in the shopping cart?

    hi lizzy, i think i found it.

    includes/templates/template_default/sideboxes/tpl_shopping_cart.php

    look for this code
    if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<br class="clearBoth" />';
    }

    and delete
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    that should do it....

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Disable price in the shopping cart?

    Just be sure to save your modified file as /includes/templates/your_template/sideboxes/tpl_shopping_cart.php, so that your changes will not be erased when you upgrade to the next version of Zen Cart. Never change the files in /template_default/.

    If you don't have a custom template yet, look in the FAQs for information on making one.

  5. #5
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: Disable price in the shopping cart?

    Thats great - worked fine (i actually deleted the block to remove the hr and everything)

    I would like to also remove the code showing 1ea (ie the quantity)but I cant figure out how to remove this - i can see the quantity code in the PHp file but im not sure exactly where i should start and stop the removal as I want the product name leaving in. I have experiemented but seem to be getting some unpredictable results eg I got the number to go but the ea remained. I got the 1ea to go but then the whole information box below vanished!

    Any ideas?

    Thanks
    Liz

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Disable price in the shopping cart?

    Edit this code:
    PHP Code:
          $content .= '<li>';

          if ((
    $_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            
    $content .= '<span class="cartNewItem">';
          } else {
            
    $content .= '<span class="cartOldItem">';
          }

          
    $content .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER '</span><a href="' zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' $products[$i]['id']) . '">'
    to read
    PHP Code:
          $content .= '<li>';

          
    $content .= <a href="' . zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']) . '">'; 

 

 

Similar Threads

  1. Show special price info in shopping cart (instead only the final price)?
    By Cindy2010 in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 19 Jan 2011, 02:06 AM
  2. Is there a way to Disable the Shopping Cart ...
    By jibbyprog in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Oct 2010, 04:55 PM
  3. Can I disable the shopping cart and user account features?
    By JonMR2 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Mar 2010, 08:53 PM
  4. Disable the shopping cart?
    By cspsgl in forum General Questions
    Replies: 13
    Last Post: 27 Nov 2008, 05:47 AM
  5. How can I disable the Shopping cart?
    By X-Bumble in forum General Questions
    Replies: 2
    Last Post: 25 Sep 2008, 05:27 PM

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