Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I've got an issue with variants refusing to persist on a product. I've walked the stack trace in Devtools and it's attached.
The error seems to be in $scope.getCheckedVariantGroups, but I haven't been able to isolate it any further, sadly.
This is my variant collection:
Worked it out! If you have an attribute group, but no attributes, then it errors out. Deleting the empty attribute group fixes it.
Line 200 of variant-editor.controller.js needs a null check on variantGroup.items!
Nicely figured out.
If you are up for it, this file should form part of the OS Umbraco front end for TC, so would be super awesome if you had the time to submit a PR for it https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/pulls
No worries if not though, I'll pick it up on my next round of updates.
Gladly! I'll send in a PR shortly 🙂
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted