X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need help getting order data to display. (https://forum.x-cart.com/showthread.php?t=16249)

Alltribes 08-30-2005 01:35 PM

Need help getting order data to display.
 
I'm having a tough time figuring out how to add tracking for Urchin Web Analyzer. I need the follwing info to show up on the order reciept page:

This is included once for the order:
UTM:T|Order#|My site|Total order ammount|tax|shipping cost|City|State|Country

This is included for each product:
UTM:I|Order#|productcode|product name|category|price|quantity

Example:
UTM:T|34535|Main Store|143.05|3.05|10.00|San Diego|CA|USA
UTM:I|34535|XF-1024|T-Shirt|Shirts|10.00|9
UTM:I|34535|CU-3424|Drink Holder|Accessories|20.00|2

I've looked at order_data.tpl, and tried replicating it, but with no luck. I looked around the forums, but it's very hard finding info this technical. Could any kind soul please give me an idea of how to approach this?

balinor 08-31-2005 04:36 AM

The order receipt page....do you mean the invoice?

Alltribes 08-31-2005 07:29 AM

Yeah, the one that gets shown after checkout. I've never been very good with arrays.

balinor 08-31-2005 07:33 AM

That is skin1/mail/html/order_invoice.html which then calls order_data.tpl. You mean to say you have tried and failed to add the correct smarty tags in there?

Alltribes 08-31-2005 10:51 AM

I've figured part of it out. The line for each item is showing up, but it's all on one line. Any ideas on how to get each to display on it's own line?

hooter 08-31-2005 12:16 PM

Alltribes,

Either insert a
in each iteration of the loop or build it using a table structure and insert a new <tr><tdYour line data</td></tr> during each iteration.

Alltribes 08-31-2005 01:03 PM

I was hoping there was a way to do it without html. It's going into a hidden form. Perhaps it will work as it is.

edit: It works now :) Well, mostly.
edit:edit: It displays perfectly, except for one thing: no category data. I suspect this will require some php editing.

Unless there is another way to get the category for each product.


All times are GMT -8. The time now is 01:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.