• Resolved djrdavies

    (@djrdavies)


    We are using Property Hive with a feed from Alto.

    Alto has a functionality to request bookings using their portal, but we need to insert the property ID into the HTML code to link it together.

    The code I need to insert into the template files is:

    <a href="#" class="btn btn-primary pf-request-viewing-button" data-property-id="17875098" style="outline: none;"?Request A Viewing</a?

    where data-property-id is the ID of the property, as defined by Alto.

    <?php the_ID() ?> drops in the WordPress ID for the property.
    <?php the_propertyID() ?> doesn’t work.

    A bit of digging shows that the perhaps the correct field to use is “_vebra_propertyid”

    How would I go about dropping that link into the HTML code above?

    The ‘Request a Viewing’ button on the linked page above doesn’t work, but if the correct property ID is loaded into the code it would work.

    • This topic was modified 2 years ago by djrdavies. Reason: typo
    • This topic was modified 2 years ago by djrdavies.

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

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

    (@propertyhive)

    You should be able to use:

    $property->imported_id

    … to get the ID of the property in the third party CRM.

    Thanks,
    Steve

    Thread Starter djrdavies

    (@djrdavies)

    Thanks Steve,

    What is the code I would need to use in the HTML?

    <a href="#" class="btn btn-primary pf-request-viewing-button" data-property-id="17875098" style="outline: none;"?Request A Viewing</a?

    Plugin Author Property Hive

    (@propertyhive)

    <a href="#" class="btn btn-primary pf-request-viewing-button" data-property-id="<?php echo $property->imported_id; ?>" style="outline: none;"?Request A Viewing</a?

    Thread Starter djrdavies

    (@djrdavies)

    Thank you, that was a massive help.

    The final code I used was:

    <a href="#" class="btn btn-primary pf-request-viewing-button" data-property-id="<?php echo $property->_vebra_propertyid; ?>">Request A Viewing</a>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Generating Alto property ID using PHP –’ is closed to new replies.