Active
Project:
Ubercart Option Images
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2009 at 21:35 UTC
Updated:
4 Jul 2009 at 21:35 UTC
The node object currently loads option images in an array even if the option does not have any stock. I looked at how adjustments are managed and created a patch for uc_option_image.module to look at the stock level of an option and only provide those with a positive stock level (as appropriate) to the node object.
The attached patch also incorporates the fix for the image browse and preview options not showing up (!empty($file) from a previous fix).
Hopefully the stock tie-in is useful to someone.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_option_image.patch | 7.13 KB | cybertoast |