1. hennessd
    Posted 2 years 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 '\''



  2. hennessd
    Posted 2 years 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

  • Import any XML or CSV File to WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.