How to add a datepicker in magento 1.9 ( date picker within serialized_array)Magento 2 : How to avoid 302 status code, actually Referrer URL returns 302 status code?How to solve Uncaught errorMagento 2.3 Advanced search giving 404Show product only within a date range (between start date and end date)How to add color picker to watches?Datepicker is not show current date in magento grid moduleMagento add filter for dateMagento 1.9 Get a custom field from order table programmaticallyMagento 1.9 date picker with only month and yearDate Time picker and time zone woesadd custom field in checkout page magento 1.9?Programmatically add Delivery Date on magento 1.9Magento 1.9 How to add custom field in checkout registration form

Life insurance that covers only simultaneous/dual deaths

What do Xenomorphs eat in the Alien series?

Why Choose Less Effective Armour Types?

Is it possible to upcast ritual spells?

Happy pi day, everyone!

Do I need life insurance if I can cover my own funeral costs?

How to use deus ex machina safely?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

What's the meaning of “spike” in the context of “adrenaline spike”?

Credit cards used everywhere in Singapore or Malaysia?

Did Ender ever learn that he killed Stilson and/or Bonzo?

If I can solve Sudoku can I solve Travelling Salesman Problem(TSP)? If yes, how?

PTIJ: Who should I vote for? (21st Knesset Edition)

Define, (actually define) the "stability" and "energy" of a compound

How could a scammer know the apps on my phone / iTunes account?

How to read the value of this capacitor?

Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?

How do I hide Chekhov's Gun?

Is there a data structure that only stores hash codes and not the actual objects?

Identifying the interval from A♭ to D♯

Official degrees of earth’s rotation per day

My adviser wants to be the first author

Welcoming 2019 Pi day: How to draw the letter π?

If curse and magic is two sides of the same coin, why the former is forbidden?



How to add a datepicker in magento 1.9 ( date picker within serialized_array)


Magento 2 : How to avoid 302 status code, actually Referrer URL returns 302 status code?How to solve Uncaught errorMagento 2.3 Advanced search giving 404Show product only within a date range (between start date and end date)How to add color picker to watches?Datepicker is not show current date in magento grid moduleMagento add filter for dateMagento 1.9 Get a custom field from order table programmaticallyMagento 1.9 date picker with only month and yearDate Time picker and time zone woesadd custom field in checkout page magento 1.9?Programmatically add Delivery Date on magento 1.9Magento 1.9 How to add custom field in checkout registration form













4















enter image description here




app/code/local/Companyname/Deliverydate/Block/Adminhtml/Mappingdate.php




<?php

class Companyname_Deliverydate_Block_Adminhtml_Mappingdate
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract


public function __construct()

$helper = Mage::helper('deliverydate');
$dateFormat = Mage::app()->getLocale()-
>getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
$this->addColumn( 'date', array(
'name' => 'date',
'label' => $helper->__('Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'value' => date('d/m/Y'),
'format' => $dateFormat
));

parent::__construct();





system.xml




<?xml version="1.0"?>
<config>
<tabs>
<bootsgrid translate="label" module="deliverydate">
<label>Bootsgrid</label>
<sort_order>400</sort_order>
</bootsgrid>
</tabs>
<sections>
<deliverydate translate="label" module="deliverydate">
<class>separator-top</class>
<label>Delivery Date</label>
<tab>bootsgrid</tab>
<sort_order>130</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<deliverydate_general translate="label">
<label>General</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Select Yes to enable this feature.</comment>
</enabled>
<!-- <on_which_page translate="label">
<label>Show on?</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Option</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose at which step delivery date should be captured.</comment>
</on_which_page> -->
<!-- <deliverydate_html translate="label">
<label>Design HTML</label>
<frontend_type>textarea</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment></comment>
</deliverydate_html>
--> <deliverydate_format>
<label>Date Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dateformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose date format in which date will be displayed in frontend and admin panel.</comment>
</deliverydate_format>
<!-- <deliverytime_format>
<label>Time Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Timeformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose time format in which time will be displayed in frontend and admin panel.</comment>
</deliverytime_format> -->
<deliverydate_dayoff>
<label>Day Off</label>
<frontend_type>multiselect</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dayoff</source_model>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose days on which shipping will not be available.</comment>
</deliverydate_dayoff>
<mapping_date>
<label>Date Off</label>
<frontend_model>deliverydate/adminhtml_mappingdate</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default> <show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</mapping_date>
</fields>
</deliverydate_general>
</groups>
</deliverydate>
</sections>
</config>


Refered this



enter image description here










share|improve this question

















This question has an open bounty worth +50
reputation from divya sekar ending ending at 2019-03-18 10:05:10Z">in 2 days.


Looking for an answer drawing from credible and/or official sources.
















  • Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

    – user55548
    Mar 9 at 12:15











  • I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

    – divya sekar
    Mar 11 at 5:12











  • you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

    – Rakesh Donga
    Mar 11 at 5:19











  • I will try and update you -@rakesh

    – divya sekar
    Mar 11 at 5:24















4















enter image description here




app/code/local/Companyname/Deliverydate/Block/Adminhtml/Mappingdate.php




<?php

class Companyname_Deliverydate_Block_Adminhtml_Mappingdate
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract


public function __construct()

$helper = Mage::helper('deliverydate');
$dateFormat = Mage::app()->getLocale()-
>getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
$this->addColumn( 'date', array(
'name' => 'date',
'label' => $helper->__('Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'value' => date('d/m/Y'),
'format' => $dateFormat
));

parent::__construct();





system.xml




<?xml version="1.0"?>
<config>
<tabs>
<bootsgrid translate="label" module="deliverydate">
<label>Bootsgrid</label>
<sort_order>400</sort_order>
</bootsgrid>
</tabs>
<sections>
<deliverydate translate="label" module="deliverydate">
<class>separator-top</class>
<label>Delivery Date</label>
<tab>bootsgrid</tab>
<sort_order>130</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<deliverydate_general translate="label">
<label>General</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Select Yes to enable this feature.</comment>
</enabled>
<!-- <on_which_page translate="label">
<label>Show on?</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Option</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose at which step delivery date should be captured.</comment>
</on_which_page> -->
<!-- <deliverydate_html translate="label">
<label>Design HTML</label>
<frontend_type>textarea</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment></comment>
</deliverydate_html>
--> <deliverydate_format>
<label>Date Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dateformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose date format in which date will be displayed in frontend and admin panel.</comment>
</deliverydate_format>
<!-- <deliverytime_format>
<label>Time Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Timeformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose time format in which time will be displayed in frontend and admin panel.</comment>
</deliverytime_format> -->
<deliverydate_dayoff>
<label>Day Off</label>
<frontend_type>multiselect</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dayoff</source_model>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose days on which shipping will not be available.</comment>
</deliverydate_dayoff>
<mapping_date>
<label>Date Off</label>
<frontend_model>deliverydate/adminhtml_mappingdate</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default> <show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</mapping_date>
</fields>
</deliverydate_general>
</groups>
</deliverydate>
</sections>
</config>


Refered this



enter image description here










share|improve this question

















This question has an open bounty worth +50
reputation from divya sekar ending ending at 2019-03-18 10:05:10Z">in 2 days.


Looking for an answer drawing from credible and/or official sources.
















  • Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

    – user55548
    Mar 9 at 12:15











  • I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

    – divya sekar
    Mar 11 at 5:12











  • you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

    – Rakesh Donga
    Mar 11 at 5:19











  • I will try and update you -@rakesh

    – divya sekar
    Mar 11 at 5:24













4












4








4








enter image description here




app/code/local/Companyname/Deliverydate/Block/Adminhtml/Mappingdate.php




<?php

class Companyname_Deliverydate_Block_Adminhtml_Mappingdate
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract


public function __construct()

$helper = Mage::helper('deliverydate');
$dateFormat = Mage::app()->getLocale()-
>getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
$this->addColumn( 'date', array(
'name' => 'date',
'label' => $helper->__('Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'value' => date('d/m/Y'),
'format' => $dateFormat
));

parent::__construct();





system.xml




<?xml version="1.0"?>
<config>
<tabs>
<bootsgrid translate="label" module="deliverydate">
<label>Bootsgrid</label>
<sort_order>400</sort_order>
</bootsgrid>
</tabs>
<sections>
<deliverydate translate="label" module="deliverydate">
<class>separator-top</class>
<label>Delivery Date</label>
<tab>bootsgrid</tab>
<sort_order>130</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<deliverydate_general translate="label">
<label>General</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Select Yes to enable this feature.</comment>
</enabled>
<!-- <on_which_page translate="label">
<label>Show on?</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Option</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose at which step delivery date should be captured.</comment>
</on_which_page> -->
<!-- <deliverydate_html translate="label">
<label>Design HTML</label>
<frontend_type>textarea</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment></comment>
</deliverydate_html>
--> <deliverydate_format>
<label>Date Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dateformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose date format in which date will be displayed in frontend and admin panel.</comment>
</deliverydate_format>
<!-- <deliverytime_format>
<label>Time Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Timeformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose time format in which time will be displayed in frontend and admin panel.</comment>
</deliverytime_format> -->
<deliverydate_dayoff>
<label>Day Off</label>
<frontend_type>multiselect</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dayoff</source_model>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose days on which shipping will not be available.</comment>
</deliverydate_dayoff>
<mapping_date>
<label>Date Off</label>
<frontend_model>deliverydate/adminhtml_mappingdate</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default> <show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</mapping_date>
</fields>
</deliverydate_general>
</groups>
</deliverydate>
</sections>
</config>


Refered this



enter image description here










share|improve this question
















enter image description here




app/code/local/Companyname/Deliverydate/Block/Adminhtml/Mappingdate.php




<?php

class Companyname_Deliverydate_Block_Adminhtml_Mappingdate
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract


public function __construct()

$helper = Mage::helper('deliverydate');
$dateFormat = Mage::app()->getLocale()-
>getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
$this->addColumn( 'date', array(
'name' => 'date',
'label' => $helper->__('Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'value' => date('d/m/Y'),
'format' => $dateFormat
));

parent::__construct();





system.xml




<?xml version="1.0"?>
<config>
<tabs>
<bootsgrid translate="label" module="deliverydate">
<label>Bootsgrid</label>
<sort_order>400</sort_order>
</bootsgrid>
</tabs>
<sections>
<deliverydate translate="label" module="deliverydate">
<class>separator-top</class>
<label>Delivery Date</label>
<tab>bootsgrid</tab>
<sort_order>130</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<deliverydate_general translate="label">
<label>General</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Select Yes to enable this feature.</comment>
</enabled>
<!-- <on_which_page translate="label">
<label>Show on?</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Option</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose at which step delivery date should be captured.</comment>
</on_which_page> -->
<!-- <deliverydate_html translate="label">
<label>Design HTML</label>
<frontend_type>textarea</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment></comment>
</deliverydate_html>
--> <deliverydate_format>
<label>Date Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dateformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose date format in which date will be displayed in frontend and admin panel.</comment>
</deliverydate_format>
<!-- <deliverytime_format>
<label>Time Format</label>
<frontend_type>select</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Timeformat</source_model>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose time format in which time will be displayed in frontend and admin panel.</comment>
</deliverytime_format> -->
<deliverydate_dayoff>
<label>Day Off</label>
<frontend_type>multiselect</frontend_type>
<source_model>Bootsgrid_Deliverydate_Model_Config_Dayoff</source_model>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Choose days on which shipping will not be available.</comment>
</deliverydate_dayoff>
<mapping_date>
<label>Date Off</label>
<frontend_model>deliverydate/adminhtml_mappingdate</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default> <show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</mapping_date>
</fields>
</deliverydate_general>
</groups>
</deliverydate>
</sections>
</config>


Refered this



enter image description here







magento-1.9 custom-field






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 26 mins ago









Rakesh Donga

1,789316




1,789316










asked Mar 9 at 10:04









divya sekardivya sekar

28614




28614






This question has an open bounty worth +50
reputation from divya sekar ending ending at 2019-03-18 10:05:10Z">in 2 days.


Looking for an answer drawing from credible and/or official sources.








This question has an open bounty worth +50
reputation from divya sekar ending ending at 2019-03-18 10:05:10Z">in 2 days.


Looking for an answer drawing from credible and/or official sources.














  • Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

    – user55548
    Mar 9 at 12:15











  • I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

    – divya sekar
    Mar 11 at 5:12











  • you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

    – Rakesh Donga
    Mar 11 at 5:19











  • I will try and update you -@rakesh

    – divya sekar
    Mar 11 at 5:24

















  • Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

    – user55548
    Mar 9 at 12:15











  • I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

    – divya sekar
    Mar 11 at 5:12











  • you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

    – Rakesh Donga
    Mar 11 at 5:19











  • I will try and update you -@rakesh

    – divya sekar
    Mar 11 at 5:24
















Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

– user55548
Mar 9 at 12:15





Try following solution magecomp.com/blog/… Please let me know still issue not fixed.

– user55548
Mar 9 at 12:15













I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

– divya sekar
Mar 11 at 5:12





I was tried an above link output came normal input date - prnt.sc/mw51sc but i need a datepicker with serialized array

– divya sekar
Mar 11 at 5:12













you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

– Rakesh Donga
Mar 11 at 5:19





you can check here dropdown field add here you are using Mage_Core_Block_Html_Date

– Rakesh Donga
Mar 11 at 5:19













I will try and update you -@rakesh

– divya sekar
Mar 11 at 5:24





I will try and update you -@rakesh

– divya sekar
Mar 11 at 5:24










1 Answer
1






active

oldest

votes


















1














To add date & time picker, first of all you need to create date.php file at following location in your custom extension



[Vendor][ModuleName] BlockAdminhtmlSystemConfig



<?php
class [Vendor][ModuleName] BlockAdminhtmlSystemConfig date extends Mage_Adminhtml_Block_System_Config_Form_Field

protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)

$date = new Varien_Data_Form_Element_Date;
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);

$data = array(
'name' => $element->getName(),
'html_id' => $element->getId(),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
);
$date->setData($data);
$date->setValue($element->getValue(), $format);
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM));
$date->setClass($element->getFieldConfig()->validate->asArray());
$date->setForm($element->getForm());

