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..
Anyone help me on extend the Inventory. Actually, I need to add custom fields in Inventory. Please l
Anyone help me on extend the Inventory. Actually, I need to add custom fields in Inventory. Please let me know how we can add custom fields.
Comments
-
As with any other db table you want to extend: https://docs.spryker.com/docs/scos/dev/back-end-development/data-manipulation/data-in[β¦]n/structural-preparations/extending-the-database-schema.html
0 -
Yes, I need to add the custom fields in database.
0 -
I know the schema part, I have already extend the customer profile, discount and orders, But I need to know how we can extend the Inventory. Is there any specific module schema ? or we need to create a new module or schema file for that ?
0 -
What do you mean by extending the Inventory then?
Do you want to extend the form in Zed, how a inventory is calculated or anything else?
The more specific your question is the easier it is to give a specific answer0 -
Actually, I want to add two columns in Inventory table for example :- A quick extension can be adding two attribute types in inventory:
β’ awanooDescription (String)
β’ awanooDynAttributes (HashMap) ==> key is string, and value is string0 -
And yes from the Zed.
0 -
For now just need to add two columns.
0 -
To my knowledge there is no inventory table in Spryker.
Only spy_availability (src/Pyz/Zed/Availability/Persistence/Propel/Schema/spy_availability.schema.xml
and spy_stock (src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml
).0 -
Thank you π
0 -
@UL6DGRULR I have one more question :- Could you please let me know how inventory data stored for product in spryker ?
0 -
https://docs.spryker.com/docs/scos/dev/feature-walkthroughs/202108.0/inventory-manage[β¦]re-walkthrough/inventory-management-feature-walkthrough.html and more detailed in https://docs.spryker.com/docs/marketplace/dev/feature-walkthroughs/202108.0/marketplace-inventory-management-feature-walkthrough.html#modul[β¦]-graph (especially if you use more than one warehouse or a combination of a warehouse and dropshipping)
0 -
Ok, Got you. Thanks
0 -
@UL6DGRULR We want to extend the table but we want to add column that refer to multiple key value pair(hashmap) so what is the best approach ?
0 -
Propel provides
type="ARRAY"
for those: http://propelorm.org/documentation/reference/schema.html#other-types0 -
Ok, Thanks!! Again π
0 -
@UL6DGRULR Now we have created the some fields in database. Can you please let me know how we can render that fields in backend and front side. If you let me know the process in detail, I will really appreciate it.
0 -
For displaying those fields you can implement the given plugins provided by https://github.com/spryker/availability-gui-extension/tree/master/src/Spryker/Zed/AvailabilityGuiExtension/Dependency/Plugin (*Extension modules in Spryker are used to show which extension points are available, similar to the Symfony contracts).
0 -
Great!!
0 -
On Frontend/Yves side the https://github.com/spryker-shop/availability-widget is what I would look into (see https://github.com/spryker-shop/availability-widget/blob/master/src/SprykerShop/Yv[β¦]onents/molecules/availability-product/availability-product.twig). Sadly there is no plugin architecture yet to extend it
0 -
Okay..
0 -
@UL6DGRULR My last question is how we can extend
Internalization
State Model
We also need to add some custom fields.0
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