- Posts: 31
- Thank you received: 3
Category view when the vendor add a product
4 years 5 months ago #342317
by _Pascal_
Category view when the vendor add a product was created by _Pascal_
Hi
Questions about the view when the vendor is adding a new product
a) Is it possible to redesign / overide category view in front for the vendor ?
b) I would like to limit the choice of the vendor to the final level of the category tree ?
Is it possble by configuration ?
Regards
Questions about the view when the vendor is adding a new product
a) Is it possible to redesign / overide category view in front for the vendor ?
b) I would like to limit the choice of the vendor to the final level of the category tree ?
Is it possble by configuration ?
Regards
Please Log in or Create an account to join the conversation.
4 years 5 months ago #342332
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Category view when the vendor add a product
Hello,
a - You can override and customize every HikaMarket views (and every HikaShop views).
b - HikaMarket have a hidden configuration setting "products_only_leaf_categories" which is specially made for that.
(Hidden settings need to be added directly in the configuration table in your database.)
Regards,
a - You can override and customize every HikaMarket views (and every HikaShop views).
b - HikaMarket have a hidden configuration setting "products_only_leaf_categories" which is specially made for that.
(Hidden settings need to be added directly in the configuration table in your database.)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #342348
by _Pascal_
Replied by _Pascal_ on topic Category view when the vendor add a product
Thanks
I inserted the value in table as below
INSERT INTO `xxx_hikamarket_config` (`config_namekey`, `config_value`, `config_default`) VALUES
('products_only_leaf_categories', '1', '1');
But I can always choose any category (from the frontend screen) ...
Is that correct ?
I inserted the value in table as below
INSERT INTO `xxx_hikamarket_config` (`config_namekey`, `config_value`, `config_default`) VALUES
('products_only_leaf_categories', '1', '1');
But I can always choose any category (from the frontend screen) ...
Is that correct ?
Please Log in or Create an account to join the conversation.
4 years 5 months ago #342349
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Category view when the vendor add a product
Hello,
The feature do not change the behavior of the "namebox" system, the user can still select any category he wants.
But the option should perform a filtering and remove all new categories which are not leaf categories.
I checked the code and saw that there was a regression in recent release.
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines
By
It should restore the filtering while saving the product.
Regards,
The feature do not change the behavior of the "namebox" system, the user can still select any category he wants.
But the option should perform a filtering and remove all new categories which are not leaf categories.
I checked the code and saw that there was a regression in recent release.
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines
Code:
$keepCategories = array_intersect($categories, $oldCategories);
$addedCategories = array_intersect($categories, $leafCategories);
Code:
$keepCategories = array_intersect($product->categories, $oldCategories);
$addedCategories = array_intersect($product->categories, $leafCategories);
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.049 seconds