return $date->getElementHtml();


?>


Once you have created date.php file, you have to add below code in System.xml file.



<startdate translate="label">
<label>Offer Start Date</label>
<frontend_model>notificationbar/adminhtml_system_config_date</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</startdate>
<starttime translate="label comment">
<label>Offer Start Time</label>
<frontend_type>time</frontend_type>
<sort_order>152</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</starttime>





share|improve this answer

























  • your answer is support for normal datepicker but i need a date picker within serialized array

    – divya sekar
    Mar 11 at 4:25











  • Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

    – Ronak Rathod
    Mar 11 at 6:31











  • adminhtml/system_config_backend_serialized_array is use as serialized array.

    – Ronak Rathod
    Mar 11 at 6:31











  • check updated answer

    – Ronak Rathod
    Mar 11 at 6:32











  • I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

    – divya sekar
    Mar 11 at 6:36











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265121%2fhow-to-add-a-datepicker-in-magento-1-9-date-picker-within-serialized-array%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














To add date & time picker, first of all you need to create date.php file at following location in your custom extension



[Vendor][ModuleName] BlockAdminhtmlSystemConfig



<?php
class [Vendor][ModuleName] BlockAdminhtmlSystemConfig date extends Mage_Adminhtml_Block_System_Config_Form_Field

protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)

