Custom delivery option

Help for integrating the Laravel package
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!
User avatar
MartinKrál
Posts: 2
Joined: 16 Jul 2023, 13:45

Custom delivery option

Post by MartinKrál » 16 Jul 2023, 14:06

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

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: Custom delivery option

Post by aimeos » 17 Jul 2023, 07:56

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply