What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi everyone, with Product-api module I can read abstract product, but, how can I read concrete produ
Hi everyone, with Product-api module I can read abstract product, but, how can I read concrete products? I can't find the method o module to do this
Comments
-
Have you tried
GET /concrete-products/{concreteProductId}
?0 -
I am developing a ZED module, can I make that request from ZED? , I am using ProductApiResourcePlugin this plugin right now, wich module I must use for this?
0 -
Ah, sorry, misunderstood the initial question.
spryker/product-api
was never released and most probably will be deprecated soonish in favor of a new set of backoffice APIs.Maybe @UQK3ZPJEN or @UKJSE6T47 know the answer for this particular module.
0 -
yes please, if anyone can help me with this, I am a little lost, basically I need this, I am in zed module and need to read concrete products, is there another module i can use for this? or how I can read concrete products?
0 -
Hey Daniel, what exactly are you trying to achieve? How does requirement sound?
0 -
Hi Andriy, what I am trying to do is this.
I create a module in ZED, in this module I make a susbcriber/listener to product's events (create/update/delete), in the listeneter handler I need to read all the data from the concrete product which was created, updated or deleted and send it to an external rest API (I make this request with Guzzle) .
But I dont know how to read the concrete product.
0 -
Then you donβt need a Zed API to get information about the product. All you need to do - is to provide a product facade (\Spryker\Zed\Product\Business\ProductFacade) as a dependency to the module that reads information / sends it to the external system and use it to load information about the product.
0 -
zed modules (when it comes to the business layer) can easily communicate with each other via dependencies to each other facades and plugins. They donβt interact via the REST API
0 -
let me check this "\Spryker\Zed\Product\Business\ProductFacade" I am not using an REST API to read the product, I found "ProductApiResourcePlugin" and read whit this, but does not read concrete products only abstract
0 -
ProductApiResourcePlugin is for the API. You can simply check btw, how ProductApiResourcePlugin is getting productβs data π
0 -
Thanks for your help the ProductFacade did the work
0 -
awesome πͺ
0 -
Hi @UKJSE6T47, another question about this,
If I launch the event from console like this
"docker/sdk console event:trigger:listener PVXDataStorageListener id=2675"
everything works fine.
but when I update a concrete product from ZED the event does not lauch, how can I verify the event has been lauched?
0 -
I added the subscriber in EventDependencyProvider/
getEventSubscriberCollection()
{
/////////$eventSubscriberCollection->add(newΒ PVXDataStorageEventSubscriber());
////////
}
with this events
"Entity.spy_product.create"
"Entity.spy_product.update"
"Entity.spy_product.delete"Am I missing something?
0 -
Sure you might miss something. Please try to check the documentation steps described here: https://documentation.spryker.com/docs/publish-and-synchronization-reference
You donβt need the whole pub&sync implementation, but subscribing to events - is part of it0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random