tiagocaus Posted July 30, 2019 Share Posted July 30, 2019 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: Admin > Client Profile > Products/Services Order by site 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.