Bagisto Forum

    Bagisto

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

    Bagisto Web Api - Customers Registration

    General Discussion
    api customers registration group
    2
    5
    1034
    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.
    • W
      William Hatanaka last edited by William Hatanaka

      Hello,
      I am using Bagisto v.1.1.2 and I am able to register customers in Bagistro through api-customer registration without problems.
      Besides the fields email, first_name, last_name, password, password_confirmation I also need to register the group to which this customer belongs.
      I tried to add the "group" field to the list of parameters with the corresponding "id" value but the registered user is still in the "general" group.
      Could you advise me how to do this?
      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • V
        vishalK last edited by vishalK

        Hi @William-Hatanaka
        Currently this feature is not available in our customer registration api. If you want to achive this functionality you have to do some customisation in API related code according to you requirements.
        Thank You

        W 1 Reply Last reply Reply Quote 0
        • W
          William Hatanaka @vishalK last edited by

          @vishalK,
          Thank you for your quick reply !
          But could you tell me where I can make this customization? Or rather, what is the source where I can do it? I am not very familiar with Bagisto yet, but I really need to do it. I chose Bagisto because of this api feature, but I didn't know I wouldn't be able to do this complete update on the customer profile.
          Thanks a lot.

          1 Reply Last reply Reply Quote 0
          • V
            vishalK last edited by

            Hi @William-Hatanaka
            You can modify code inside CustomerController.php according to your rquierment, path of the file given below:
            $root_folder/packages/Webkul/API/Http/Controllers/Shop/CustomerController.php
            You can fully customise API service by modifying code according to your need inside API Package. You can find package by following the path given below
            $root_folder/packages/Webkul/API

            W 1 Reply Last reply Reply Quote 0
            • W
              William Hatanaka @vishalK last edited by

              @vishalK ,
              Thank you very much!
              I will try!

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