Example #1
0
 public static function emailProjectOwner($offer, $winner, $project, $projectOwner)
 {
     // Enviar correo a cliente
     $asunto = "Has adjudicado un proyecto. ¡Buen Trabajo!";
     $params = array('site_url' => UrlHelper::getUrl(), 'logo_url' => UrlHelper::getUrl('images/logo_footer.png'), 'check_url' => UrlHelper::getUrl('images/check_green.gif'), 'client_name' => $projectOwner['full_name'], 'oferta_winner' => $offer->bid, 'proyecto_titulo' => $project->pro_tit, 'projecto_date' => DateHelper::getShortDate($project->pro_date), 'proyecto_url' => UrlHelper::getProjectUrl($project->pro_id), 'photograph_name' => $winner['full_name'], 'photograph_email' => $winner['email'], 'photograph_phone' => $winner['movil'], 'photograph_location' => $winner['ciudad'] . ', ' . $winner['direccion']);
     $mailer = new FMailer();
     $body = $mailer->replaceParameters($params, file_get_contents(UrlHelper::getBasePath() . '/views/emails/adjudicarProyectosClienteEmail.html'));
     $receivers = array(array('email' => $projectOwner['email']));
     $mailer->setReceivers($receivers);
     $mailer->setBCC(array(array('email' => FConfig::getValue('contacto_email'))));
     $mailer->sendEmail($asunto, $body);
 }
Example #2
0
, <?php 
    echo utf8_encode($rs_proN->pro_country_name);
    ?>
                </div>
                <div class="col-xs-1 text-center">
                    <?php 
    echo DateHelper::getHoursLeft($rs_proN->pro_date_end);
    ?>
                </div>
                <div class="col-xs-1">

                    <?php 
    if (!isset($offers[$rs_proN->pro_id])) {
        ?>
                        <a class="btn btn-primary" href="<?php 
        echo UrlHelper::getProjectUrl($rs_proN->pro_id);
        ?>
">Oferta ya</a>
                    <?php 
    } else {
        ?>
                        <!-- TODO kill font18, fontW400, txtNaranja -->
                        <div class="alignCenter">Tu oferta <br><span class="font18 fontW400 txtNaranja">$ <?php 
        echo $offers[$rs_proN->pro_id]->bid;
        ?>
</span></div>
                    <?php 
    }
    ?>
                </div>
            </div>
Example #3
0
//file_put_contents($file, $content, FILE_APPEND);
$token = $app->getRequest()->get('token');
$paymentMethod = new PaymentManager($app, PuntoPagos::PAYMENT_METHOD_TYPE);
$paymentMethod->loadByGatewayId($token);
if ($paymentMethod->getStatus() === Payment::PAYMENT_STATUS_APPROVED) {
    $products = OrderProduct::getProductsByOrderId($paymentMethod->getOrderId());
    if (empty($products)) {
        //TODO correo aqui
        //TODO log
        $processResult = 99;
    }
    foreach ($products as $product) {
        //Aplicar cambios segun cada producto
        if ($product->id == Product::PRODUCT_ADJUDICAR_ID) {
            $productData = json_decode($product->data);
            $msg = 'El proyecto ha sido adjudicado de forma exitosa. <a href="' . UrlHelper::getProjectUrl($productData->project_id) . '">Ir al proyecto</a>';
        }
    }
}
?>

<div class="content-container">
    <div class="content form-page" id="metodo-pago-container">

        <h2>Confirmación del pago</h2>
        <form action="actions/paymentAction.php" method="post" id="metodo-pago-form" class="metodo-pago-form">
            <p><b>¡Hemos recibido tu pago!</b></p>

            <p>Mas instrucciones aqui</p>

            <p><?php