•  

CSV import: WP post fields ignored?

This thread is over 4 months old
The content and issues discussed here maybe out of date or inaccurate.

Check you are running the latest version of your PremiumPress theme then look for a more recent forum post or submit a support ticket.
  1. u 381
    offline
    Tech
    Posted 1 year ago

    As of beta 9, parse_csv_file function (in shopperpress > PPT > func > funcs_premiumpress.php) seems to leave out additional post fields when inserting records.

    Supported fields (as of v 6 beta 9):
    post_title, post_content, post_excerpt, post_author, post_status, post_type, post_category, tags_input

    i'm interested in pre-scheduled publish of products/articles.
    Would WP date fields (post_date, post_modified, etc) be supported eventually?

  2. u 1
    offline
    Mark
    Posted 1 year ago

    i might add it later but adding the post date still doesnt seem to be that simple, WP seems to still want to add its own for some reason.

  3. u 381
    offline
    Tech
    Posted 1 year ago

    Mark, you're right.
    WP has built in some of its logic in wp_insert_post function:
    http://core.trac.wordpress.org/browser/tags/3.1.3/wp-includes/post.php

    post_date_gmt seems derived from post_date if only post_status is either 'draft', 'pending' or 'auto-draft' (line 2484-2485).

    Then, the post fields (together with post array) are passed to 'wp_insert_post_data' filters (line 2545) before insert query.

    In short, we might be able import post_date by
    tweaking post_status accordingly before wp_insert_post, OR
    adding a filter function to 'wp_insert_post_data' filters over-writing wp_insert_post logic.

    You might have better idea...

  4. u 3159
    offline
    pat
    Posted 1 year ago

    for the price, I did put the old price and the current price in the cvs file, however the old price gray out and the current price did not display, I did check in the product and see both price there, (old price and current price) but it did not display the current price, could you please help to see how to fix this issue

  5. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    @pat, could you provide your site's url?

    For PremiumPress theme customisations, plugins, child themes and support visit:
    http://premiumwebservices.co.uk
  6. u 2786
    offline
    M. T.
    Posted 1 year ago

    I'm having the same problem as "Pat". When I upload my csv to shopperpress, only a few lines of products have the prices imported. I format all of the cells the same so I don't know why only a few of the (top) lines would import and those below would not. I've searched all the forums and haven't found an explanation (and fix) for this. Any help would be appreciated. CSV attached.

    URL is: http://www.02p.com

    Thanks.

    Tony

  7. u 2786
    offline
    M. T.
    Posted 1 year ago

    I'm still having this problem. Only the first five rows of prices are being imported. A little help......Anyone?????

  8. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    Hi M.T. you have not attached the sample CSV. There can be many reasons why the CSV failed to import. Most of that has been discussed on this forum many times (you might try to search for it).
    Without seeing the csv it is impossible to say the reason of that behavior.

  9. u 2786
    offline
    M. T.
    Posted 1 year ago

    Hey Richard B. Here is the CSV. Can you see anything wrong with it????

    OK...for some reason I'm getting a "denied extension" error message when I try to attach the csv file. What am I doing wrong here????? Anyone?

  10. u 1
    offline
    Mark
    Posted 1 year ago

    send a screenshot.