Failed order save - order_url

  • Posts: 8
  • Thank you received: 0
13 years 1 month ago #27170

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?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #27176

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);

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
13 years 1 month ago #27178

Thanks for that.......

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum