Results 1 to 5 of 5

Thread: In desperation: Willing to pay for answer to this question

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts

    In desperation: Willing to pay for answer to this question

    Hi,

    I have a simple question that I urgently need an answer to. Having tried to get support from Appthemes without success, I am now at the point where I am willing to pay someone to tell me the answer. Please contact me urgently if you would like to work with me on this, including your price for a fix.

    Here's my problem:

    I have a custom form in Vantage, with a number of custom fields that are comprised of multiple checkboxes. Each checkbox group allows 'tick all that apply'.

    If I add a new listing via the front end, each checkbox value that is ticked gets written to wp_postmeta as a separate row. So for days of week, a row each for Monday, Tuesday, Wednesday etc...

    If I add a listing via the CSV importer, all the checkbox values get added to wp_postmeta as a single row. So for days of week, one single row in wp_postmeta containing meta_value of 'Monday,Tuesday, Wednesday etc'.


    Because I have additional custom coding elsewhere that relies on the values being stored in the way they are for the front end, I desperately need to get the CSV importer to work in an identical way to the front end.

    Vantage documentation advises including additional custom fields in the CSV importer using a small function in your child theme's functions.php which I have done. The fields go into Vantage OK, it's just that they are being stored the wrong way.

    This is how I am currently adding the custom field 'day' to my CSV importer:

    Code:
    $args['custom_fields']['day'] = array( 'internal_key' => 'app_day' );
    I believe I need to rewrite this to tell the Importer to handle the value passed as an array, but I don't know how.

    The code in framework/admin/importer.php has this in the comments:

    Code:
    	/*
    	 * Args can have 3 elements:
    	 * 'taxonomies' => array( 'valid', 'taxonomies' ),
    	 * 'custom_fields' => array(
    	 * 		'csv_key' => 'internal_key',
    	 *		'csv_key' => array(
    	 *			'internal_key' => 'key',
    	 *			'default' => 'value'
    	 *		)
    	 *	),
    	 * 'tax_meta' => array( array( 'tax' => array( 'csv_key' => 'tax_key' ) )
    	 */
    which I believe hold the answer, but I cannot for the life of me translate that comment into the correct code to add to my custom_csv_fields function in my child theme's functions.php.


    All I want is for someone to give me the correct structure for that one single line


    Code:
    $args['custom_fields']['day'] = array( 'internal_key' => 'app_day' );
    to enable the importer to treat the value passed as an array.


    I would *LOVE* to get this resolved today and would love to hear from anyone who might be able to help. I repeat I am willing to pay for a resolution to this issue.

    Frustratedly, but optimistically....

    red20

  2. #2
    dreamrock's Avatar
    Join Date
    Sep 2013
    Location
    United States
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    childcarejobs's Avatar
    Join Date
    Jun 2013
    Location
    Cambodia
    Posts
    20
    Thanks
    2
    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. [SOLVED] Did someone can answer me?
    By primo in forum ClassiPress General Discussion
    Replies: 4
    Last Post: September 30th, 2013, 05:05 AM
  2. map question, please answer!
    By franca in forum Vantage General Discussion (Legacy)
    Replies: 4
    Last Post: August 9th, 2013, 11:13 PM
  3. [SOLVED] [NEED HELP] Can some one Answer me
    By couponsm in forum Clipper General Discussion
    Replies: 1
    Last Post: February 27th, 2013, 03:30 PM
  4. Replies: 3
    Last Post: August 9th, 2012, 11:27 AM