Custom delivery option
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- MartinKrál
- Posts: 2
- Joined: 16 Jul 2023, 13:45
Custom delivery option
Hello!
I am implementing delivery that allows users to select a pickup point - every pickup point has it´s own ID which I am
able to store in an input field (I added this to delivery-body: <input type="hidden" id="zasilkovna_point_id" name="c_delivery[zasilkovna_point_id]" class="form-control"></input>).
My question is how can I access the value of this input field in push method of my delivery provider, eventually if I could also view it in order details from admin section.
Thank you,
Martin
Edit:
I am using following versions -
Laravel 10
PHP 8.1
Aimeos 2023.04
I am implementing delivery that allows users to select a pickup point - every pickup point has it´s own ID which I am
able to store in an input field (I added this to delivery-body: <input type="hidden" id="zasilkovna_point_id" name="c_delivery[zasilkovna_point_id]" class="form-control"></input>).
My question is how can I access the value of this input field in push method of my delivery provider, eventually if I could also view it in order details from admin section.
Thank you,
Martin
Edit:
I am using following versions -
Laravel 10
PHP 8.1
Aimeos 2023.04
Re: Custom delivery option
You can add the ID to the frontend using the getConfigFE() method and receive the selected value in the setConfigFE() method like in the supplier decorator:
https://github.com/aimeos/aimeos-core/b ... #L136-L188
https://github.com/aimeos/aimeos-core/b ... #L136-L188
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star