Forums / Templates, Stylesheets, Page Layout / Notifier/Observer problem editing Real World Example 1

Notifier/Observer problem editing Real World Example 1

Locked

Views: 3,998

Results 21 to 24 of 24
This thread is locked. New replies are disabled.
4 Mar 2010, 6:29 AM
#21
dale88 avatar

dale88

New Zenner

Join Date:
Feb 2010
Posts:
23
Plugin Contributions:
0

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

4 Mar 2010, 6:44 AM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

4 Mar 2010, 6:51 AM
#23
dale88 avatar

dale88

New Zenner

Join Date:
Feb 2010
Posts:
23
Plugin Contributions:
0

Re: Notifier/Observer problem editing Real World Example 1

Sure but i was hoping if anyone could help me

12 Mar 2010, 1:03 AM
#24
dale88 avatar

dale88

New Zenner

Join Date:
Feb 2010
Posts:
23
Plugin Contributions:
0

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