Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Adding Clicked Current Time To Form Rate Topic   - - - - -

 
  • ooaykac
  • Senior Member
  • Members
  • Join Date: 22-Nov 12
  • 297 posts

Posted 01 August 2019 - 03:15 PM #1


    <input type="hidden" name="product_data[category_ids]" value="" />
                
   
    
    <select id="product_categories_add_6523"
    
        class="cm-object-selector cm-object-categories-add input-large"
                            multiple
                        name="product_data[category_ids][]"
        data-ca-enable-images="true"
        data-ca-enable-search="true"
        data-ca-load-via-ajax="true"
        data-ca-page-size="10"
        data-ca-data-url="http://localhost/admin.php?dispatch=cce_paket_yonetimi.get_orders_list"
        data-ca-placeholder="Type to search..."
        data-ca-allow-clear="false"
        data-ca-close-on-select="false"
        data-ca-ajax-delay="250"
        data-ca-allow-sorting="1"
        data-ca-escape-html="false"
        data-ca-dropdown-css-class="select2-dropdown-below-categories-add"
        data-ca-required="true"
        data-ca-select-width="100%"
        data-ca-repaint-dropdown-on-change="true"
        data-ca-picker-id="categories_product_categories_add_6523"
        
    >
    

I want to add clicked time to form for each item which is clicked.

 

This the original submit form:

Array
(
    [product_data] => Array
        (
           [category_ids] => Array
                (
                    [0] => 15
                    [1] => 14
                )

           
        )

   )

I am trying to change this form like that below:

Array
(
    [product_data] => Array
        (
           [category_ids] => Array
              
                [0] => Array ( 
                    [time] => 464798744 
                    [id] => 15 
                  )
                [1] => Array ( 
                    [time] => 898645323 
                    [id] => 14 
                  )


           
        )

   )

I tried open an input and populate it with current time for each item but never success to send it as form instead of old form.

 

any idea?