how to make a menu that will add product to one category only?

  • Posts: 490
  • Thank you received: 2
7 years 3 months ago #258401

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 3 months ago #258402

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,


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.

  • Posts: 490
  • Thank you received: 2
7 years 3 months ago #258418

thanks jerome

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.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 3 months ago #258432

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

if(@$this->product->product_type != 'variant' && hikamarket::acl('product/edit/category')) { ?>
and which use a namebox for the category selection.

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.

  • Posts: 490
  • Thank you received: 2
7 years 3 months ago #258845

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

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 3 months ago #258859

Hi,

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.

  • Posts: 490
  • Thank you received: 2
7 years 3 months ago #258928

hi

this is the menu link Vendor product add.

please see photo

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 3 months ago #258930

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.074 seconds
Powered by Kunena Forum