Hello Drupal and Ubercart fans.
I am working on a module for my stockphoto website where i am using the nodeapi hook to catch an product (in my case a class of photo) is created by an photographer. The idea is to create multiple downloads from that one product upload and this isn't really what bugs me so lets get to it. After setting the default order of a set of attribute options it gets ignored for output (See attached screen shot for my configuration). What i can track back from my settings and my debug output is that the option weight isnt saved right and in addition to that the output fails to render the options in the correct way on the product page.
stdClass Object
(
[aid] => 2
[name] => formaten
[default_label] => Formaten
[default_ordering] => 0
[default_required] => 1
[default_display] => 2
[description] => Dit zijn de formaten die we te bieden hebben. Kijk hier voor meer informatie over formaten van de foto's en het gebruik er van.
[default_option] => 4
[label] => Sizes
[required] => 1
[ordering] => 0
[display] => 2
[options] => Array
(
[5] => stdClass Object
(
[pcid] => photos
[oid] => 5
[cost] => 0.00000
[price] => 1.00000
[weight] => 0
[ordering] => 0
[name] => Groot
[aid] => 2
)
[3] => stdClass Object
(
[pcid] => photos
[oid] => 3
[cost] => 0.00000
[price] => 3.00000
[weight] => 2
[ordering] => 0
[name] => Klein
[aid] => 2
)
[6] => stdClass Object
(
[pcid] => photos
[oid] => 6
[cost] => 0.00000
[price] => 4.00000
[weight] => 3
[ordering] => 0
[name] => Middel
[aid] => 2
)
)
)
Is there anyone else with this same issue ?. If so i am thinking of writing a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2010-07-04 at 14.46.16.png | 297.08 KB | johnnymast |
Comments
Comment #1
johnnymast commentedPS output is a debug print of what uc_class_get_attributes(); returns.
Comment #2
johnnymast commentedThis was actually not a bug it was my own bad sorry guys.