Example #1
0
	<tr>
			<td class="t-01" width=500 colspan="5" style="border-bottom:3px #DADADA solid;"><span class=titulo2><?php 
echo _("Tu pedido");
?>
</span></td>
	</tr>
	<tr>
			<td class="t-01" width=500 colspan="5" style="border-left:1px #DADADA solid;" style="border-bottom:1px #DADADA solid;" style="border-right:1px #DADADA solid;" style="border-bottom:1px #DADADA solid;">
<?php 
if (isset($paymentResult)) {
    ?>
                <span><?php 
    echo _("Nº de tu pedido:");
    ?>
 <?php 
    echo formatOrderId($cart);
    ?>
</span>
<?php 
}
?>
				<!--span>El plazo de entrega de tu pedido es de <?php 
echo $cart->shippingDays;
?>
 días</span-->
			</td>
	</tr>
	<tr>
			<td class="t-02" width=500 colspan="2" style="border-left:1px #DADADA solid;" style="border-bottom:1px #DADADA solid;"><span class=titulo2><?php 
echo _("Productos");
?>
Example #2
0
<?php

global $npshop, $order, $user;
?>
<html>
    <head>
        <style>
            <?php 
include_once 'style.css';
?>
        </style>
    </head>
    <body>
        <div style="float:left"><h1><?php 
echo sprintf(_("Detalle del pedido %s"), formatOrderId($order));
?>
</h1></div>
        <div style="float:right"><a href="listOrders.php?type=PENDING_SENT"><?php 
echo _("Volver a listado de pedidos");
?>
</a></div>
	    
	    <div style="clear:both"/>

        <h2><?php 
echo _("Resumen del pedido");
?>
</h2>
        <center>
        <table boder="0">
            <tr><td>Fecha:</td><td><?php 
Example #3
0
foreach ($orders as $order) {
    ?>
                <tr>
                    <td align="center"><?php 
    echo date(_("d/m/Y H:i:s"), $order->date);
    ?>
</td> 
                    <td align="center"><?php 
    echo $order->orderStatus;
    ?>
</td> 
                    <td align="center"><a href="orderDetail.php?orderId=<?php 
    echo $order->orderId;
    ?>
"><?php 
    echo formatOrderId($order);
    ?>
</a></td> 
                    <td align="right"><?php 
    echo $order->getTotal(1);
    ?>
 &euro;</td>
                    <td align="center"><?php 
    echo $order->countItems();
    ?>
</td> 
                    <td>
                        <?php 
    echo $order->user->billingData['name'];
    ?>
 <?php 
Example #4
0
 function _buildMail()
 {
     global $npshop;
     $text = implode('', file(APP_ROOT . $npshop['skin']['path'] . $npshop['skin']['name'] . "/npshop/email_header.php"));
     $text .= sprintf(_("Hola %s"), $this->user->billingData['name']) . ",<br/><br/>";
     $text .= sprintf(_("Estos son los productos asociados al pedido %s:"), formatOrderId($this)) . "<br/>";
     $text .= "<ul>";
     foreach ($this->items as $item) {
         $text .= "<li><b>" . NP_get_i18n($item->name) . "</b> (" . _("Ref.") . " " . $item->id . "): " . _("Cantidad") . " [" . $item->quantity . "], " . _("Precio por unidad") . " [" . $item->prize . " &euro;]</li>";
     }
     $text .= "</ul>";
     $text .= "<blockquote>";
     $text .= _("Subtotal") . ": " . $this->getSubTotal() . " &euro;<br/>";
     $text .= _("Gastos de envío") . ": " . $this->getShippingCost(1) . " &euro;<br/>";
     $text .= "<br/><b>" . _("TOTAL") . ": " . $this->getTotal(1) . " &euro;</b><br/>";
     $text .= "</blockquote>";
     $text .= "<br/>";
     $text .= "<p>" . _("Datos personales") . ":</p>";
     $text .= "<center><table border='0' width='70%'>";
     $text .= "    <tr>";
     $text .= "        <td width='50%' valign='top'>";
     $text .= "        <b>" . _("Datos de facturación") . "</b><br/>";
     //$text .= "        <ul>";
     $text .= "            <br/>" . $this->user->billingData['name'] . " " . $this->user->billingData['surname'];
     $text .= "            <br/>";
     $text .= "            <br/>" . $this->user->billingData['address'] . " " . $this->user->billingData['address2'];
     $text .= "            <br/>" . $this->user->billingData['postalCode'] . " " . $this->user->billingData['city'];
     $text .= "            <br/>" . getProvinceName($this->user->billingData['province']);
     $text .= "            <br/>" . getCountryName($this->user->billingData['country']);
     //$text .= "            <br/>";
     //$text .= "            <li>Teléfono: ".$this->user->billingData['phone']." </li>";
     //$text .= "        </ul>";
     $text .= "        </td>";
     $text .= "        <td width='50%' valign='top'>";
     $text .= "        <b>Datos de envío</b><br/>";
     //$text .= "        <ul>";
     $text .= "            <br/>" . $this->user->shippingData['name'] . " " . $this->user->shippingData['surname'];
     $text .= "            <br/>";
     $text .= "            <br/>" . $this->user->shippingData['address'] . " " . $this->user->shippingData['address2'];
     $text .= "            <br/>" . $this->user->shippingData['postalCode'] . " " . $this->user->shippingData['city'];
     $text .= "            <br/>" . getProvinceName($this->user->shippingData['province']);
     $text .= "            <br/>" . getCountryName($this->user->shippingData['country']);
     //$text .= "            <br/>";
     //$text .= "            <li>Teléfono: ".$this->user->shippingData['phone']." </li>";
     //$text .= "        </ul>";
     $text .= "        </td>";
     $text .= "   </tr>";
     $text .= "</table></center><br/>";
     if ($this->orderStatus == $npshop['constants']['ORDER_STATUS']['PAYMENT_OK']) {
         $text .= _("El pedido <b>queda confirmado</b>.") . "<br/>";
     } else {
         if ($this->orderStatus == $npshop['constants']['ORDER_STATUS']['PAYMENT_TRANSFER']) {
             $text .= _("El pedido <b>queda confirmado</b> y pendiente de que realices una transferencia por la cantidad total del pedido a este número de cuenta: 2038-1576-52-6000042530 (Caja Madrid), Titular: David Benavente.") . "<br/>";
         } else {
             if ($this->orderStatus == $npshop['constants']['ORDER_STATUS']['PENDING_SENT_ONDELIVERY']) {
                 $text .= _("El pedido <b>queda confirmado</b> y será enviado contrareembolso a la dirección que has indicado.") . "<br/>";
             } else {
                 if ($this->orderStatus == $npshop['constants']['ORDER_STATUS']['PAYMENT_ERROR']) {
                     $text .= _("El pedido <b>no ha podido ser confirmado</b>.") . "<br/>";
                 } else {
                     $text .= sprintf(_("El pedido queda con estado <b>%s</b>."), $this->orderStatus) . "<br/>";
                 }
             }
         }
     }
     $text .= "<br/>";
     $text .= _("Un saludo");
     $text .= implode('', file(APP_ROOT . $npshop['skin']['path'] . $npshop['skin']['name'] . "/npshop/email_footer.php"));
     return $text;
 }