Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Basic question about the ONS update function, testing it out

    am getting going using the Observer/Notifier System and have a question

    to test and see if the update function was running i did this....

    PHP Code:
    function hazMatProduct() {
        
    $_SESSION['cart']->attach($this, array('NOTIFIER_CART_ADD_CART_END''NOTIFIER_CART_REMOVE_END'));
    }

    function 
    update(&$class$eventID$paramsArray = array()) {
        
    $_SESSION['cart']->total 0;
        } 
    but when adding or updating the cart, the subtotal is not 0.
    if the update function is running shouldn't ...
    PHP Code:
    $_SESSION['cart']->total 0
    make the the cart subtotal be 0?

    i'm certain the autoloaders are working correctly...

  2. #2
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Basic question about the ONS update function, testing it out

    i went thru the wiki Developer tutorials and had them working. what's a good simple way to see if the update function is firing?

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Basic question about the ONS update function, testing it out

    okay i figured it out, i need this notifier for that to work....

    'NOTIFIER_CART_SHOW_TOTAL_END'

 

 

Similar Threads

  1. First time upgrader general question about handling add ons
    By RoPey in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 9 Jun 2010, 09:44 AM
  2. Very Basic Question About PayPal
    By Xarzu in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2009, 05:48 PM
  3. Cool Idea/Question About Demographic Add-ons
    By BigSash in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Nov 2008, 07:59 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