date option for click&collect
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!
- GülsümAkça
- Posts: 57
- Joined: 20 Nov 2020, 13:30
date option for click&collect
I want to add date option for click&collect option on checkout page. How can I do it?
Last edited by GülsümAkça on 28 Oct 2021, 08:18, edited 2 times in total.
Re: date option for click&collect
Implement a service decorator for displaying the date like the one for the time:
https://github.com/aimeos/aimeos-core/b ... r/Time.php
We would love to merge your code into the core if it's ready
https://github.com/aimeos/aimeos-core/b ... r/Time.php
We would love to merge your code into the core if it's ready
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
- GülsümAkça
- Posts: 57
- Joined: 20 Nov 2020, 13:30
Re: date option for click&collect
This is how I added the date option thanks:
Re: date option for click&collect
Cool! Can you create a pull request with your code? We would love to get your feature into the core
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
- GülsümAkça
- Posts: 57
- Joined: 20 Nov 2020, 13:30
Re: date option for click&collect
This feature has already been developed by aimeos.
\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Service\Provider\Decorator\Date.php
I just added "date" to the providers . then I added the "date.minimumdays" to the option.
There is just one problem. The error is only displayed in English because the translate command is not added here
\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Service\Provider\Decorator\Date.php
I just added "date" to the providers . then I added the "date.minimumdays" to the option.
There is just one problem. The error is only displayed in English because the translate command is not added here
Re: date option for click&collect
Use this instead and create a PR, then we will merge it into the core:
Code: Select all
$result['date.value'] = sprintf( $this->getContext()->translate( 'mshop', 'Date value before "%1$s"' ), $minimum );
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