Jump to content

ericdstrom

Member
  • Posts

    5
  • Joined

  • Last visited

About ericdstrom

ericdstrom's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hello, I have an addon module that doesn't seem to be running the output function for the admin area. I have my addonname_config(), addonname_activate(), and addonname_deactivate(), all of which seem to be working. The addonname_output( $vars ) function doesn't seem to be running at all. The module just produces an h1 tag with the module name in it. The strange thing is that it works on one installation of WHMCS and when installed on another, that function produces no output. Is there anything that would be preventing that function from running in WHMCS?
  2. The only thing in there related to custom fields is "$customfields = $params["customfields"];" on line 29.
  3. Even the documentation there is a little vague on custom options and custom fields. "customfields this variable contains a sub-array of all the custom fields defined for the product, with the key being the custom field name - $params[‘customfields’][‘Field Name’]" It shows how those variables get passed to each function, but doesn't allow you an area to define these options, or am I missing something here?
  4. Hello, I'm working on a module and need to create a new product either on or around the time of activation. This product needs to have some configurable options associated with it. The problem I'm having is that the API documentation only says that you can specify configoption1, configoption2, etc. It doesn't actually give what the proper syntax is for specifying these things. If anyone has any idea what the proper array structure for this would be, it would be a huge help. Thanks!
  5. Hello, I'm developing a WHMCS addon and can't seem to find an answer to what seems like should be something simple. I have my output going to an admin page and need to include a javascript file. When I put in the script tags and give it a src to what seems like should be the file, it returns a 404. Is there a variable or anything that WHMCS has that defines the path of an addon? The path that I'm using is "/modules/addons/my_module_name/js/scripts.js". Thanks for your help.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated