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)
-   -   How to Access New Table Elements in template (https://forum.x-cart.com/showthread.php?t=548)

paul 11-05-2002 08:48 PM

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????

derrick92130 11-05-2002 10:39 PM

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,


All times are GMT -8. The time now is 05:39 PM.

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