Closed PaulNWard closed 3 years ago
@PaulNWard You can see an example of how to add additional fields to the Kyero XML below:
https://gist.github.com/propertyhive/004f290ad80df9d86e462919011f7a6e
Once added, wait for the XML to be generated again (should be hourly) and you'll see these new fields. If you need any further clarification on the above do let me know,
Steve
Hi Steve,
Thanks for the code. I don't know which file or where to put it though. Do I add it at the end of propertyhive-kyero-export.php?
Cheers, Paul
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, 20 Jul 2021 at 16:01, Property Hive @.***> wrote:
@PaulNWard https://github.com/PaulNWard You can see an example of how to add additional fields to the Kyero XML below:
https://gist.github.com/propertyhive/004f290ad80df9d86e462919011f7a6e
Once added, wait for the XML to be generated again (should be hourly) and you'll see these new fields. If you need any further clarification on the above do let me know,
Steve
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/propertyhive/WP-Property-Hive/issues/166#issuecomment-883418304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUWN5OINAANNDQCFXI26OADTYV6SZANCNFSM5AVXDFDQ .
It will go in your themes functions.php file, or you can use a plugin like Code Snippets (https://wordpress.org/plugins/code-snippets/).
Thanks, Steve
Hi Steve, Still not managed to get them to appear in the xml feed. I copied the text into the themes functions.php file exactly as it was, tried that. Then I tried it with custom_field_0 and custom_field_1 and then I tried it with the names I'd given as below, but none of them have been picked up in the feed. I'm obviously doing something wrong. / Add your own functions below this line. ======================================== / add_filter( 'ph_kyero_property_values', 'custom_kyero', 10, 3 ); function custom_kyero($property_xml, $post_id, $portal_id) { $property = new PH_Property($post_id);
$property_xml->addChild('build_m2');
$property_xml->build_m2 = $property->build_m2;
$property_xml->addChild('plot_m2');
$property_xml->plot_m2 = $property->plot_m2;
return $property_xml;
} Cheers, Paul
On Tue, 20 Jul 2021 at 16:39, Property Hive @.***> wrote:
It will go in your themes functions.php file, or you can use a plugin like Code Snippets (https://wordpress.org/plugins/code-snippets/).
Thanks, Steve
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/propertyhive/WP-Property-Hive/issues/166#issuecomment-883447840, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUWN5OKDPTSBING5TCGZCS3TYWDCHANCNFSM5AVXDFDQ .
Hi Paul,
Are the fields at least appearing in the XML, they're just blank? Or there's no change? And did you wait an hour for the XML to be automatically re-generated after adding the code?
If still no closer, if you can send through WP access to info@wp-property-hive.com I'll gladly take a look for myself.
Thanks, Steve
Hi Steve, The xml feed hasn't changed, still the original, they're not appearing and I updated it first thing this morning. https://spanishnewbuildhomes.com/wp-content/uploads/ph_kyero/0.xml
Appearance-Theme Editor-SNBH Theme-Theme Functions is where I put the code.
(login details removed)
Cheers, Paul
On Thu, 22 Jul 2021 at 15:11, Property Hive @.***> wrote:
Hi Paul,
Are the fields at least appearing in the XML, they're just blank? Or there's no change? And did you wait an hour for the XML to be automatically re-generated after adding the code?
If still no closer, if you can send through WP access to @.*** I'll gladly take a look for myself.
Thanks, Steve
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/propertyhive/WP-Property-Hive/issues/166#issuecomment-884900238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUWN5OJZXNXH5ESDSXGFHK3TZAKJNANCNFSM5AVXDFDQ .
Certainly very odd. I've just tried this exact same snippet on our development site, using the same version of the Kyero add on, and it worked right away:
As it stands I can't see anything from here. I think the next step would be to get FTP access to do some debugging. Is it possible to get these?
Note: Please don't post them in this forum as this is public. They can be emailed through to info@wp-property-hive.com
Thanks, Steve
Hello, I use Property Hive and Property Hive Kyero Export plugin and Template Assistant. In the template assistant I have additional fields Build size and Plot size and need these to be created in the Kyero export feed but it doesn't pick these up. Is there any way of getting these fields added, even if it is by editing the code on the server? Cheers, Paul