*

vansebas

  • ***
  • 35 posts
Get item category but not the subcategory but the main category?
« on: February 24, 2021, 09:14:59 PM »
On this documentation page:
https://docs.osclasspoint.com/hitems-php

It says that if you want to view the item category name you have to use the command:
osc_item_category($locale = “”) – Gets category from current item


Only with the above code you get the category the listing is in (the subcategory).
Would it also be possible to get with a command the main category where the subcategory falls under?