Closed (fixed)
Project:
Ubercart
Version:
6.x-2.9
Component:
Orders
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2013 at 20:21 UTC
Updated:
29 May 2013 at 16:41 UTC
Is there a difference between these two pages that would cause certain items to show on the one, but not on the other.
I'm using a customized admin and invoice template and for some reason, even though they're pulling exactly the same information some things are left out on the invoice. I'm not sure I understand why.
Regards
Francois.
Comments
Comment #1
longwaveThe view order page is generated from the panes selected at /admin/store/settings/orders/edit/panes, the invoice is entirely controlled by your template (note that there are "invoice" checkboxes on the pane admin page, but these don't actually do anything...)
If you explain what you are seeing on the order and invoice pages, and what you expect to see instead, maybe we can help further.
Comment #2
FranCarstens commentedOkay, let me give some more detail. Probably should have done that to begin with.
I'm specifically referencing the following pages:
www.site.com/admin/store/orders/14396
www.site.com/admin/store/orders/14396/invoice
The following code is used to provide output for "attribute quantities" in both uc_order-admin.tpl.php and uc_order-customer.tpl.php
uc_order-customer.tpl.php:
uc_order-admin.tpl.php:
Yet it outputs as follows:
www.site.com/admin/store/orders/14396
www.site.com/admin/store/orders/14396/invoice
For some reason the ", x 20" is not showing up in the invoice - I'm stumped.
Thanks
Francois.
Comment #3
longwaveThe "view order" page is generated by neither of those.
uc_order-customer.tpl.php is the invoice template that is emailed to customers on a successful checkout, and also the one displayed in "view invoice" by default.
uc_order-admin.tpl.php is the order summary that is emailed to administrators on a successful checkout.
I am not sure where the ", x 20" could be coming from, however your code suggests you are using uc_attribute_quantity to display these numbers, so this question should be asked in the issue queue for that module - I am not familiar with it.
Comment #4
longwaveAssumed fixed by #3