Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2007
    Posts
    18
    Plugin Contributions
    0

    Default Text on the shopping cart

    Total Items: 1 Weight: 19.5lbs Amount: $189.99

    above is the way my shopping cart displays. the weight is actually the shipping cost, is there any way to change the word weight to shipping price and take out the lbs?

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

    Default Re: Text on the shopping cart

    The text is built from the constant:
    TEXT_TOTAL_WEIGHT

    This is in the main language file ...

    You will want to copy that to your templates and overrides directory, if you have not already done it before for other changes, and you can change the define statement for this ...

    NOTE: providing you do not reference weight on shipping anywhere you can change this to anything you like ...

    A search in the Tools ... Developer's Tool Kit ... in the bottom input box for:
    TEXT_TOTAL_WEIGHT

    Select Catalog and hit Search ... will show you all files that would be effected by this change ...
    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!

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

    Default Re: Text on the shopping cart

    Note: you may also wish to change the:
    TEXT_PRODUCT_WEIGHT_UNIT

    Which shows as the lbs after that weight ...
    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!

  4. #4
    Join Date
    Mar 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Text on the shopping cart

    I found where to take out the lbs and it worked.
    but i cant find TEXT_TOTAL_WEIGHT
    anywhere

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

    Default Re: Text on the shopping cart

    Developer's Tool Kit says:
    /includes/languages/english/popup_shipping_estimator.php
    Line #23 : define('TEXT_TOTAL_WEIGHT', '  Weight: ');
    /includes/languages/english/shopping_cart.php
    Line #25 : define('TEXT_TOTAL_WEIGHT', '  Weight: ');
    Copy those files to your templates and overrides directories if you have not already:
    /includes/languages/english/your_template_dir/popup_shipping_estimator.php
    /includes/languages/english/your_template_dir/shopping_cart.php
    And change what the defines read ...
    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!

  6. #6
    Join Date
    Mar 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Text on the shopping cart

    any ideas?

  7. #7
    Join Date
    Mar 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Text on the shopping cart

    can anybody help?

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

    Default Re: Text on the shopping cart

    I gave you the files and the defines to change ...

    Did you try to change them?
    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!

  9. #9
    Join Date
    Mar 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Text on the shopping cart

    ok i finally got it now. but it looks like this
    Total Items: 1 Shipping Price: $ 19.5 + Item Price: $349.99

    anyway to have is display $19.50 instead of $19.5

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

    Default Re: Text on the shopping cart

    You will need to touch the code that builds that ...

    There is no override for this so save the original and your changes ... edit the file:
    /includes/modules/pages/shopping_cart/header_php.php

    Change line 42 - 44 from:
    PHP Code:
      case (SHOW_TOTALS_IN_CART == '1'):
      
    $totalsDisplay TEXT_TOTAL_ITEMS $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT $shipping_weight TEXT_PRODUCT_WEIGHT_UNIT TEXT_TOTAL_AMOUNT $currencies->format($_SESSION['cart']->show_total());
      break; 
    To read:
    PHP Code:
      case (SHOW_TOTALS_IN_CART == '1'):
      
    $totalsDisplay TEXT_TOTAL_ITEMS $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT $currencies->format($shipping_weight) . TEXT_PRODUCT_WEIGHT_UNIT TEXT_TOTAL_AMOUNT $currencies->format($_SESSION['cart']->show_total());
      break; 
    You will need to adjust the Shipping estimator in a similar manner if you are using that ...
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding text to the shopping cart bar
    By Tamuren in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Aug 2011, 06:05 PM
  2. Shopping cart image & shopping cart to appear all the time
    By 4dw in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Nov 2009, 09:44 AM
  3. Text Box Attribute - text not wrapping in shopping cart
    By cowgirlmodel in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 23 Oct 2009, 07:00 PM
  4. How do I remove the weight text from the shopping cart?
    By flipjargendy in forum General Questions
    Replies: 2
    Last Post: 28 Aug 2008, 06:46 PM
  5. can I add a text link on the shopping cart page
    By jdsmith8 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Nov 2006, 12:14 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