Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By skidaddlers

Thread: Adding new fields to CSV uploader

  1. #1
    Thread Starter
    aiahmed's Avatar
    Join Date
    Sep 2013
    Location
    Bangladesh
    Posts
    52
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Adding new fields to CSV uploader

    Hi,

    Before I begin, this is my site:

    http://www.amaryellowpages.com And I have read the two posts on adding new fields to CSV Uploading. http://forums.appthemes.com/help-usi...mporter-67727/ and http://forums.appthemes.com/help-usi...listing-31116/

    I have a child theme and I have added the following snippet to my functions.php file in the child theme folder.


    Code:
    function my_custom_csv_fields( $args )
    { 
    $args['custom_fields']['mydate'] = array( 'internal_key' => 'app_mydate' ); 
    $args['custom_fields']['email'] = array( 'internal_key' => 'app_email' ); 
    return $args;
    }
    
    add_filter( 'va_csv_importer_args', 'my_custom_csv_fields' );

    Now I have created the custom form "email" and "mydate" into my custom forms and have aplied that form to the category which my test.csv file calls for. The main issue I am having is after importing the test data, as a viewer I cannot see the custom form data on the listing preview or view. When I edit using the normal visitor editor I see the custom form text field empty as shown in the following image:


    test results.jpg

    Interestingly the field with mydate is there but the email is not, moreover there seem to be 2 slots for email addresses! Again when I enter the edit through dashboard I can see the email field filled up as shown below:
    test admin.jpg

    Please help!

    I want to include email addresses to upoad on my future csv files and I would like the email address to come up on the listings page.

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,870 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    aiahmed's Avatar
    Join Date
    Sep 2013
    Location
    Bangladesh
    Posts
    52
    Thanks
    6
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,870 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Expired Customer skidaddlers's Avatar
    Join Date
    Mar 2015
    Posts
    42
    Thanks
    13
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    aiahmed likes this.

  6. #6
    Thread Starter
    aiahmed's Avatar
    Join Date
    Sep 2013
    Location
    Bangladesh
    Posts
    52
    Thanks
    6
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,870 Times in 1,767 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. Custom fields adding new fields not functioning
    By ruudwiering in forum Help Using ClassiPress
    Replies: 9
    Last Post: July 12th, 2013, 08:36 AM
  2. Adding more fields
    By jshgroup in forum Help Using ClassiPress
    Replies: 2
    Last Post: July 17th, 2011, 12:52 PM
  3. Hiding fields, adding buttons and adding background
    By sgg123 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: February 17th, 2011, 03:57 AM