Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Notifier/Observer problem editing Real World Example 1

    i looked at the add cart function on shopping cart class. there is an $this->in_cart statement there, so the product is also checked in there. and also i tried removing just the "$_SESSION['cart']->show_total() >= $this->freeAmount" and did not remove "!$_SESSION['cart']->in_cart($this->freeProductID" same error occurs. so the in_cart statement is not the issue here

  2. #22
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Notifier/Observer problem editing Real World Example 1

    Feel free to enlighten us when you figure out why.
    .

    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. #23
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Notifier/Observer problem editing Real World Example 1

    Sure but i was hoping if anyone could help me

  4. #24
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Notifier/Observer problem editing Real World Example 1

    After scanning through the code. i guess the problem is a looping error. if statement is remove it will cause an infinite loop

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v151 Multiple Observer Classes for Same Notifier Event
    By Dave224 in forum General Questions
    Replies: 6
    Last Post: 8 Jul 2013, 11:07 PM
  2. Observer Notifier NOTIFIER_CART_GET_PRODUCTS_END Help
    By Celtic in forum General Questions
    Replies: 2
    Last Post: 9 Jun 2011, 11:22 PM
  3. Developers API Tutorial - A Real World Example
    By LissaE in forum General Questions
    Replies: 27
    Last Post: 11 Oct 2010, 02:57 PM
  4. observer/notifier the "base" class
    By David Bo in forum Basic Configuration
    Replies: 1
    Last Post: 3 Apr 2007, 02:23 AM
  5. Is notifier/observer system good for this?
    By s_p_ike in forum General Questions
    Replies: 5
    Last Post: 7 Aug 2006, 10:16 PM

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