Totally Zenned
- Join Date:
- Jun 2007
- Location:
- Bronx, New York, United States
- Posts:
- 949
- Plugin Contributions:
- 3
Trying to trace down what went wrong with this observer...
So rather than make a separate call to the table of products, I figured I would join on the same call that the Product class uses and call the extra product information from the related database table. this was working all up to this morning and I cannot figure out what I changed or didn't change to the point where this observer is no longer functioning (ie, the merge that should be taking place on the instantiation of the Product class, is take place but somehow isn't)
I know the product data from the separate table is being pulled up (I can debug dump $data in the observer class file and see the fields) but the fields don't make their way over to the product_info view. (I know I could probably just load the product data directly by using /includes/modules/pages/____/main_template_vars_product_type.php but wanted to avoid duplicating the same code over and over again.) It did work up to a point and then suddenly, the class no longer pushes the merged $data to the product info page.
I would appreciate any help or advice with this as possible.
(This is for PHP 8.5 and ZC 2.2.2)
https://gist.github.com/retched/a08f8af812d398b73e174886aca01c53