Additional Fiedls/type:file/backoffice

  • Posts: 49
  • Thank you received: 2
10 years 3 weeks ago #177782

-- HikaShop version -- : HikaShop [1409241754]

Hey Guys. Its been a while and the new version looks GREAT.
I do have one issue that I need to report
I have added 2 fields to the order table. They are file type fields and are documents that our customers have to fill out and return. They are only visible in the back office as we will do the file associations not the customer.
When we upload both documents at the same time, they are both associated with the order as expected. If we upload one during a session, then come back and upload the second at a later time...the first file is no long associated with the order. If we update the first one again, then the second is removed. Its as if you can only have one at a time unless you upload them both unless you upload them at the same time.
Thanks in advance,
Alan

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 3 weeks ago #177869

Hi,

Add the code:
if(!empty($value))

before the line:
$order->$key = $value;

in the file administrator/components/com_hikashop/classes/order.php and that should avoid the problem.

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

  • Posts: 49
  • Thank you received: 2
10 years 2 weeks ago #178820

The solution worked perfectly...thanks for the awesome support. You guys continue to rock ;-)

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

Time to create page: 0.044 seconds
Powered by Kunena Forum