Jump to content

Identify a product/service.


tiagocaus

Recommended Posts

I would like to perform an action, only for a selected product.


At the time the order is placed by the site or the admin, justify the selected product and take action.

 

add_hook('PreModuleCreate', 1, function($vars)
    {
      $return = [];
      
      if ($vars['packageid'] == 119 OR $vars['packageid'] == 94) {
        //
        // Code
        //
      }
      
      return $return;
    }
);

 

 

Admin Order:

image.png.ba68873ce735861e7cfdbe1246c1ca61.png

 

 

Admin > Client Profile > Products/Services

image.thumb.jpeg.ec9241342eff223137cae02b53a68276.jpeg

 

 

Order by site

image.png.ea7496d5bbdd515ed5faed86e32fda3c.png

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