Thanks for confirming that that solution works. Happy Zenning!
Printable View
Uploaded version 1.3.2 for review. When made available can be downloaded from here: https://www.zen-cart.com/downloads.php?do=file&id=618
Version is more than just adding in the above changes. These are the significant changes identified in the readme:
- Correct visual display when any one or more option name has only one option value.
- If an internal id is blank, then when generating the object id for javascript assign a zero (0).
- Add code associated with SBA to continue compatibility.
- Remove some code from the includes/modules/YOUR_TEMPLATE/attributes.php to restore to original/SBA related.
- Added possible functionality to provide a contact us line/item.
- Added ability to hide price based on user's requiring to be logged in.
- Added ability to obscure the actual number of available product greater than
some chosen value.
- Incorporated possible use of displaying price at grid box instead of at option name's option value.
- Improved product processing to allow all ZC default attribute types to be used.
- For uploading files, it is possible to associate a single file for all "variants" or
to provide one file for each product variation (grid option).
Content is also downloadable from github at: https://github.com/mc12345678/attributes-grid
Version 1.3.2 of Product Attribute Grid is now available from downloads.
Do I need Version 1.3.2 of Product Attribute Grid after your fixes?
Maybe not specifically, but I did try to rework some of the grid organization before releasing 1.3.2. I didn't like how some of the items were displayed when looking at the combinations of attributes and option values so I made a few changes to try to provide some consistent lineup.
Saw this message as I was looking for action necessary to support a product option type added by Stock By Attributes and trying to understand the background for an option in Edit Orders. Based on that review I realized that this plugin has been modified to support operation as described in the edit orders plugin forum and by the above message, but the code did not quite line up. I have made modifications to this plugin to support its use in Edit Orders and am submitting it to the ZC community to further support its use.
Preliminary review of the changes can be found by review at github.
Product Attributes Grid v1.3.3 has been posted to the download area. This version is compatible with Edit Orders. It will convert the product option type within the database from what was generated before to what edit orders was expecting and for now does not delete the previous record to maintain compatibility during the transition.
ZC download location: https://www.zen-cart.com/downloads.php?do=file&id=618
Was most recently tested on version 4.1.7; however, the protective code in Edit Orders has been there for a number of years and remains present. For other reasons I had compared 4.1.7 back to 4.1.3 and there had been no change to this area of the code so it likely is compatible with Edit Orders 4.1.3 (released 8 Jan 2014) and up. Prior to 4.1.3, other action (either by code edit or some form of javascript "insertion") would have been necessary to implement the modification of product that had an attribute option type other than the general default.
Issue identified that began in version 1.3.2 of this module. If Stock By Attributes was not installed (files at least) then, this plugin would not properly process grid items added to the cart. I have uploaded version 1.3.4 to the plugins area which will be available here upon review/approval. If the files of SBA were installed, even if no features were activated, then the add-to-cart would operate properly.
The summary writeup was:
If desire to see/obtain the code changes in advance, the plugin is also available from GitHub at: https://github.com/mc12345678/Attributes-GridQuote:
- Changes made to support SBA back in version 1.3.2 prevented proper operation if Stock By Attributes was not installed. This has been corrected in this version.
- Modified the included attributes.php file to incorporate changes made to Stock By Attributes and Attribute Image Swap.
Thanks to oavs for identifying this issue.