I am trying to tweak a module based on Joomshopping, a shopping cart extension. The module is called "mod_jshopping_categories", I want to add a field that is a dropdown list of the product categories into the module's admin page. Here is what I added to the .xml file:
<field
name="Parent Category"
type="category"
default="0"
label="Parent Category"
description="Put in category"
extension="com_jshopping">
</field>
However, on the back end the dropdown list is empty. To test, I change "com_jshopping" to "com_content", the back end correctly shows a list of article categories.
According to the documentation
type (mandatory) must be category.
extension (mandatory) is the name of the extension for which the categories will be retrieved. For example, to list content categories, use the value 'com_content'.
Does this mean there is no "category" in com_jshopping for the module to retrieve?
On the other hand, as a shopping cart extension, com_jshopping does have product categories. So how is this category
defined programmatically?
Do I need to create a custom field type to retrieve com_jshopping's categories?