Jump to content


Senior Member
  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Tapeix

  • Rank
    Level 2 Member
  1. Tapeix

    Woocommerce and WHMCS integration

    I see. Unfortunately you'll have to write an API yourself that connects both worlds with each other; OR make use of the default WHMCS shopping cart which I do.
  2. I'd like to adjust the WHMCS Cron Job Activity e-mail template. Does someone know what hook I can use to apply some css styling? Some issues I'm currently experiencing: > Logo max-width is set to 100%, instead of, lets say, 300px, causing our logo to be spread very wide across the mail template; > Button "View Full Summary" not aligned properly; > WHMCS branding is added (I mean, why? We pay for an unbranded license and still see WHMCS branding in the Cron Job Activity e-mail)
  3. That's amazing Steven! I've added the URL if-then-else and tried it in our live environment. I can confirm it works. <?php add_hook('ClientAdd', 1, function($vars) { $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $client = \WHMCS\User\Client::find($vars['userid']); try { if ($client) { if (strpos($url, 'CNAMEdomain.com') !== false) { $client->groupid = 3; $client->save(); } else /** Default group **/ { $client->groupid = 1; $client->save(); } } } catch (Exception $e) { //TODO error handler } }); p.s. where did you learn that ClientAdd doesn't support a return? I couldn't find it in the documentation.
  4. That's a great idea @brian! I've tried to write a little hook by myself. Unfortunately I couldn't get it to work. Any thoughts? <?php add_hook('ClientAdd', 1, function($vars) { return array( 'create' => true, 'groupid' => 3, ); } ); The URL if statement would look something like this: $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (strpos($url,'CNAMEdomain') !== false) { }
  5. I'd like to automatically assign a client to a Client Group during registration, based on the url OR template they're visiting. I've tried to find more information in the documentation, but I'm afraid there isn't much information about this subject either. Do know if Is it possible to: Set Client Group by adding a parameter to the url? I'm looking forward to your thoughts!
  6. Too bad the module cost 100$/year. IMO too expensive.
  7. Tapeix

    Woocommerce and WHMCS integration

    Yes, indeed. I was working with it but it isn't supported for a long time. Too bad. I hope they will release an open source at Github.
  8. Doesn't work for me. I have tried the following: - Temporarily remove all hooks, except yours (duh ) - Deactivate modules - Use the default SIX template I can confirm your code works on a fresh installation, though.
  9. Tapeix

    New Admin Theme - In Progress

    Nice job. Please ensure it is responsive before you'll release it; that will make a huge difference compared to others.
  10. Same problem. The hook results in an infinite loop of redirects.
  11. Great solution, Brian! The costs are a pa!n in the a$$ for small entrepreneurs, but it might be worth the costs if you really need it.
  12. Is it me or it simply doesn't work? I have enabled your hook by inserting the above code in /includes/hooks using WHMCS 7.1.1 with ?systpl=six to be sure it isn't my template breaking your hook. All languages are still showing up.
  13. Seems to be a problem with Cloudflare. Fixed by turning Cloudflare CDN off.

Important Information

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