Forums / Templates, Stylesheets, Page Layout / Hide Sub total in shopping cart page

Hide Sub total in shopping cart page

Locked

Started by eleven01 on 21 Apr 2009, 10:18 AM · Views: 2,683

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
21 Apr 2009, 10:18 AM
#1
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Hide Sub total in shopping cart page

Hi all,
Trying to hide the "sub-total" on the first shopping cart page.
Hope somebody can help, I'm working on a printers website, we have a custom sized poster product,
Customer enters height and width numbers in text attributes, these numbers are then multiplied and sent to the shopping cart,
If they select width "10" and height "10" they are given a price of £100 (for example)
But the sub total at the bottom shows "0", the price appears as normal in the following steps.
Can I hide the subtotal on the first shopping cart page?
Thanks.

22 Apr 2009, 9:55 AM
#2
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Bump.
Is this possible?
Anyone?

22 Apr 2009, 12:46 PM
#3
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Nevermind, figured it out,
If anyone else ever wants to do this:
I just changed the text colour to match the background colour, therefore rendering the text "invisible".

23 Apr 2009, 3:35 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Hide Sub total in shopping cart page

Thanks for the update on how you managed it ...

NOTE: The other way is to change it in the stylesheet to none ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Apr 2009, 8:44 AM
#5
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Ajeh:

Thanks for the update on how you managed it ...

NOTE: The other way is to change it in the stylesheet to none ...

which file in particular, 'cos I see 3 stylesheet.css files and a separate one in each template?
Secondly, which line in particular?
Third, is it possible to to the same to totals?

23 Apr 2009, 9:20 AM
#6
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Thanks for the response Ajeh,
I hope you don't mind if I ask you an unrelated question, rather than start a whole new thread,
If I use a text based attribute that shows "price per letter: £1.00"
underneath the text box, how do I hide or remove the "£1.00"?
Figured out how to hide or change the "price per letter" text but can't hide the price, tried changing the colour to hide it that way but it also changed the colour of other text I want to keep.

23 Apr 2009, 1:30 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Hide Sub total in shopping cart page

You would need to customize the attributes.php module ...

Starting around line 424 you will see where the per word and per letter are built ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Apr 2009, 9:07 PM
#8
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

will this hide the prices/totals in the checkout proceedure?

Ajeh:

you will see where the per word and per letter are built ...
I don't understand this very well

24 Apr 2009, 9:18 AM
#9
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

I could use a clue on this too, any pointers?
Tried editing out (what seem like relevant) bits of code from where you mentioned in the attributes.php, but it keeps throwing a blank page at me.

24 Apr 2009, 11:35 AM
#10
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Got it, I managed to remove the price from next to the text entry fields and it doesn't seem to have affected anything else (yet)
I removed these lines from attributes.php:

if ($products_options->fields['attributes_price_letters'] != 0) {
                        $tmp_html .= TEXT_PER_LETTER . $currencies->display_price($products_options->fields['attributes_price_letters'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ($products_options->fields['attributes_price_letters_free'] !=0 ? TEXT_LETTERS_FREE . $products_options->fields['attributes_price_letters_free'] : '');
                      }

Seems to work.

24 Apr 2009, 12:27 PM
#11
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

voip4africa:

will this hide the prices/totals in the checkout proceedure?

I don't understand this very well

why won't anyone reply to me?:sadwalk:

24 Apr 2009, 3:17 PM
#12
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

eleven01:

Nevermind, figured it out,
If anyone else ever wants to do this:
I just changed the text colour to match the background colour, therefore rendering the text "invisible".

which files in particular did you do this in?

24 Apr 2009, 3:30 PM
#13
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

In: store/includes/template/YOURTEMPLATE/css/stylesheet.css

About halfway down you will see: #cartSubTotal
If you set the background colour and text colour to #ffffff (white)
it will become "invisible" in the first checkout page.
If that's not clear, reply with your question and I'll try to clear it up.

25 Apr 2009, 12:47 PM
#14
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

:dontgetit no luck. I did as you said:

but I still see SubTotals, Unit Prices & Totals (I've circled in red what I want to hide)

27 Apr 2009, 8:55 AM
#15
eleven01 avatar

eleven01

New Zenner

Join Date:
Mar 2009
Posts:
28
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

Ok, at the bottom, where you have circled the lowest part which reads: Sub-Total: $0.00,
That is in white on a background of grey (e9e9e9)
If you change that background colour to #ffffff (white) that piece of text will become invisible.
That was the only part I was trying to change, so I don't know about all the other prices, how come you're trying to hide every price?
I would recommend downloading an addon for firefox called "firebug" which lets you inspect and edit elements on any web page, then when you have worked out what to change you can go to your files and change it.
It has helped me a lot.

27 Apr 2009, 9:11 AM
#16
voip4africa avatar

voip4africa

New Zenner

Join Date:
Nov 2008
Posts:
26
Plugin Contributions:
0

Re: Hide Sub total in shopping cart page

the store I'm making is only like an "inqure for details" store - no prices or payments things anywhere. visitors add the items of interest to the cart (stating qty for for each) and submit. they then receive a reply which states prices, shipping, payment, etc...
This is because it's a store selling in wholesale to distributors and each buyer has different prices.