WordPress.org

Ready to get started?Download WordPress

Forums

  1. hennessd
    Member
    Posted 1 year ago #

    I see in the docs that I can do php in the import fields. I 'd like to be able to do arithmetic on an imported node - that is, the node is a weight field that is in grams and I need it to be kilograms in the database, plus I want to strip out other text.

    So, the imported data (shipping_weight) says '320 grams' ... I want to be able to strip out the 'grams' text and divide the 320 by 1000 - so that it become .320

    Is this possible? I have tried [({shipping_weight} / 1000 )] but I get the error 'Unexpected symbol '\''

    Thanks

    http://wordpress.org/extend/plugins/wp-all-import/

  2. hennessd
    Member
    Posted 1 year ago #

    er.. sorry, error for that was 'Custom Field Value template is invalid: Unexpected token OPEN, statement was expected.'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.