Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Posts
    191
    Plugin Contributions
    0

    Removing 1 ea from Shopping Cart

    Hi, I would like to know if it is possible to remove 1ea display when a purchase is made? I would like to just have the name show up. For example, if a buyer purchases a Gold Watch, I would just like to have Gold Watch show up, not 1ea Gold Watch. Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Removing 1 ea from Shopping Cart

    You can remove the "ea" from the language file (BOX_SHOPPING_CART_DIVIDER), simply replacing it with ' x ' as a "1 x Gold Watch" indicator.
    Otherwise, you must modify the code in your tpl_shopping_cart.php sidebox file and remove:
    Code:
    $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2004
    Posts
    191
    Plugin Contributions
    0

    Default Re: Removing 1 ea from Shopping Cart

    Hey Dr Byte! Thanks for the reply.

    I found the suggested code on line # 26

    $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']) . '">';

    I removed all if and it worked but then I realized I needed the link in the cart for the product.......

    So, I am trying to figure out where to slice it.

    I can put that in my custom template for future updates..correct?
    Last edited by Linux; 30 Aug 2006 at 08:21 AM.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Removing 1 ea from Shopping Cart

    1. Just remove the portion of code I quoted.

    2. Yes, you should put the edited file in your overrides folder
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2004
    Posts
    191
    Plugin Contributions
    0

    Default Re: Removing 1 ea from Shopping Cart

    Dr Byte::: You Rock!!!

 

 

Similar Threads

  1. Removing the Weight from above the shopping cart
    By nigelt74 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Jul 2009, 03:50 AM
  2. Removing the max: 1 from the Shopping Cart
    By dcprod in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Jun 2009, 02:57 PM
  3. Removing sideboxes from shopping cart
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jul 2007, 01:16 AM
  4. Removing image from shopping cart
    By halabaloo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 20 Jul 2006, 01:22 AM
  5. Removing 'More' from shopping cart sidebox
    By greatbaits1 in forum General Questions
    Replies: 3
    Last Post: 19 Jun 2006, 09:33 AM

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