Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Creating a custom attribute type

    Knowledge Base
    2
    3
    139
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      miguel.barbosa last edited by

      I need to create a custom attribute type. In specific I need an attribute type that is validated as an integer so I can store IDs from another platform.

      I've tried a couple of solution such as rebinding the Attribute Model. But it would require me to also rebind all the Translation Models. Any ideas of where I should look in order to make this happen?

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @miguel-barbosa

        We provide a feature in admin panel for this you just need to Create a attribute with ID and then assign that ID attribute then choose option type text and choose input validation number and it will work for you

        Check the below link for more reference

        https://docs.bagisto.com/2.2.0/attribute/product-attribute.html

        M 1 Reply Last reply Reply Quote 1
        • M
          miguel.barbosa @Rishabh-Webkul last edited by

          @Rishabh-Webkul Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post