How to create custom Shipping Method using script not with Manually by admin.
Hi Team,
I want to create custom Shipping Method using script not with Manually by admin. Please tell me how to do that.
Thanks in advance.
Best Answer
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 βοΈ - Guardians (admin)
Heyhey,
Then, it seems to be rather simple:
Have a look at the files
shipment.csv
,shipment_method_store.csv
andshipment_price.csv
in the data/import folder.Adjustments there and a re-import should likely be what you are looking for :)
If this will solve your problem, I would be happy if you could mark this answer as "resolved my question" π€
All the best,
Florian
1
Answers
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 βοΈ - Guardians (admin)
Heyhey,
have you already looked into the code of the Back Office or in the data import, how it is done there?
When you talk about "using script" it is not clear for me how you want to trigger the creation. By custom console command? Via data-import? Via api-call?
All the best,
Florian
0 -
Hello @fsmeier
Thanks for your response.
I need to create Custom shipiing method vai "custom module" or vai "data import". So we do not need to create it manually from Admin every time when we move the project to new instance or new server.0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 βοΈ - Guardians (admin)
Heyhey,
Then, it seems to be rather simple:
Have a look at the files
shipment.csv
,shipment_method_store.csv
andshipment_price.csv
in the data/import folder.Adjustments there and a re-import should likely be what you are looking for :)
If this will solve your problem, I would be happy if you could mark this answer as "resolved my question" π€
All the best,
Florian
1 -
Hello @fsmeier
Thanks for the response.It has resolved my question.
Thanks,
Anand Thakkar1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 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
- 69 Spryker Safari Questions
- 50 Random