Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    i have it loaded now via the autoloader

    config.ot_hazmatfee.php

  2. #12
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    Quote Originally Posted by tcarden View Post
    i have it loaded now via the autoloader

    config.ot_hazmatfee.php
    Don't use that to load an OT module.
    .

    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.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    Quote Originally Posted by tcarden View Post
    a huge belated thanks Dr. Byte!, i really appreciate you taking the time to create that code.

    i installed but is not working. i believe the ot_hazmatfee.php is not loading.

    though i put it here.....
    includes/modules/order_total/

    to test i changed function __construct() to function __xconstruct, but there were no errors.

    to troubleshoot, i tried renaming same as the ObserverNotifier class i created hazMatProduct (ot_hazMatProduct.php) but that didn't seem to make it load either.

    how can i get this to load?,

    thanks
    In Admin->Modules->Order Total, did you enable the module?
    .

    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.

  4. #14
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    Dr. Bytes,
    what i did was, created an autoload config. file to load ot_hazmatfee.php
    but then when i saw your last post i got rid of it and went into the admin.
    when i installed i got an error saying the languages file was missing. ..

    languages/english/modules/order_total/ot_hazMatProduct.php

    which is not what you're file was named, so i went into that dir and renamed

    ot_hazmatfee.php to ot_hazMatProduct.php

    now, when i go into the admin, it's not even showing up,
    what should i do?

    in fact, that page in the admin doesn't look right now, not sure but seems the right hand column is now missing, where you update and edit

  5. #15
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    i went back and renamed the language file and now that admin page is showing correctly.
    i think if i just put in an empty language file ..

    ot_hazMatProduct.php

    that might resolve??

  6. #16
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    that did not work and it caused the admin page to not load correctly as before. so i deleted that empty file.
    now, on admin/modules the module appears but indicates, with red circle it is not loaded.
    this error message appears as before...
    ERROR: module not loaded due to missing language file: /var/www/www.starlight.com/includes/languages/english/modules/order_total/ot_hazMatProduct.php

  7. #17
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    I'm confused. The zip I posted contained 2 files named ot_hazmatfee.php ... one for the modules folder and one for the languages folder. Where did ot_hazMatProduct.php come from?

    When I posted earlier about not using an autoloader script to load an OT module, it was the ot_hazmatfee.php I posted that I was meaning should not be loaded that way.
    .

    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.

  8. #18
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: $_SESSION['cart']->total += addedAmount not showing up in $cartShowTotal

    it's WORKING!!,

    thanks so much!!!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 8
    Last Post: 24 Apr 2016, 05:36 AM
  2. v150 Sub total and Total not showing on checkout pages 2 and 3
    By moksha in forum General Questions
    Replies: 3
    Last Post: 9 Apr 2013, 03:56 PM
  3. Split order not showing total
    By milstream in forum Managing Customers and Orders
    Replies: 0
    Last Post: 29 Nov 2011, 02:17 PM
  4. showing the shopping cart total on a different page
    By adornit in forum General Questions
    Replies: 1
    Last Post: 13 Feb 2008, 10:47 AM
  5. Sub-total not showing discount
    By cjmarley in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 12 Nov 2007, 03:30 AM

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