Jump to content

Loyalty module : Trying to get property of non-object


Saik

Recommended Posts

Dear all,

 

I am using the loyalty module to create a voucher, but when I call LoyaltyDefaultModuleFrontController I have an error "Notice: Trying to get property of non-object in xxx\modules\loyalty\LoyaltyModule.php on line 228"

This line is calling an object "$f" which is not defined anywhere.

 

Any clue?

 

Thank you!

 

P.S. I am under 1.605

Link to comment
Share on other sites

It seems that $item is an order, so instead of $f it should be $item.

The problem does not appear on the frontend because there is a redirection, but since I use it outside it stops my script.

Or not, but I think that's it.

Link to comment
Share on other sites

×
×
  • Create New...