Error on selection of SKUs

joelm's picture

I have noticed that if you have SKUs for a product with a product type with 2 attrbutes (size, color) like...

Product Baby Hat
Color Size
Green 0-3 Months
Red 0-3 Months
Red 3-6 Months

If you go into the cart you will be presented with two dropdowns, one for size and one for color.

When you select ONLY the size dropdown for (0-3 Months) and leave the other dropdown on 'Select Color' it gives an error 'There is an error in XML document (1,260)'

The reason for this is in zNodeSKU.cs. The getSKUByAttributes is returning the XML for 2 SKUs instead of one. Then the GetContentFromString() is erroring because the XML is badly formed. Probably because it doesn't have a top level node.

Can someone move to fix this error.

Cheers,
Joel

AttachmentSize
error.JPG30.53 KB
admin's picture

Error on selecting SKUs

We have a fix! Just replace the appropriate.

SkuSelectionError.zip

Znode Administrator
email: support@znode.com
url: www.znode.com