Jump to content

Quirks with creating provisioning modules that work with product addons


websavers

Recommended Posts

First, a tip. You can use a conditional like this to detect if the code is attached to a product addon or a straight up product. This is particularly handy for ClientArea output:

$is_addon = ( $params['addonId'] > 0 )? true:false;

(where $params is the variable passed to the function)

And now my issue. When the module is triggered from a product, it works great. However when it's triggered from a product addon, the $vars/$params passed to the function appear to be missing important values like 'serveraccesshash' and 'serverhostname'.

Is there something I'm missing? How can a provisioning module work without having access to its server's vars?

Any tips?

Jordan

Edited by jas8522
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