Product categories NONE

  • Posts: 152
  • Thank you received: 11
3 years 3 months ago #335337

-- url of the page with the problem -- : demo.hikashop.com/
-- HikaShop version -- : 4.4.3
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.10
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome

When I create a new product I would like to have the PRODUCT CATEGORIES field similar to the BRAND field (with NONE and not a default category). To avoid finding the product even in the main category.

Thanks

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 3 months ago #335338

Hello,

The field will be fill with the category that the vendor was browsing (in the market product listing), so it's possible to have something else.
We recommend you use the setting "Change vendor root category" to avoid vendor creating products in your store main product category.
You can also use product templates in order to provide default values for the product category field.
Otherwise it's still possible to use a view override in order to empty the product category when you're creating a new product (the product_id will be empty).

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: 152
  • Thank you received: 11
3 years 3 months ago #335345

How should I modify this code to display JText :: _ ('HIKA_NONE') ??

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 3 months ago #335385

Hello,

As mentioned in my previous message, the idea is to clean/empty $categories if $this->product->product_id is empty.

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.

Moderators: Obsidev
Time to create page: 0.071 seconds
Powered by Kunena Forum