OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform How to remove validation for Product sku

This topic contains 1 reply, has 1 voice, and was last updated by  mlozynskyy 6 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #37065

    mlozynskyy
    Participant

    Hello,
    How can I remove or change validation for Product SKU?
    I have tried to override:
    orocommerce/vendor/oro/commerce/src/Oro/Bundle/ProductBundle/Resources/config/validation.yml
    by bundle inheritance But JS validation left after.
    I need to remove that line for sku validation:
    – Oro\Bundle\ValidationBundle\Validator\Constraints\AlphanumericDashUnderscore: ~

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #37066

    mlozynskyy
    Participant

    I have done it by
    1) creating own validation.yml
    2) Adding to a elements own validate group (except SKU)
    3) Overriding FORM by FORM extension and set only my validation group for the form.

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform’ is closed to new topics and replies.

Back to top