Skip to content

How to create a new event targeting properties in Umbraco #10

@JamiePattison

Description

@JamiePattison

I have added a new property to my Item/Product Document Type which contains other Commerce properties such as SKU.

I need to validate the value it contains before adding the product to the cart.

  1. I noticed there is an event for this (ValidateOrderProductAdd) which had been demoed to check the stock value but should I be adding a new Event for my needs? If yes how do I go about this?

  2. If I can use the existing validation, that's fine but again how do I access the newly created property as I can't see it listed under evt?

Or simply put should I do this in the controller when adding the product?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions