Results 1 to 6 of 6
Like Tree2Likes
  • 2 Post By dikiyforester

Thread: How to add custom additional filed to below Store Section

  1. #1
    Thread Starter
    sumit's Avatar
    Join Date
    Jul 2014
    Location
    United State
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts

    How to add custom additional filed to below Store Section

    Hello,

    Could you please help me to figure out this problem. I have added visual editor as additional information for store in stores-single.php file.

    Here I made a changes.

    In , function clpr_edit_stores

    I have added $clpr_store_additional = clpr_get_store_meta( $tag->term_id, 'clpr_store_additional', true );

    and

    <tr class="form-field">
    <th scope="row" valign="top"><label for="clpr_store_additional"><?php _e( 'Additional Info', APP_TD ); ?></label></th>
    <td>
    <?php wp_editor( htmlspecialchars_decode( $term->description ), 'html-description', $this->editor_settings ); ?>
    <span class="description"><?php _e( 'Enter Additional Information of store.', APP_TD ); ?></span></td>
    <script type="text/javascript">
    // Remove the non-html field
    jQuery( 'textarea#description' ).closest( '.form-field' ).remove();
    </script>

    </tr>

    When I enter this code it showing error Fatal error: Using $this when not in object context in \...\wp-content\themes\Clipper\clipper\includes\admin\stor es-single.php on line 38

    and when I change change other object instead of $this then I get a custom field which I have created additional.

    Now the problem Is that.. When I am going to add the data into that filed, the data couldn't store in the database.

    so could you please help me to give some tips to solve this problem

    Thank you.

  2. #2
    Thread Starter
    sumit's Avatar
    Join Date
    Jul 2014
    Location
    United State
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    2,229
    Thanks
    89
    Thanked 593 Times in 491 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    jomarkosabel and sumit like this.
    arthemes.org - AppThemes plugins, tutorials, modifications and services

  4. The Following User Says Thank You to dikiyforester For This Useful Post:

    sumit (February 17th, 2016)

  5. #4
    Thread Starter
    sumit's Avatar
    Join Date
    Jul 2014
    Location
    United State
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    2,229
    Thanks
    89
    Thanked 593 Times in 491 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    arthemes.org - AppThemes plugins, tutorials, modifications and services

  7. The Following User Says Thank You to dikiyforester For This Useful Post:

    sumit (February 18th, 2016)

  8. #6
    Thread Starter
    sumit's Avatar
    Join Date
    Jul 2014
    Location
    United State
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding Custom Field in Store Section
    By ishmamjt in forum Flatter
    Replies: 13
    Last Post: February 19th, 2015, 06:15 PM
  2. Drop-down menu of custom filed do not show
    By rosario1968 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 12th, 2012, 04:35 AM
  3. How can I change state custom filed type from drop down to checkbox filed
    By rojda in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 13th, 2011, 04:26 PM
  4. Automaticly create Custom Filed when Post is published
    By mr_green in forum ClassiPress General Discussion
    Replies: 3
    Last Post: January 15th, 2011, 02:51 AM