Turned this up while testing Lyle's #393490: Previewing a product with default image fails with error patch... noticed that the attributes for the beanie weren't showing in the add to cart form on preview.

CommentFileSizeAuthor
#2 preview_attributes.patch899 bytesIsland Usurper

Comments

rszrama’s picture

Issue tags: +dc2009 code sprint

Tagging.

Island Usurper’s picture

Status: Active » Needs review
StatusFileSize
new899 bytes

Node previews aren't done with a full node_load(), apparently, but only with the $form_state['values']. Since attributes are saved on a separate page, they aren't available unless they are loaded separately.

Patch adds some lazy-loading of a product's attributes into the alteration of the add to cart form.

rszrama’s picture

Status: Needs review » Fixed

Patch worked on my test. Committing.

binhcan’s picture

Thanks a ton. Was fixing the first issue then came to this. Hopefully the fix will be applied in next releases.

Status: Fixed » Closed (fixed)
Issue tags: -dc2009 code sprint

Automatically closed -- issue fixed for 2 weeks with no activity.