Search the Community
Showing results for tags 'order_id'.
-
I'm removing the order reference number from anything customer facing and replacing it with id_order, but I can't seem to do it on the order-details.tpl. I think maybe the variable doesn't exist on that page, but I'm not enough of a programmer to figure out how to get it there. This is the code I'd like to change: <strong>{l s='Order Number %s placed on' sprintf=$order->getUniqReference()} {dateFormat date=$order->date_add full=0}</strong> I tried replacing sprintf=$order->getUniqReference() with sprintf=$order->id_order but that did not work. Any ideas? I'm using PrestaShop 1.6.1.18 and a custom copy of the default bootstrap theme.
-
Hi All, I'm trying to get customer details and shipping address after the orders are processed from selective carts. I've got the cart Id to start with. But I'm having difficulty retrieving the customer's first name, last, name and shipping address. I've tried the following so far. $cart_id = $value['cart_id']; $result = false; $order = Order::getOrderByCartId((int)($cart_id)); $order_details = OrderDetail::getList((int)$order); if(isset($order_details[0])) { $order_id = $order_details[0]['id_order']; $customer = new Customer ($order_id); if (!Validate::isLoadedObject($customer)) { print_r($customer); } } The above code is giving me the entire customer object. But I'm not sure how to get the firstname, lastname, address and email from it. Appreciate you taking out time for this. Regards B
- 2 replies
-
- customer details
- cart_id
-
(and 2 more)
Tagged with:
-
Hello, guys i have one question how to get order refference in hookDisplayAdminOrder i try this method but nothing public function hookDisplayAdminOrder() { $orderid - Tools::getValue('id_order'); echo $orderid; } I just want to get order refference and make it variable with him
- 2 replies
-
- order_id
- refference
-
(and 3 more)
Tagged with:
-
Hola, estoy teniendo problemas con la página de contacto. He hecho un montón de pruebas, pero haga lo que haga me llega así: No aparecen nunca los adjuntos ni el id de pedido. El fichero que entra en juego aquí creo que es controllers\front\ContactController.php, a la altura de la línea 173: if (isset($ct) && Validate::isLoadedObject($ct) && $ct->id_order) { $order = new Order((int)$ct->id_order); $var_list['{order_name}'] = $order->getUniqReference(); $var_list['{id_order}'] = (int)$order->id; } $ct siempre llega con valor null. Un poco más arriba está su inicialización: $ct = new CustomerThread($id_customer_thread); pero como $id_customer_thread siempre es un booleano a false... siempre me carga un null. No sé qué está pasando ahí... ¿Alguien que me pueda echar una mano? Gracias.
-
Order Status Email Variables - show order_id instead of name
serv0 posted a topic in Core developers
Hi, I have changed my invoices and order-history pages to show the order id instead of an order reference. So im showing it like this.. If the id of the order is 9 then it is showing as ORD0000009 using {l s='#ORD'}{$order_invoice->id_order|string_format:"%06d"} This works fine in the order invoice, order history and order details page. However I am having trouble finding how to change this in the emails that get sent to the customer when the order status changes for example when it is a new order, order processing, order shipped, credits, delivered and cancelled. I tried editing the {order_name} variable in the mailalerts module mailalerts.php but this does not change. The email still shows the order reference number. I was able to get the new order email to change by editing PaymentModule.php and updating the {order_name} variable. Does anyone know what files I need to edit for the other order statuses? Or what file handles sending out emails when the order status changes? Thanks,- 1 reply
-
- order status
- order_name
-
(and 3 more)
Tagged with: