Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 127 total)
  • Author
    Replies

  • Frank
    Participant

    Hi Andrey,

    thanks for your reply. I adapted the code:

    Clicking the ‘Start Progress-Button’ in a specific order record, it results in an error, like:

    ‘Loading widget content failed’

    and

    Processor failed: “oro_workflow.transit.create_form.processor”. Reason: Parameter “form_type” must be defined for attribute “status” in workflow “dergraf_workflow_order_processing”.

    My questions:

    1) line #26
    custom order-entity field definition name is: manufac_status_1stage
    for attributes.status.propertyPath CalmelCase should be used, or not?
    both not working:
    attributes.status.propertyPath: order.manufac_status_stage1
    attributes.status.propertyPath: order.manufacStatusStage1

    2) line #49
    transitions.form_options:
    Is ‘status’ the right value aI have to use for?

    3) line #52
    transitions.form_options.status.options.enum_code:
    I have used ‘stage_status’, which is a custom definition, used here only
    Is this right, or what I have to refer to?

    Some explanation would be great, even for other users, having similiar problems.

    Furthermore, it would be great, if you could adapt my code, including your experience to avoid missunderstanding.

    Thanks a lot!!!!

    Kind regards
    Frank


    custom ‘dergraf_workflow_order_processing’ was created in direct analogy to oro’s
    ‘opportunity_flow’ provided by SalesBundle:

    – Custom dergraf_workflow_order_processing – attribute ‘status’ refers to custom order-entity-field ‘manufac_status_stage1’, created via backend-entity-manager, and in analogy corresponds to
    – System opportunity_flow – attribute ‘status’, refering to system opportunity-entity-field ‘status’.

    • This reply was modified 1 year, 10 months ago by  Frank.

    Frank
    Participant

    Embarrassing.
    Of course you can find the options in the internal_status field and not on the Entity edit level.

    Everything is good!
    Frank.


    Frank
    Participant

    Sorry, how to enable ?

    Order > Entity Management > Options

    THanks a lot.
    Frank


    Frank
    Participant

    Hi Michael,

    thanks a lot. Very helpful. Sorry, that I did not found the Entity-managment-solution you suggested by myself.
    :-)

    Kind regards
    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40987

    Frank
    Participant

    Hi Dima,

    thanks a lot.

    This (however its obious) helped me really a lot!

    Kind regards from Germany
    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40960

    Frank
    Participant

    To renew my question as the last post in this thread …


    FINAL QUESTION(s) in this concern:

    I want to build up a shopping-cart-microservice consuming/based on the web api.

    1) Do I have to use the frontend api for that?
    2) There a few endpoints only (none for products, cart, checkout …). Do I have to build my own ressources for that? Or can a make use of the existing checkout-workflow in some manner instead?

    Do you have some instructions ‘how to extend the oro web services api’ for my custom usecase?

    Thanks again & regards
    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40956

    Frank
    Participant

    I meen instructions concerning the web api (build new ressources …etc.) not the shopping-cart-client-microservice. The last one is another topic. I know.
    :-)


    I found the error
    http://<hostname_of_my_custom_oro_application>/index_dev.php/api/orders/73
    in dev.log
    Useful remark. Thanks a lot.

    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40953

    Frank
    Participant

    I looked into dev.log, but I think it will be rather in prod.log due to the prod-endpoint.
    Thanks for the urgent help!


    LAST QUESTION(s) in this concern:

    I want to build up a shopping-cart-microservice consuming/based on the web api.

    1) Do I have to use the frontend api for that?
    2) There a few endpoints only (none for products, cart, checkout …). Do I have to build my own ressources for that? Or can a make use of the existing checkout-workflow in some manner instead?
    Do you have some instructions for me, how to realize this with my low skills? :-)

    Thanks again & regards
    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40949

    Frank
    Participant

    Aha!

    http://<hostname_of_my_custom_oro_application>/admin/api/users

    This works!!! Thanks.


    Another topic in this regards:

    Am I right, that the Oauth-application (regardless wether back- or frontend) has the same access-limitations as the user or customerUser respectively?

    Example to illustrate my question:

    * CustomerUser JohnDoe has frontend-access to his order no. 73 (in result of a successfull checkout …).
    * I created an Aouth-application for customerUser JohnDoe,
    * Used the clientID/Secretof this Aouth-application to request an Aouth-access-token.

    Thean I should have access to:
    http://<hostname_of_my_custom_oro_application>/api/orders/73

    ?

    I tried that, but it did not work.

    Response give me:
    {“errors”:[{“status”:”500″,”title”:”error exception”}]}string(466) “HTTP/1.1 500 Internal Server Error

    Thanks
    Frank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40944

    Frank
    Participant

    I am working in dev-mode.

    oroapp/var/logs/dev.log is empty.

    FRank

    in reply to: Orocommerce Oauth2: What Api-endpoints to use? #40942

    Frank
    Participant

    Hi Yurii,

    yes, this is (obviously, and), what I have done!
    :-)

    No access for backend-outh-application, requesting endpoint /api/users … as above described.

    Thanks for any recommandations.

    Kind regards
    Frank


    Frank
    Participant

    Hi Michael,

    thanks for your reply on Saturday :-)

    Ok. Though I will have to drive deeper into the application technology stacks.

    Kind regards.
    Frank


    Frank
    Participant

    To illustrate my problem further:

    I am looking for an code-example, which makes use of the orocommerce web api to build a client frontend application.
    Finally I want to build something similiar to the shopping-cart-example from imega:
    http://shopcart.imega.club/

    Thanks for help
    Frank


    Frank
    Participant

    Hi Andrey,

    yes, I know about different backend/storefront api-ressources, and I know about sandboxes (swagger ui). . But this tests only one certain request/response interaction.

    What I am looking for is an client application with multiple steps. In other words, how to connect the single steps to each other.
    In a typical web-application I use a SessionId for that, but an api do not have/make use of it.

    Best way, in order to understand the pronciple, how to build an whole client application would be a complete code-example….?!

    Thanks a lot.
    Frank


    Frank
    Participant

    oops. I am sorry. WSSE was the wrong way. You did mentioned OAuth above ..

    I have thought that the Oauth described in the userguide
    https://doc.oroinc.com/user/back-office/getting-started/user-menu/oauth/#user-guide-my-profile-oauth
    made use of the OAuth 2.0 extension …

    Obviously this was a missunderstanding.


    However, I created an application for OAuth as described in the userguide, and followed the steps to the end. Third Party Side: Generatation of Token was succesfull:

    I received response from the authorization server with a JSON object (token_type, expires_in, access_token) exactly as descibed.

    But how to go further on the client side?

    The guide says:
    Use the generated access token to make requests to the API.

    Hm.
    I can do that once for 1 URL. But how to build a full workflow, like shopping cart, or other I do not have an imagination at all.

    Could you give me a practical code-example for the Client-Application (web based microservice)? This would really help.

    Thanks for your effort.

    Kind regard
    Frank.

Viewing 15 replies - 1 through 15 (of 127 total)

You will be redirected to [title]. Would you like to continue?

Yes No