- Posts: 490
- Thank you received: 2
how to make a menu that will add product to one category only?
9 years 8 months ago #258401
by ronron
-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none
hi
how do i make the "vendor product add" work for one category only?
sample
i have one main category with 3 sub categories named sub cat 1, sub cat 2 and sub cat 3.
when i make a menu "Vendor product add" i want the menu to have something like:
menu = add product to main category and choose from sub category
menu = add product to sub cat 1 only
menu = add product to sub cat 2 only
menu = add product to sub cat 3 only
in this way the vendor can immediately click on the menu and add the product to a specific category and he wont be shown the rest?
thank you
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none
hi
how do i make the "vendor product add" work for one category only?
sample
i have one main category with 3 sub categories named sub cat 1, sub cat 2 and sub cat 3.
when i make a menu "Vendor product add" i want the menu to have something like:
menu = add product to main category and choose from sub category
menu = add product to sub cat 1 only
menu = add product to sub cat 2 only
menu = add product to sub cat 3 only
in this way the vendor can immediately click on the menu and add the product to a specific category and he wont be shown the rest?
thank you
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258402
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic how to make a menu that will add product to one category only?
Hi,
What I can recommend you is to perform a little customization for your HikaMarket "productmarket / form" view.
You can change how the category is manage in the view so, if there is a parameter in the URL (or in the form), it will set the category automatically as an hidden field (so the vendor won't see the field at all).
Thanks to that, you will be able to create different links for the product creation and pass each time the selected category ID.
For sure, it could be better to check the parameter to be sure that the vendor won't try to add the product anywhere (but HikaMarket already perform these check during the product save and will put the product in the vendor main category if there is a problem).
Regards,
What I can recommend you is to perform a little customization for your HikaMarket "productmarket / form" view.
You can change how the category is manage in the view so, if there is a parameter in the URL (or in the form), it will set the category automatically as an hidden field (so the vendor won't see the field at all).
Thanks to that, you will be able to create different links for the product creation and pass each time the selected category ID.
For sure, it could be better to check the parameter to be sure that the vendor won't try to add the product anywhere (but HikaMarket already perform these check during the product save and will put the product in the vendor main category if there is a problem).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258418
by ronron
Replied by ronron on topic how to make a menu that will add product to one category only?
thanks jerome
can you give me an example?
it would be great to automatically set the category for a product.
thanks again
can you give me an example?
it would be great to automatically set the category for a product.
thanks again
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258432
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic how to make a menu that will add product to one category only?
Hi,
Unfortunately, I cannot give you an example more precise ; it would be more like custom development than support on the usage of the software.
But what i can tell you is that it concern the block which start with
and which use a namebox for the category selection.
Regards,
Unfortunately, I cannot give you an example more precise ; it would be more like custom development than support on the usage of the software.
But what i can tell you is that it concern the block which start with
Code:
if(@$this->product->product_type != 'variant' && hikamarket::acl('product/edit/category')) { ?>
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: ronron
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258845
by ronron
Replied by ronron on topic how to make a menu that will add product to one category only?
thank you so much jerome.
with luck i got this work
my next issue is the category setting. i created categories and set the the user access to super administrator. unfortunately its still appearing in the front end for registered members.
how do i fix this?
thanks
with luck i got this work
my next issue is the category setting. i created categories and set the the user access to super administrator. unfortunately its still appearing in the front end for registered members.
how do i fix this?
thanks
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258859
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic how to make a menu that will add product to one category only?
Hi,
You're talking about the HikaMarket category listing or the HIkaShop category listing ?
Regards,
You're talking about the HikaMarket category listing or the HIkaShop category listing ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258928
by ronron
Replied by ronron on topic how to make a menu that will add product to one category only?
Please Log in or Create an account to join the conversation.
9 years 8 months ago #258930
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic how to make a menu that will add product to one category only?
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.273 seconds