Delivery Pickup Date and Time

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
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Delivery Pickup Date and Time

Post by aimeos » 02 Dec 2022, 07:36

The keys before the dots should be named like the lower case decorator name so it's clear they belong together. "deliverydatetime" is good if your decorator is named "Deliverydatetime". The name of the keys after the dot only depends on what your decorator expects.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
peter69
Posts: 95
Joined: 09 Jun 2022, 19:31

Re: Delivery Pickup Date and Time

Post by peter69 » 02 Dec 2022, 14:07

Hello,

Thank you very much for your reply,

Where I have doubts, is in the frontend part. How should I name or what values should I set the inputs so that they are saved correctly?

For example, is it correct if I set it as follows:

Code: Select all

<div id="time-slots">
		<input
                    type="text"
                    class="config-key form-control hidden"
                    tabindex="1"
                    name="item[config][key][]"
                    autocomplete="off"
                    value="deliverydatetime.slots"
                >
                <input
                    type="text"
                    v-model="timeslots"
                    name="item[config][val][]"
                    class="config-value config-type config-type-map hidden"
                >
</div>
Regards,

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

Re: Delivery Pickup Date and Time

Post by aimeos » 04 Dec 2022, 10:26

Yes, this may work if the value is a multi-dimensional data field.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply