Forums / General Questions / Removing 1 ea from Shopping Cart

Removing 1 ea from Shopping Cart

Locked

Views: 2,133

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Aug 2006, 6:37 AM
#1
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
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!

30 Aug 2006, 6:55 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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:```
$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.

30 Aug 2006, 7:15 AM
#3
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

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?

30 Aug 2006, 7:46 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

30 Aug 2006, 6:39 PM
#5
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: Removing 1 ea from Shopping Cart

Dr Byte::: You Rock!!!