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

How to Access New Table Elements in template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-05-2002, 08:48 PM
 
paul paul is offline
 

Member
  
Join Date: Oct 2002
Posts: 13
 

Default How to Access New Table Elements in template

I added a new element in the orders table and would like to use it in the history_order.tpl. The order.php code creates the $orders variable and is passed to the above template but I am unable to access this new element.

In history_order, I can enter a new value for this element and it is stored in table.

Any ideas????
Reply With Quote
  #2  
Old 11-05-2002, 10:39 PM
 
derrick92130 derrick92130 is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: San Diego, California USA
Posts: 68
 

Default new element in xcart_orders table...

I'm not sure I understand where you are having the problem.

To add a new characteristic to the order table that is modified/updated through the history_order template, you would first modify the table in the database to include the new field.

You would need to modify the history_order template to be able to capture the data for the new field.

You would need to modify the order.php file to process the POST request that is made through the history_order template.

You "may" also need to modify the /xcart/include/func.php file which is where all of the "function func_xxx_order_xxx" functions reside. This is where the $orders array, etc are constructed.

If this info isn't helpful, maybe you could let me know exactly what is working and what part isn't.

NOTE: The details above are for X-Cart version 3.2.1, if you are using an earlier version, the functions are all in /xcart/config.php.

Hope this helps,
__________________
-Derrick
FreeRangeMinds, LLC
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:09 AM.

   

 
X-Cart forums © 2001-2020