How can we create favourite page and its button

To create a button you need to use following shortcode;

If you want to insert fav button in listing then use this shortcode
[property_result_shortlist add='Add to Favourite' remove='Remove from Favourite' class="btn-fav"]

If you want to insert fav button in detail page then use this shortcode
[property_detail_shortlist add='Add to Favourite' remove='Remove from Favourite' class="btn-fav"]

where,

add=”xxx” will display text on button when property is not saved to favourite

remove=”xxx” will display text on button when property is saved to favourite

How to create favourite page

Favourite page will be created with same codes as used for listing page here

But,

You need to insert shortlist word in starting tag in order to listing work only for favourite properties.

so starting code will become,

[property_results shortlist]

We can insert form in favourite listing page

Yes, can insert AJAX form in this page. You can follow same steps as explain in contact form page here

Print Friendly, PDF & Email