Support » Plugin: Car Demon » data listing

  • Resolved thiantpro

    (@thiantpro)


    Hi,

    Does your template already include the data of the makes and models of the automobiles or should you create them manually 1 by 1?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author theverylastperson

    (@theverylastperson)

    Hi,

    The Car Demon PlugIn doesn’t have makes and models pre-entered. You enter them as you enter each vehicle.

    You can signup for a VinQuery.com account so when you enter a Vin# it grabs all of the vehicle information, including make & model.

    We also have a commercial Import / Update add-on that can be used to import and update entire inventories.

    You can also add a snippet of code to your theme’s functions.php file to import a list of makes and a list of models.

    Something like this should work

    function import_my_makes() {
    
    	//= update this list to import all of your makes
    	$makes = array( 
    		'Ford',
    		'Chevy',
    		'Nissan',
    	);	
    
    	foreach( $makes as $make ) {
    		//= insert makes
    		wp_insert_term( $make, 'vehicle_make' );			
    	}
    
    	//= update this to import all of your models
    	$models = array(
    		'F-150',
    		'Cobalt',
    		'Ultima'
    	);
    
    	foreach( $models as $model ) {
    		//= insert model
    		wp_insert_term( $model, 'vehicle_model' );			
    	}
    	
    }
    
    //= Run the Import - Don't forget to delete this after you first load the page
    import_my_makes();

    You’ll need to update the lists to include the makes and models you want to import.

    After adding it you’ll need to refresh a page on your site, then you’ll need to delete the code (you don’t want to run the import every time someone hits your site.

    Hope some of this information helps!

    Best wishes,
    -j

Viewing 1 replies (of 1 total)
  • The topic ‘data listing’ is closed to new replies.