• blankbox

    (@blankboxmedia)


    Hi there,

    I’m just finalising a site for a client that links to Alto, but one thing I’m struggling with is that they seem to have an additional taxonomy that differentiates between Student and Non-Student Lets. I believe this is called ‘Tenancy Type’ in Alto but might be misremembering!

    I couldn’t see any way to bring this through to Property Hive, any ideas?

    Also, the clients have Videos on many of their properties. Is there any way to bring this through into the gallery on the Property pages?

    Many thanks,
    Rory

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Property Hive

    (@propertyhive)

    Hi Rory,

    Happy to help. Re the ‘Tenancy Type’ field we don’t have a field for this by default. Looking at the vebra schema it looks like the field we might need from their API is ‘rm_let_type_id’ which contains an ID.

    What I would recommend is:

    1) Create a custom field to store this:

    https://docs.wp-property-hive.com/add-ons/template-assistant/custom-fields/

    I suspect you might create a field of type ‘select’ with the values: Student and Non-Student

    2) Once you have the custom field in place you can use a snippet like so to import the data from Vebra accordingly into this custom field:

    https://gist.github.com/propertyhive/98a3cd182efa55229b14510be2409c63

    Regarding videos by default we’ll import virtual tours and display them as their own button, not as part of the gallery. If you did want them as part of the gallery you’d need to modify the single-property/property-images.php template accordingly.

    More about overriding templates here:

    https://docs.wp-property-hive.com/developer-guide/overriding-templates/

    … and here’s a snippet showing how to get virtual tours:

    https://gist.github.com/propertyhive/3e02424a738dff499e95ec4895e19d17

    Hope that’s enough to go on but do let me know if an further assistance required.

    Thanks,
    Steve

    Thread Starter blankbox

    (@blankboxmedia)

    Hi Steve,

    Amazing, thank you for your help.

    To clarify, is this the correct setup for the Let Type custom field?

    View post on imgur.com

    Kind regards,
    Rory

    Plugin Author Property Hive

    (@propertyhive)

    Looks good from here. If this field doesn’t get set after running another import do let me know and I’ll see if I can assist further,

    Thanks,
    Steve

    Thread Starter blankbox

    (@blankboxmedia)

    Hi Steve,

    It doesn’t seem to be importing them through, based on what I’ve seen in the clients Alto I’d expect all ‘To Let’ properties to have a value of either ‘Student’ or ‘Non-Student’.

    Kind regards,
    Rory

    Plugin Author Property Hive

    (@propertyhive)

    Hi Rory,

    Thanks for access. My apologies but I’d used the wrong hook name in the snippet. Have corrected it, ran an import and can see this being set now.

    Let me know if I can assist further,

    Steve

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Additional Taxonomies in Alto’ is closed to new replies.