这是indexloc提供的服务,不要输入任何密码
Skip to content

ProductVariant CompareAtPrice can't be set to empty #373

@lantram

Description

@lantram

Perhaps I'm missing something, but it doesn't seem possible to set CompareAtPrice to null or empty. :?

decimal? price = _largest(variant.Price, variant.CompareAtPrice);
await variantService.UpdateAsync(variant.Id.Value,
    new ProductVariant()
    {
        Price = price,
        CompareAtPrice = null
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    object updatingBugs and strange behavior around updating objects, primarly related to #284

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions