Forums / Basic Configuration / How do I suppress product names in the Shopping Cart Sidebox?

How do I suppress product names in the Shopping Cart Sidebox?

Locked

Views: 3,631

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
18 Oct 2006, 12:54 PM
#1
trondos avatar

trondos

New Zenner

Join Date:
Oct 2006
Posts:
10
Plugin Contributions:
0

How do I suppress product names in the Shopping Cart Sidebox?

Probably a simple solution for this somewhere, but I haven't been able to find one that works ...

I need to hide the product names in the Shopping Cart sidebox. This list gets very long sometimes with customers frequently adding up to 30 or 40 products to their carts.

Is there a way to configure the cart to do that, only displaying the total fiscal amount and maybe the total number of items in the cart?

Thanks for any help

28 Oct 2006, 12:09 AM
#2
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

I was wondering if you got an answer to this (or figured it out yourself). I would like to do the same thing....

Anyone know the answer?

28 Oct 2006, 11:17 AM
#3
vr4indian avatar

vr4indian

Zen Follower

Join Date:
Apr 2006
Posts:
141
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

can you tell me in detail what you want

what i mean:

you do not want to display any product name in shopping cart side box.

so what will remain in that box ?

only total price?

see do u want this?

http://netclues.net/demo1/caytech/images/madad.jpg

28 Oct 2006, 5:46 PM
#4
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

Hi Indian,

I sent you an email. Yes, I want a cart similar to yours but showing total items. e.g 4 items, $27.99.

Thanks,

Amy

28 Oct 2006, 6:10 PM
#5
vr4indian avatar

vr4indian

Zen Follower

Join Date:
Apr 2006
Posts:
141
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

ok

it can be easily done

you just send me the format you want.

i need IMAGE .. in which way you wnat to disply. so i will make it

make image in photo shop or ms paint.

28 Oct 2006, 6:22 PM
#6
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

Hi Indian,

Could you just tell me how you suppressed the items in your shopping cart? Is there something I need to turn OFF?

Thanks,

Amy

28 Oct 2006, 7:27 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: How do I suppress product names in the Shopping Cart Sidebox?

.
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.

28 Oct 2006, 8:13 PM
#8
trondos avatar

trondos

New Zenner

Join Date:
Oct 2006
Posts:
10
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

Hi, everyone.

I sort of solved this - the "bad" way.

I've edited the tpl_shopping_cart.php file. I know it's wrong, but I was desperate. I bypassed the loop traversing the $products. Adding only:

$content .= '<div id="cartBoxListWrapper"><ul><li>Contains ' . $_SESSION['cart']->count_contents() . ' item(s)' . '</li></ul></div>';

But that's not right either: if I add an amount that's not an integer value, the cart adds that to the count. And that's not wat I want either, but I see that there is a post here with a possible download to fix it. I'm shecking that out...

30 Oct 2006, 5:02 PM
#9
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

DrByte,

Thanks for the link to the download! That is exactly what I was looking for. My only question now is how to make the sidebox shopping cart a link so my customers can view it and checkout.

Thanks!

Amy

30 Oct 2006, 7:14 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: How do I suppress product names in the Shopping Cart Sidebox?

I suppose you could change the line in /includes/modules/sideboxes/cart_summary.php, line 26
from this$content = $totalsDisplay;to this:```
$content = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . $totalsDisplay . '</a>';

.
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 Oct 2006, 8:26 PM
#11
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

Hi DrByte,

I posted in the code you gave me (overriding the $content = $totalsDisplay; on line 26), but it didn't work. Am I supposed to put in the new code exactly the way you gave it to me, or does it need to be altered somehow?

Thanks!

3 Nov 2006, 6:16 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: How do I suppress product names in the Shopping Cart Sidebox?

exact should have worked.

what's the URL ?

.
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.

6 Nov 2006, 11:24 PM
#13
alsmonarch avatar

alsmonarch

New Zenner

Join Date:
Oct 2006
Location:
Maine
Posts:
51
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

Hi Dr Byte,

I finally got it to work. I played around with the link you gave me, putting it in different parts of the script until it worked. The link is https://www.theoccasionalgift.com
It didn't make the title (SHOPPING CART) a link, but the contents are.

Thanks!

22 Feb 2007, 8:48 PM
#14
pcdesigns avatar

pcdesigns

New Zenner

Join Date:
Feb 2007
Posts:
76
Plugin Contributions:
0

Re: How do I suppress product names in the Shopping Cart Sidebox?

I downloaded the side box thing to only display the total and qty. I changed that line of code suggested but the qty and amount in the cart box still is not a link. How did you get it to work?