• Resolved Pacicio

    (@pacicio)


    Hi, I checked the documentation but I can’t find anything about this.

    I was wondering if it is possible to create an Option which get it’s value from a function.
    For example: I need to calculate the price of a book, but the costs of the paper are stored in a external file.

    Could I create a function (in functions.php for example) which gets the cost of the paper based on some parameters and then use this function as an Option in my math formula?

    Thanks

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

    (@moomooagency)

    Hi,

    It is incorrect saying use option in math formula. Option is basically a form field with a set of attributes. It is a gateway for data. Each option has one or more variables connected. Variables are things which are used in the formula.

    The only functions which can be used in formula are described in the docs, e.g. ’round()’ etc.

    Answering your question – no, it is not possible to do what you described. At least yet.

Viewing 1 replies (of 1 total)
  • The topic ‘Pre sale question – Option value set by function’ is closed to new replies.