Jump to content

Get Service ID on Module Create


Jordan0361

Recommended Posts

4 minutes ago, pRieStaKos said:

Your data is in $vars

So $vars['serviceid'] would be correct right I believe?

Because it returns this:

array(1) {
  ["params"]=>
  array(52) {
    ["accountid"]=>
    int(14)
    ["serviceid"]=>
    int(14)
    ["addonId"]=>
    int(0)
    ["userid"]=>
    int(1)
    ["domain"]=>
    string(0) ""
    ["username"]=>
    string(0) ""
    ["password"]=>
    string(14) ""
    ["packageid"]=>
    int(1)
    ["pid"]=>
    int(1)
    ["serverid"]=>
    int(0)
    ["status"]=>
    string(6) "Active"
    ["qty"]=>
    int(1)
    ["type"]=>
    string(5) "other"
    ["producttype"]=>

And loads of other data, which will save the massive quote.

Unsure if this is due to the module I have chose, as just chose it to make tickets currently to save linking the correct module - this may be the reason why though.

Link to comment
Share on other sites

1 minute ago, Jordan0361 said:

So $vars['serviceid'] would be correct right I believe?

Because it returns this:


array(1) {
  ["params"]=>
  array(52) {
    ["accountid"]=>
    int(14)
    ["serviceid"]=>
    int(14)
    ["addonId"]=>
    int(0)
    ["userid"]=>
    int(1)
    ["domain"]=>
    string(0) ""
    ["username"]=>
    string(0) ""
    ["password"]=>
    string(14) ""
    ["packageid"]=>
    int(1)
    ["pid"]=>
    int(1)
    ["serverid"]=>
    int(0)
    ["status"]=>
    string(6) "Active"
    ["qty"]=>
    int(1)
    ["type"]=>
    string(5) "other"
    ["producttype"]=>

And loads of other data, which will save the massive quote.

Unsure if this is due to the module I have chose, as just chose it to make tickets currently to save linking the correct module - this may be the reason why though.

$vars[‘params’][‘serviceid’]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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