Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Need help getting order data to display.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-30-2005, 01:35 PM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default 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?
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #2  
Old 08-31-2005, 04:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The order receipt page....do you mean the invoice?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-31-2005, 07:29 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

Yeah, the one that gets shown after checkout. I've never been very good with arrays.
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #4  
Old 08-31-2005, 07:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-31-2005, 10:51 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

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?
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #6  
Old 08-31-2005, 12:16 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

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.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #7  
Old 08-31-2005, 01:03 PM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

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.
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:51 AM.

   

 
X-Cart forums © 2001-2020