Page 1 of 1

Send Message form

PostPosted: 13 Feb 2016, 15:12
by Ashwini
how to include "Send message" form in property details page , without including pop up link of "Send Message"..

Re: Send Message form

PostPosted: 18 Feb 2016, 14:48
by Koduc
You can place following code to file /themes/<theme>/views/modules/apartments/views/view.php:
Code: Select all
<?php
    
echo '<div id="send-message" data-href="'.$model->getUrlSendEmail().'"></div>';
    
Yii::app()->clientScript->registerScript('ajax-messages''
        $.ajax({
            method: "get",
            url: $("#send-message").data("href"),
            success: function(result){

                $("#send-message").html(result);
            }
        });
    '
CClientScript::POS_READY);
?>

Re: Send Message form

PostPosted: 27 Feb 2016, 15:27
by Ashwini
thanks for reply ,
for using this code , header and footers also included in my div.. but i want include only form of send message.

Re: Send Message form

PostPosted: 29 Feb 2016, 11:58
by andipas
This is a paid customization. Please kindly leave your message on our contact us form.