x97wehner Posted May 16, 2023 Posted May 16, 2023 Wondering if anyone can tell me where this order ID that displays out of the box on the order confirmation page for guests is coming from? I don't see it anywhere in the system. It's close to the invoice on the order but different. Definitely different that the order reference as well?
the.rampage.rado Posted May 16, 2023 Posted May 16, 2023 For me it's the internal order number. I don't use invoices.
datakick Posted May 16, 2023 Posted May 16, 2023 This is from order-confirmation.tpl template. In Niara / community-theme-default, the value of $id_order_formatted is rendered: <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p> This variable is set in OrderConfirmationController, and contains order internal ID left padded with zeros 'id_order_formatted' => sprintf('#%06d', $this->id_order),
x97wehner Posted May 16, 2023 Author Posted May 16, 2023 (edited) 48 minutes ago, datakick said: This is from order-confirmation.tpl template. In Niara / community-theme-default, the value of $id_order_formatted is rendered: <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p> This variable is set in OrderConfirmationController, and contains order internal ID left padded with zeros 'id_order_formatted' => sprintf('#%06d', $this->id_order), Alright. It seems to be not customer facing anywhere but here so I think I'll remove it from this page. It's not on their order confirmation email either. Just wanted to verify if a customer would ever need to see it before I did. Thanks. Edited May 16, 2023 by x97wehner
e-com Posted May 16, 2023 Posted May 16, 2023 1 hour ago, datakick said: This is from order-confirmation.tpl template. In Niara / community-theme-default, the value of $id_order_formatted is rendered: <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p> This variable is set in OrderConfirmationController, and contains order internal ID left padded with zeros 'id_order_formatted' => sprintf('#%06d', $this->id_order), Rather, most store owners will say that it is a betrayal of trade secrets how many orders the store has 🙂 In my opinion, variable 'reference_order' should be used in this template.
x97wehner Posted May 16, 2023 Author Posted May 16, 2023 52 minutes ago, e-com said: Rather, most store owners will say that it is a betrayal of trade secrets how many orders the store has 🙂 In my opinion, variable 'reference_order' should be used in this template. Yes, seems more fitting. Was just struggling to understand why it would be there in the first place out of the box instead of the reference_order field as you've mentioned.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now