[Skip to main content](#vessel-content)

#   Date Custom fields

##

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

2 years 6 months ago [\#360484](#360484) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#360484 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")* was created by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")*

-- HikaShop version -- : 5.0.4
-- Joomla version -- : 5.1.0
-- PHP version -- : 8.1

can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?

suppose today is 4/22/2024

i need to create a custom field of type radio in checkout page with this values :

Tomorrow (4/23/2024)
The day after tomrrow (4/24/2024)
4/25/2024
4/26/2024
4/27/2024
4/28/2024
4/29/2024

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

2 years 6 months ago -  2 years 6 months ago [\#360486](#360486) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#360486 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

In the data area of your custom field, instead of entering values, you can provide a MySQL query.
There, you can provide a MySQL query to generate the dates.
For example: Code:

SELECT CONCAT('Tomorrow (',DATE_FORMAT(CURDATE() + INTERVAL 1 DAY, '%d/%m/%Y'),')') as value UNION SELECT CONCAT('The day after tomorrow (',DATE_FORMAT(CURDATE() + INTERVAL 2 DAY, '%d/%m/%Y'),')') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 3 DAY, '%d/%m/%Y') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 4 DAY, '%d/%m/%Y') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 5 DAY, '%d/%m/%Y') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 6 DAY, '%d/%m/%Y') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 7 DAY, '%d/%m/%Y') UNION SELECT DATE_FORMAT(CURDATE() + INTERVAL 8 DAY, '%d/%m/%Y');

