Add additional field in order

13.12.2013 17:33
#1
jose23
Joomshopping forum user no avatar
Name: Jose
13.11.2013
Posts: 2
Quote
Add additional field in order

Good evening to everyone,

I would like to add an information in the order.

I added a textarea in com_jshopping/templates/default/checkout.php where the customer can write a code I need for my shop, just like he can make with the order_add_info field.
I called it vect_code.

Then I physically added a field in the database through MySql(table jshopping_orders) and I added the following line in file controllers/checkout.php:

$order->vect_code = JRequest::getVar('vect_code','');

But the new field is not valorized in the db.

Can someone please explain me what am I missing?

Thanks in advance

Andrea


Joomla: 2.5.16
JoomShopping: 3.16.0
PHP: 5.3.27
MySQL: 5.5
 
13.12.2013 17:36
#2
jose23
Joomshopping forum user no avatar
Name: Jose
13.11.2013
Posts: 2
Quote
Aw: Add additional field in order

I forgot...the function in which I added :
$order->vect_code = JRequest::getVar('vect_code','');

It's called step5save

 
Copyrights MAXXmarketing GmbH. All Rights Reserved