$date = new Varien_Data_Form_Element_Date;
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);

$data = array(
'name' => $element->getName(),
'html_id' => $element->getId(),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
);
$date->setData($data);
$date->setValue($element->getValue(), $format);
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM));
$date->setClass($element->getFieldConfig()->validate->asArray());
$date->setForm($element->getForm());

return $date->getElementHtml();


?>


Once you have created date.php file, you have to add below code in System.xml file.



<startdate translate="label">
<label>Offer Start Date</label>
<frontend_model>notificationbar/adminhtml_system_config_date</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</startdate>
<starttime translate="label comment">
<label>Offer Start Time</label>
<frontend_type>time</frontend_type>
<sort_order>152</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</starttime>





share|improve this answer

























  • your answer is support for normal datepicker but i need a date picker within serialized array

    – divya sekar
    Mar 11 at 4:25











  • Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

    – Ronak Rathod
    Mar 11 at 6:31











  • adminhtml/system_config_backend_serialized_array is use as serialized array.

    – Ronak Rathod
    Mar 11 at 6:31











  • check updated answer

    – Ronak Rathod
    Mar 11 at 6:32











  • I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

    – divya sekar
    Mar 11 at 6:36
















1














To add date & time picker, first of all you need to create date.php file at following location in your custom extension



[Vendor][ModuleName] BlockAdminhtmlSystemConfig