References:
[ www.w3schools.com/sql/func\_mysql\_curdate.asp](https://www.w3schools.com/sql/func_mysql_curdate.asp)
[ www.w3schools.com/sql/func\_mysql\_date\_format.asp](https://www.w3schools.com/sql/func_mysql_date_format.asp)
[ dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html)
[ www.w3schools.com/sql/func\_mysql\_concat.asp](https://www.w3schools.com/sql/func_mysql_concat.asp)
[ dev.mysql.com/doc/refman/8.0/en/union.html](https://dev.mysql.com/doc/refman/8.0/en/union.html)

Last edit: 2 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 3 months ago [\#368039](#368039) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368039 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

is there any solution to display this dates with JDATE ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 3 months ago [\#368040](#368040) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368040 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

Are you talking about JDate ?
[ docs.joomla.org/How\_to\_use\_JDate](https://docs.joomla.org/How_to_use_JDate)
If so, I understand you're saying that you want to be able to use PHP code to generate the values selectable by the custom field. Is that so ?
It is possible but it's not as easy as the MySQL query solution I provided in my previous message. With the MySQL query, you just test the query you need via PHPMyAdmin or an online MySQL query testing website. Once you have the query, you can just copy / paste it in your field settings.

With PHP, you need to develop a plugin of the group "hikashop" and implement the "Field API" :
[ www.hikashop.com/support/documentation/6...entation.html#fields](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#fields)
With it, you can add your own type of custom field, have it extend the normal radio field class, and manually generate the values with your own PHP code and / or with JDate. An example of a plugin using this API to add a custom field type is in the folder plugins/hikashop/datepickerfield/
It adds the "Advanced Date Picker" custom field type to HikaShop.

As you probably understand, doing what you asked for as a custom plugin with the Field API and JDate is more complex and will take more time than the MySQL query, so I still recommand you to use the MySQL query solution.

The following user(s) said Thank You: [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago [\#368291](#368291) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368291 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

is that possible to clone that calnedar plugin and rename files and functions to create a new one ?
i tried but didnt managed to create a new plugin ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 2 months ago [\#368292](#368292) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368292 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

Yes, it's totally possible.
Just make sure you unpublish the original plugin so that your plugin can take over its place.
Besides changing the filenames and folder name, you also need to change the class name in the main PHP file, and the element in the XML file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago [\#368293](#368293) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368293 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

can i send you the ZIP file of the plugin i've created, so that you may take a a look at it ? maybe there is small mistake which can solve the problem ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 2 months ago [\#368294](#368294) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368294 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

In the main PHP file of the plugin, you removed this code: Code:

public function onFieldsLoad(&amp;$fields, &amp;$options) { $me = new stdClass(); $me-&gt;name = 'datepickerfield'; $me-&gt;text = JText::_('DATE_PICKER'); $me-&gt;options = array('required', 'default', 'columnname', 'format', 'allow', 'datepicker_options'); $fields[] = $me; $opt = new stdClass(); $opt-&gt;name = 'datepicker_options'; $opt-&gt;text = JText::_('DATE_PICKER_OPTIONS'); $opt-&gt;own_block = true; $opt-&gt;obj = 'fieldOpt_datepicker_options'; $options[$opt-&gt;name] = $opt; }

This is the code which adds the custom field type defined in your plugin to HikaShop.
You just need to change "datepickerfield" to the new name of your plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago -  1 year 2 months ago [\#368297](#368297) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368297 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

thank you

i simplified the function like this :
Code:

public function onFieldsLoad(&amp;$fields, &amp;$options) { $me = new stdClass(); $me-&gt;name = 'next7daysfield'; $me-&gt;text = JText::_('DATE_DROPDOWN'); $me-&gt;options = array('required', 'default', 'columnname'); $fields[] = $me; }

the field type of DATE_DROPDOWM appeared in creating new field in backend. in frontend i get this :

"Plugin plg.hikashopNext7daysfield missing or deactivated"

but the plugin is installed and actived as you can see :

[ ![2025-09-01&#95;10-34-35.png](/forum/attachment/60770) ](/forum/attachment/60770 "...1&#95;10-34-35.png")

- [ ![2025-09-01&#95;10-34-35.png](/forum/attachment/60770) ](/forum/attachment/60770 "...1&#95;10-34-35.png") [ ](/forum/attachment/60770?download=1 "...1&#95;10-34-35.png")

Last edit: 1 year 2 months ago by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 2 months ago [\#368301](#368301) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368301 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

It's probably because you moved the require_once of the class file to put it inside the constructor of the plugin. I would recommend you do like in the default date picker field plugin and have it outside of the class definition in the main PHP file of the plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago [\#368302](#368302) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368302 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

i didnt made any changes to class file ...
I'm very close to what i was looking for ... could you please assit me little more to achive this fields ..
thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 2 months ago [\#368303](#368303) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368303 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

That's not what I'm talking about.
In the main PHP file, you have this code: Code:

if (!class_exists('hikashopNext7daysfield')) { require_once __DIR__ . '/next7daysfield_class.php'; }

You've added it in the __construct method of the main class plgHikashopNext7daysfield

However, if you check the file plugins/hikashop/datepickerfield/datepickerfield.php you can see the corresponding code Code:

if(defined('HIKASHOP_COMPONENT')) { require_once( dirname(__FILE__).DS.'datepickerfield_class.php' ); }

outside of the class definition. I think it's probably why the system can't find the class definition, because the class file is not yet loaded.

Also, you're saying that you didn't make any change to the class file, but as far as I can see, the class file in your zip is quite different from what is in the default date picker field. When you're doing something like this, the best is to make a copy of the plugin, change only the filenames and classnames so that you can get the same result as the default one. And once that's working, you can go from there and start modifying things around for your needs. At least, that's how I do it.
For example, another issue you'll have is that you deleted the "show" method in your hikashopNext7daysfield class.
This method is used to display the entered value to the user. It is essential to have one, like in the default date picker field plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago [\#368305](#368305) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368305 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

please forget about datepicker field ... in previous posts i said i want to copy that field, however I ended up writing code using chatGPT
i did not used datepicker field at all

I will try this last modifications you sent to see if it works or not

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 2 months ago [\#368312](#368312) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368312 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

i did'nt managed to achive my field ... would you please tell how much does it cost if you fix this for me ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

1 year 2 months ago [\#368315](#368315) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date Custom fields](/forum/27-checkout/908067-date-custom-fields#368315 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.1  can you please assist on creating a radio buttons custom field on checkout page with dynamic valuse of 7 days i a row from tomorrow ?  suppose today is 4/22/2024  i need to create a custom field of type radio in checkout page with this values :  Tomorrow (4/23/2024) The day after tomrrow (4/24/2024) 4/25/2024 4/26/2024 4/27/2024 4/28/2024 4/29/2024")*

Hi,

It depends how long it takes for me to fix everything.
Code generated with ChatGPT is usually filled with bugs.
I will charge 60€ per hour of work.
Please go through our contact form :
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwODA2Ny1kYXRlLWN1c3RvbS1maWVsZHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.122 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
