Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Hide Sub total in shopping cart page

    Bump.
    Is this possible?
    Anyone?

  3. #3
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  5. #5
    Join Date
    Nov 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Hide Sub total in shopping cart page

    Quote Originally Posted by Ajeh View Post
    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?

  6. #6
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  8. #8
    Join Date
    Nov 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Hide Sub total in shopping cart page

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

    Quote Originally Posted by Ajeh View Post
    you will see where the per word and per letter are built ...
    I don't understand this very well

  9. #9
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

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

  10. #10
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default 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:

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Customizing Shopping Cart Sidebox, Sub Total, Vat and Layout
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Feb 2013, 04:46 PM
  2. shopping cart total and sub total missmatch v1.3.8
    By James Dunstone in forum General Questions
    Replies: 0
    Last Post: 15 Jun 2011, 09:51 PM
  3. Shopping Cart item and sub-total tax USD
    By DanP in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 26 Jan 2010, 05:37 PM
  4. Shopping Cart Sub-Total
    By Sweet ZouZou in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Dec 2007, 07:28 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR