Doubt this will be a short story, but will try to keep it as short as possible.
When working in ZC versions 1.5.6 or 1.5.6a (so far), it is possible that there is a problem from the admin where a warning is thrown about
Code:
trim() expects parameter 1 to be string, object given in YOUR_ADMIN/includes/functions/general.php on line 441
Another zenner and I were trying to track down the issue. Specifically it had been experienced when working with the attributes controller and I had come across it from another admin page. We each came up with a different solution. So I wanted to test both solutions as it applied to the attributes controller and specifically a product that had attribute images. On the demo site tested, I had SBA installed and ZC 1.5.6a (plus other currently proposed changes for revision b). Problem was that once I found a demo product that had attribute images (products_id=54), they were not displaying. Come to find out, although I had at one time corrected the issue, I had reintroduced it. I haven't gone through the detailed history to discover when it occurred, but I can say that before the below fix, if the option name's manager setting of displaying the option's image is set to other than 1 or 2 that there is a problem for product not controlled by SBA.
I have updated the observer class with the following git commit to allow attribute images to be displayed for all option name settings of all product and controlled as "hidden" with main image swap for just SBA product. The hidden aspect is not limited to just the SBA options that are set to: 'SBA Select List (Dropdown) Basic' where the swap feature is made available.
Anyways, the patch for this issue is available at: https://github.com/mc12345678/Stock_...fc2e56a863263c
Bookmarks