- Posts: 18
- Thank you received: 1
Custom Fields in Different Categories
11 years 1 week ago #215006
by ralfmason
Custom Fields in Different Categories was created by ralfmason
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Version 45.0.2454.99 m
-- Error-message(debug-mod must be tuned on) -- : Error
Please complete the Type field
Please complete the Milk Type field
Please complete the Pasteurised/Unpasteurised field
Please complete the Rennet field
Please complete the Country field
Please complete the Region field
Error Saving
No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Version 45.0.2454.99 m
-- Error-message(debug-mod must be tuned on) -- : Error
Please complete the Type field
Please complete the Milk Type field
Please complete the Pasteurised/Unpasteurised field
Please complete the Rennet field
Please complete the Country field
Please complete the Region field
Error Saving
No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.
Please Log in or Create an account to join the conversation.
11 years 1 week ago #215026
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Custom Fields in Different Categories
Hi,
Thanks for the report.
In the file "administrator/components/com_hikashop/classes/product.php" please replace
By
It should fix your issue.
We will include that patch in the next HikaShop release.
Regards,
Thanks for the report.
In the file "administrator/components/com_hikashop/classes/product.php" please replace
Code:
} else {
if(!hikashop_acl('product/add'))
return false;
}
Code:
} else {
$oldProduct = new stdClass();
$oldProduct->categories = array(0);
if(!empty($formProduct['categories']))
$oldProduct->categories = $formProduct['categories'];
JArrayHelper::toInteger($oldProduct->categories);
if(!hikashop_acl('product/add'))
return false;
}
We will include that patch in the next HikaShop release.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 1 week ago #215138
by ralfmason
Replied by ralfmason on topic Custom Fields in Different Categories
Thanks Jerome,
That seems to have fixed the issue.
Regards,
Ralf
That seems to have fixed the issue.
Regards,
Ralf
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds