Closed switch-cheehau closed 3 years ago
There will be an additional problem now because the product code is only unique per site. You should still use the product ID to fetch the product and compare the codes. If the don't match, get the variant article that's attached to that product.
There will be an additional problem now because the product code is only unique per site. You should still use the product ID to fetch the product and compare the codes. If the don't match, get the variant article that's attached to that product.
Understand, i tried to update the codes, can you help to review? I've tested manually, the stocklevel will deduct normally for selection as well as its variant article.
I don't know how to adapt the tests, might need your advice on it.
still have a bug. The quantity does not -1 but become zero no matter how many stocks left.
Sorry, i misunderstand the concept. Will close the this PR.
However the issue still remain for selection product where it does not deduct the stocklevel
refer to #240