Jump to content

wtools

Members
  • Content count

    34
  • Joined

  • Last visited

Community Reputation

10 Good

About wtools

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I would like to know weather there is a way to override the TO email address of contact.php using a hook? Tried a lot of ways to change the TO address, but none of them worked. It should work for both client and guest.
  2. Hi, Is there anyway to block email sending to the master account when a ticket is opened by sub account (Contact added under the master account)? I tried using some hook, but couldn't get it working. Please help
  3. add_hook('ClientAreaPageHome', 1, function($vars) { $vars['clientsstats']['numactivetickets'] = 20; return $vars; }); This is the code I used, and it worked great.
  4. Hi, Is it possible to abort email to a master account for a ticket opened by it's sub account? I guess we can do it by using EmailPreSend, but not sure how to do it using the hook. Please help.
  5. Thanks , it helped me a lot.
  6. I tried to update ticket count using the below hook, but that's not working. add_hook('ClientAreaPrimaryNavbar', 1, function( Item $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Support'))) { $primaryNavbar ->getChild('Support') ->getChild('Tickets') ->setBadge(11); } }); I would like to set the ticket count in the client area home page to a diffrent value, how can i do that?
  7. Hi,

    I am integrating a payment gateway, which is working well.

    I used _link function.  And I update gateway_id with a token we got.

    Can we implement recurring payment with this thirdparty gateway?

    Any document link for that?

  8. Hi, I am integrating a payment gateway, which is working well. I used _link function. We can't use _capture. And I update gateway_id with a token we got. Can we implement recurring payment with this thirdparty gateway? Any document link for that?
  9. Hi, Is it possible to do mass payment of invoices using a payment gateway? What code we have to do for that? We have to add any function to the payment gateway file? Please help
  10. Hi, I would like to get all products that are not hidden in a specific group. We can use the blow API https://developers.whmcs.com/api-reference/getproducts/ But there is no option to pass hidden=0. When I go through templates/orderforms/standard_cart/products.tpl Can see that there are some nice way to access product prices like {$product.pricing.minprice.cycle} {$product.pricing.minprice.setupFee} {$product.pricing.minprice.price} How is it possible? I would like to pass all products details along with price to a tpl, so that i can simply access it just like whmcs is done in templates/orderforms/standard_cart/products.tpl. Can this be done using WHMCS\Product\Product;? Or using any API? Please help.
  11. Hi, It is possible to add a product to the WHMCS cart by using some internal class or API? Also is there any way to remove, list items in the cart by using internal class or API? If it's not possible, what's the possible way to do that now?
  12. I was trying to do an addon, in the addon php file, i used AdminDispatcher class as use WHMCS\Module\Addon\AddonModule\Admin\AdminDispatcher; And then tried to call functions of that class. But getting an error like Fatal error: Uncaught Error: Class 'WHMCS\Module\Addon\AddonModule\Admin\AdminDispatcher' not found I was able to fix it by adding require_once __DIR__ . '/lib/Admin/AdminDispatcher.php'; But this class file won't be auto loaded? What settings have to do for the autoload?
  13. I have a lang folder and many language files like english.php inside the folder. I can access the language arra from from my_module.php (my module name is my_module) correctly. Using $LANG = $vars['_lang']; But I can't access it from the hooks.php of the addon module. What's the way to access it?
  14. Yeah, What you said is correct. relid is 0. So a custom invoice item don't have to be associated with a product? Is there anyway to know which product is this invoice item related?
  15. Hi, When i go through the invoiceitems table, for some invoice details both type and relid are empty. Why it's happening? Is there anyway to know which product is this one item belongs to?
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines