propertyhive / WP-Property-Hive

The complete estate agency software plugin for WordPress
Other
25 stars 25 forks source link

Storing Specials property data #204

Closed will-yellowpeach closed 1 year ago

will-yellowpeach commented 1 year ago

We're trying to store the specials as part of our property import but no matter what we try it doesn't appear to be doing anything. We are using the Reapit web service and below is a sample of the array we are wanting to extract - specifically checking if one particular value is set:

<Special xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[2]"><item xsi:type="xsd:string">Pets</item><item xsi:type="xsd:string">Children</item></Special> We have been using 'propertyhive_property_imported_jet' and trying to grab the data by $property->Special or $property['Special'] (was unsure whether it was stored as an object or array) but neither appear to have any value.

Where are we going wrong?

will-yellowpeach commented 1 year ago

Ignore me, I think i've spotted that we need to include the field in propertyhive_jet_property_fields. Thanks