- Posts: 30
- Thank you received: 1
importing from folder + user access
When I import the products from a folder, all products appear in the right category in which the product template is, but the access level has been skipped by the import script.
I have to assign the access levels by hand, which is unacceptable for my client (80 - 100 products per category)
How to fix this?
Please Log in or Create an account to join the conversation.
You can fix it by changing the line:
$product->product_access = $accesses;
by:
$product->product_access = ','.implode(',',$accesses).',';
in the file administrator/components/com_hikashop/helpers/import.php
We will include the fix in next release as well.
Please Log in or Create an account to join the conversation.
Thank you for your feedback. Looking at the code, we indeed found that issue.
You can fix it by changing the line:
$product->product_access = $accesses);
I can not find $product->product_access = $accesses);
by:
$product->product_access = ','.implode(',',$accesses).',';
in the file administrator/components/com_hikashop/helpers/import.php
We will include the fix in next release as well.
Is the exact code on line-number 680?
$product->product_access = $accesses; ?
OK, I will try it and report back here
Please Log in or Create an account to join the conversation.
nicolas wrote:
Thank you for your feedback. Looking at the code, we indeed found that issue.
You can fix it by changing the line:
$product->product_access = $accesses);
I can not find $product->product_access = $accesses);
by:$product->product_access = ','.implode(',',$accesses).',';
in the file administrator/components/com_hikashop/helpers/import.php
We will include the fix in next release as well.
Is the exact code on line-number 680?
$product->product_access = $accesses; ?
OK, I will try it and report back here
It was line-number 680!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.