<?php
class [Vendor][ModuleName] BlockAdminhtmlSystemConfig date extends Mage_Adminhtml_Block_System_Config_Form_Field

protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)

$date = new Varien_Data_Form_Element_Date;
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);

$data = array(
'name' => $element->getName(),
'html_id' => $element->getId(),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
);
$date->setData($data);
$date->setValue($element->getValue(), $format);
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM));
$date->setClass($element->getFieldConfig()->validate->asArray());
$date->setForm($element->getForm());

return $date->getElementHtml();


?>


Once you have created date.php file, you have to add below code in System.xml file.



<startdate translate="label">
<label>Offer Start Date</label>
<frontend_model>notificationbar/adminhtml_system_config_date</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</startdate>
<starttime translate="label comment">
<label>Offer Start Time</label>
<frontend_type>time</frontend_type>
<sort_order>152</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</starttime>





share|improve this answer

























  • your answer is support for normal datepicker but i need a date picker within serialized array

    – divya sekar
    Mar 11 at 4:25











  • Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

    – Ronak Rathod
    Mar 11 at 6:31











  • adminhtml/system_config_backend_serialized_array is use as serialized array.

    – Ronak Rathod
    Mar 11 at 6:31











  • check updated answer

    – Ronak Rathod
    Mar 11 at 6:32











  • I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

    – divya sekar
    Mar 11 at 6:36














1












1








1







To add date & time picker, first of all you need to create date.php file at following location in your custom extension



[Vendor][ModuleName] BlockAdminhtmlSystemConfig



<?php
class [Vendor][ModuleName] BlockAdminhtmlSystemConfig date extends Mage_Adminhtml_Block_System_Config_Form_Field

protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)

$date = new Varien_Data_Form_Element_Date;
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);

$data = array(
'name' => $element->getName(),
'html_id' => $element->getId(),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
);
$date->setData($data);
$date->setValue($element->getValue(), $format);
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM));
$date->setClass($element->getFieldConfig()->validate->asArray());
$date->setForm($element->getForm());

return $date->getElementHtml();


?>


Once you have created date.php file, you have to add below code in System.xml file.



<startdate translate="label">
<label>Offer Start Date</label>
<frontend_model>notificationbar/adminhtml_system_config_date</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</startdate>
<starttime translate="label comment">
<label>Offer Start Time</label>
<frontend_type>time</frontend_type>
<sort_order>152</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</starttime>





share|improve this answer















To add date & time picker, first of all you need to create date.php file at following location in your custom extension



[Vendor][ModuleName] BlockAdminhtmlSystemConfig



<?php
class [Vendor][ModuleName] BlockAdminhtmlSystemConfig date extends Mage_Adminhtml_Block_System_Config_Form_Field

protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)

$date = new Varien_Data_Form_Element_Date;
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);

$data = array(
'name' => $element->getName(),
'html_id' => $element->getId(),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
);
$date->setData($data);
$date->setValue($element->getValue(), $format);
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM));
$date->setClass($element->getFieldConfig()->validate->asArray());
$date->setForm($element->getForm());

return $date->getElementHtml();


?>


Once you have created date.php file, you have to add below code in System.xml file.



<startdate translate="label">
<label>Offer Start Date</label>
<frontend_model>notificationbar/adminhtml_system_config_date</frontend_model>
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
<sort_order>150</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</startdate>
<starttime translate="label comment">
<label>Offer Start Time</label>
<frontend_type>time</frontend_type>
<sort_order>152</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</starttime>






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 11 at 6:32

























answered Mar 9 at 12:43









Ronak RathodRonak Rathod

41010




