Jump to content

Commerce: custom fields not sent via rest api?


TyronX

Recommended Posts

I've defined a custom field "gamekeyid" (type text and nowhere shown) one time for the product and one time for the customer, but neither show up in the rest api call /nexus/purchases.

For the customer it transmitts a field that doesn't even exist, and for the product the customFields array is empty. Customer object customFields:

[customFields] => Array
                (
                    [1] => Array
                        (
                            [name] => Personal Information
                            [fields] => Array
                                (
                                    [1] => Array
                                        (
                                            [name] => About Me
                                            [value] =>
                                        )

                                )

                        )

                )

 

purchase customFields object:

    [expires] =>
    [active] => 1
    [canceled] =>
    [renewalTerm] =>
    [customFields] => Array
        (
        )

    [parent] =>
    [show] => 1
    [licenseKey] =>
    [image] =>


(the results are json decoded from a php get request with http auth)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...