ECI: ClassiPress Auto Custom Fields   

Jul 19th, 2011 // In: Easy CSV Importer // By: Comments 0

If you select an Easy Project from the Start page on Easy CSV Importer. The ECI plugin will do its best to automatically configure everything for you. This page lists each custom field key that ClassiPress uses and all the possible column title variations that Easy CSV Importer will accept as a close enough match to pair the column with the key. Not making sense?

Below is a dump of the actual code used, I’m not going to take the time to make it look pretty because it may need updating soon and it will take a while to style it all. Just look at the first line. It has $cp_array_cp_zipcode. Remove the $cp_array part and your left with cp_zipcode which is the official custom field key in ClassiPress for Zipcodes right? Now we look along the line and find other similiar values such as zip or postcode. This tells us that your column title can be named zip or postcode and ECI will still use the data in that column to create a custom field but will use the key “cp_zipcode” so that it actually works with your theme.

  1. $cp_array_cp_zipcode = array(“cp_zipcode”,”cpzipcode”,”zip”,”zipcode”,”postcode”,”postalcode”);
  2. $cp_array_cp_street = array(“cp_street”,”cpstreet”,”street”,”customersstreet”,”streets”);
  3. $cp_array_cp_state = array(“cp_state”,”cpstate”,”state”,”states”);
  4. $cp_array_cp_size = array(“cp_size”,”cpsize”,”size”,”sizes”);
  5. $cp_array_cp_region = array(“cp_region”,”cpregion”,”region”,”area”,”regions”,”areas”);
  6. $cp_array_cp_price = array(“cp_price”,”cpprice”,”price”,”cost”,”prices”,”costs”,”value”,”values”);
  7. $cp_array_cp_feedback = array(“cp_feedback”,”cpfeedback”,”feedback”,”comment”,”comments”);
  8. $cp_array_cp_country = array(“cp_country”,”cpcountry”,”country”,”countries”,”location”);
  9. $cp_array_cp_city = array(“cp_city”,”cpcity”,”city”,”town”,”village”,”cities”,”citys”,”towns”);
  10. $cp_array_cp_daily_count = array(“cp_daily_count”,”cpdailycount”,”dailycount”,”dayviews”,”dayhits”,”daylanded”,”daytraffic”);
  11. $cp_array_cp_payment_method = array(“cp_payment_method”,”cppaymentmethod”,”paymentmethod”,”paymethod”,”paymethods”,”methods”,”pay”,”payment”);
  12. $cp_array_cp_sys_ad_duration = array(“cp_sys_ad_duration”,”cpsysadduration”,”adduration”,”duration”,”length”,”time”);
  13. $cp_array_cp_sys_feat_price = array(“cp_sys_feat_price”,”cpsystemfeatprice”,”systemfeatprice”,”featprice”,”featuredprice”,”speciallprice”,”offer”,”offerprice”);
  14. $cp_array_cp_total_ad_cost = array(“cp_total_ad_cost”,”cpsystotaladcost”,”totaladcost”,”adcost”,”adcharge”,”adfee”,”adprice”);
  15. $cp_array_cp_total_count = array(“cp_total_count”,”cptotalcount”,”totalcount”,”counter”,”maincounter”,”maincount”,”hits”,”traffic”,”totalhits”,”totaltraffic”);

Video Tutorial

Tags: - -

Leave a Reply

You must be logged in to post a comment.