41010












  • your answer is support for normal datepicker but i need a date picker within serialized array

    – divya sekar
    Mar 11 at 4:25











  • Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

    – Ronak Rathod
    Mar 11 at 6:31











  • adminhtml/system_config_backend_serialized_array is use as serialized array.

    – Ronak Rathod
    Mar 11 at 6:31











  • check updated answer

    – Ronak Rathod
    Mar 11 at 6:32











  • I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

    – divya sekar
    Mar 11 at 6:36


















  • your answer is support for normal datepicker but i need a date picker within serialized array

    – divya sekar
    Mar 11 at 4:25











  • Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

    – Ronak Rathod
    Mar 11 at 6:31











  • adminhtml/system_config_backend_serialized_array is use as serialized array.

    – Ronak Rathod
    Mar 11 at 6:31











  • check updated answer

    – Ronak Rathod
    Mar 11 at 6:32











  • I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

    – divya sekar
    Mar 11 at 6:36

















your answer is support for normal datepicker but i need a date picker within serialized array

– divya sekar
Mar 11 at 4:25





your answer is support for normal datepicker but i need a date picker within serialized array

– divya sekar
Mar 11 at 4:25













Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

– Ronak Rathod
Mar 11 at 6:31





Define <backend_model>adminhtml/system_config_backend_serialized_array</backend_model> in system.xml file

– Ronak Rathod
Mar 11 at 6:31













adminhtml/system_config_backend_serialized_array is use as serialized array.

– Ronak Rathod
Mar 11 at 6:31





adminhtml/system_config_backend_serialized_array is use as serialized array.

– Ronak Rathod
Mar 11 at 6:31













check updated answer

– Ronak Rathod
Mar 11 at 6:32





check updated answer

– Ronak Rathod
Mar 11 at 6:32













I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

– divya sekar
Mar 11 at 6:36






I already tried that way its reflects output prnt.sc/mw5rcj - @Ronak

– divya sekar
Mar 11 at 6:36


















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265121%2fhow-to-add-a-datepicker-in-magento-1-9-date-picker-within-serialized-array%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Masuk log Menu navigasi

Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

Старые Смолеговицы Содержание История | География | Демография | Достопримечательности | Примечания | НавигацияHGЯOLHGЯOL41 206 832 01641 606 406 141Административно-территориальное деление Ленинградской области«Переписная оброчная книга Водской пятины 1500 года», С. 793«Карта Ингерманландии: Ивангорода, Яма, Копорья, Нотеборга», по материалам 1676 г.«Генеральная карта провинции Ингерманландии» Э. Белинга и А. Андерсина, 1704 г., составлена по материалам 1678 г.«Географический чертёж над Ижорскою землей со своими городами» Адриана Шонбека 1705 г.Новая и достоверная всей Ингерманландии ланткарта. Грав. А. Ростовцев. СПб., 1727 г.Топографическая карта Санкт-Петербургской губернии. 5-и верстка. Шуберт. 1834 г.Описание Санкт-Петербургской губернии по уездам и станамСпецкарта западной части России Ф. Ф. Шуберта. 1844 г.Алфавитный список селений по уездам и станам С.-Петербургской губернииСписки населённых мест Российской Империи, составленные и издаваемые центральным статистическим комитетом министерства внутренних дел. XXXVII. Санкт-Петербургская губерния. По состоянию на 1862 год. СПб. 1864. С. 203Материалы по статистике народного хозяйства в С.-Петербургской губернии. Вып. IX. Частновладельческое хозяйство в Ямбургском уезде. СПб, 1888, С. 146, С. 2, 7, 54Положение о гербе муниципального образования Курское сельское поселениеСправочник истории административно-территориального деления Ленинградской области.Топографическая карта Ленинградской области, квадрат О-35-23-В (Хотыницы), 1930 г.АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1933, С. 27, 198АрхивированоАдминистративно-экономический справочник по Ленинградской области. — Л., 1936, с. 219АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1966, с. 175АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1973, С. 180АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1990, ISBN 5-289-00612-5, С. 38АрхивированоАдминистративно-территориальное деление Ленинградской области. — СПб., 2007, с. 60АрхивированоКоряков Юрий База данных «Этно-языковой состав населённых пунктов России». Ленинградская область.Административно-территориальное деление Ленинградской области. — СПб, 1997, ISBN 5-86153-055-6, С. 41АрхивированоКультовый комплекс Старые Смолеговицы // Электронная энциклопедия ЭрмитажаПроблемы выявления, изучения и сохранения культовых комплексов с каменными крестами: по материалам работ 2016-2017 гг. в Ленинградской области