- Posts: 49
- Thank you received: 2
Additional Fiedls/type:file/backoffice
11 years 11 months ago #177782
by ateam98
Additional Fiedls/type:file/backoffice was created by ateam98
-- 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
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.
11 years 11 months ago #177869
by nicolas
Replied by nicolas on topic Additional Fiedls/type:file/backoffice
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.
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.
11 years 10 months ago #178820
by ateam98
Replied by ateam98 on topic Additional Fiedls/type:file/backoffice
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.146 seconds