Forums / Basic Configuration / Qty & totals only for shopping cart sidebox

Qty & totals only for shopping cart sidebox

Locked

Views: 1,690

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 Feb 2009, 6:00 AM
#1
thedonutlounge avatar

thedonutlounge

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Qty & totals only for shopping cart sidebox

I couldn't find a solution to my problem, so I'm hoping someone could help me. I'd like my shopping cart sidebox to only should the # of items in cart & price totals.

Right now it's showing "1productname - line divider - $xx".
I'd like to change that to "1 item / $xx".

Also, I've already replaced the Shopping Cart header to show as an image, rather than text. My image is "View Cart" so I'd want it to float left and be on the same line as the "1 item / $xx".

If someone could help me out, that'd be great!! Thanks!!

2 Feb 2009, 6:03 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

thedonutlounge:

I couldn't find a solution to my problem, so I'm hoping someone could help me. I'd like my shopping cart sidebox to only should the # of items in cart & price totals.

Right now it's showing "1productname - line divider - $xx".
I'd like to change that to "1 item / $xx".

Also, I've already replaced the Shopping Cart header to show as an image, rather than text. My image is "View Cart" so I'd want it to float left and be on the same line as the "1 item / $xx".

If someone could help me out, that'd be great!! Thanks!!

Th,
Need a url to the site please...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

2 Feb 2009, 6:06 AM
#3
thedonutlounge avatar

thedonutlounge

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

http://thedonutlounge.com/zencart2009v2/

I've figured out the "item" situation. Currently working on getting rid of the line.

Thanks!

[edit] Oh, but now that I've added a different product, it's listing them. I'd like just one one total quantity for the whole order (e.g. 2 items, not 1 button, 1 bag).

2 Feb 2009, 6:24 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

thedonutlounge:

http://thedonutlounge.com/zencart2009v2/

I've figured out the "item" situation. Currently working on getting rid of the line.

Thanks!

[edit] Oh, but now that I've added a different product, it's listing them. I'd like just one one total quantity for the whole order (e.g. 2 items, not 1 button, 1 bag).

The,
to get rid of the /

includes/ templates/ your_template/ sideboxes/ tpl_shopping_cart.php

  1. Line 45
  2. if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<br class="clearBoth" />';
    }
  3. the red font above is the fix
  4. take out the <hr/>
  5. Just leave this '/'

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

2 Feb 2009, 6:30 AM
#5
thedonutlounge avatar

thedonutlounge

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

haredo:

The,
to get rid of the /

includes/ templates/ your_template/ sideboxes/ tpl_shopping_cart.php

  1. Line 45
  1. if ($_SESSION['cart']->count_contents() > 0) {
$content .= '<hr />';
$content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
$content .= '<br class="clearBoth" />';

}

  1. the red font above is the fix
  1. take out the <hr/>
  1. Just leave this '/'

Thank you!! That worked! Now I'm just trying to get the qtys to total and get them on one line.

2 Feb 2009, 7:11 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

The,
Looking great....

What was the fix?????

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

2 Feb 2009, 7:15 AM
#7
thedonutlounge avatar

thedonutlounge

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: Qty & totals only for shopping cart sidebox

I guess I didn't look hard enough the first time... there's actually a Cart Summary Sidebox Add-on! :D Sorry for your troubles. Thanks for helping!