Persist a product using code

rahmouni.mohamed88
rahmouni.mohamed88 Spryker Solution Partner Posts: 1 🧑🏻‍🚀 - Cadet
edited October 2023 in Spryker Development

I pass a payload via URL containing th sku of the product and a name for example,

I want to query to product table for the product with that sku update the name and save the product

any Idea how to do this simple task taking also the store in consideration ?

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)

    Heyhey @rahmouni.mohamed88 ,

    I think I would do such a task via Glue Backend API. Maybe the Data Exchange API could be also a way to go here. Make sure to protect that endpoint properly from the outside.

    Within code you will then use mainly existing business logic of Spryker. By default it should already use Public&Synchronize and therefore make it available to the Frontend Storages.

    All the best,

    Florian

    PS.: I'll move this topic into the general Spryker area because it is currently in the Development Environment sub-category :)