Shipment Price Plugin Implementation
Hello Team,
I am currently attempting to implement a shipment price plugin, but I am facing an issue where I am unable to retrieve the delivery method details. Let's say I have two delivery methods: Express and Standard.
My question is, do I need to create two separate plugins to handle each delivery method, or is it manageable by a single price plugin?
Comments
-
By the way, I am following this article for shipment price plugin:
1 -
ShipmentGroupTransfer::getShipment()::getMethod()
should return the delivery method.
1 -
Thanks @Alberto Reyer for your reply. I have already tried with this solution. Actually I am getting values once I select delivery method.
Without select delivery method, getting blank value on /checkout/shipment page
0 -
And how do you want to calculate the shipping price when no method is selected?
I see two options here:
a) calculated the shipping price once a shipping method is selected (just return when there is non method yet in your plugin)
b) assume a default method and calculated the price based on this as long as no shipping method is selected1 -
As of now, I have created two price-calculation plugins for two delivery methods, and the prices are visible according to the requirement logic.
In total, I have developed 6 plugins (2 for delivery time, 2 for availability, and 2 for price) for two delivery methods.
I am in search of a method to incorporate three plugins (delivery time plugin, availability plugin, and price calculation plugin) for all delivery methods.0 -
I am attaching screenshot for the reference
0 -
On the basis of cart item's weight and dimension, we are calculating delivery method price.
0
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