- Posts: 8
- Thank you received: 0
Failed order save - order_url
14 years 11 months ago #27170
by rduser
Failed order save - order_url was created by rduser
Hi
Am writing a custom payment plugin and seem to be getting error when trying to save an amended order.
Basically I am saving some extra fields to the order in the 'onAfterOrderConfirm' method of the payment plugin and it fails with following message :
Unknown column 'order_url' in 'field list'
Obviously this is not in the database table and a search reveals that is set in administrator/components/com_hikashop/classes/order.php in the 'loadOrderNotification' method, and is then retrieved in the following places :
media/com_hikashop/mail/order_creation_notification.text.php
media/com_hikashop/mail/order_status_notification.html.php
media/com_hikashop/mail/order_admin_notification.html.php
Is there a fix for this?
Am writing a custom payment plugin and seem to be getting error when trying to save an amended order.
Basically I am saving some extra fields to the order in the 'onAfterOrderConfirm' method of the payment plugin and it fails with following message :
Unknown column 'order_url' in 'field list'
Obviously this is not in the database table and a search reveals that is set in administrator/components/com_hikashop/classes/order.php in the 'loadOrderNotification' method, and is then retrieved in the following places :
media/com_hikashop/mail/order_creation_notification.text.php
media/com_hikashop/mail/order_status_notification.html.php
media/com_hikashop/mail/order_admin_notification.html.php
Is there a fix for this?
Please Log in or Create an account to join the conversation.
14 years 11 months ago #27176
by nicolas
Replied by nicolas on topic Re: Failed order save - order_url
Hi,
You can just unset that attribute from the $order object in your code before saving the order and it won't bug you with that:
unset($order->order_url);
You can just unset that attribute from the $order object in your code before saving the order and it won't bug you with that:
unset($order->order_url);
Please Log in or Create an account to join the conversation.
14 years 11 months ago #27178
by rduser
Replied by rduser on topic Re: Failed order save - order_url
Thanks for that.......
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds