Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

10 Good

About wtools

  • Rank

Recent Profile Visitors

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

  1. 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.
  2. 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?
  3. 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?
  4. 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?
  5. 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?
  6. 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?
  7. wtools

    The "EmailPreSend" hook

    Yes it's possible. Did you try with $merge_fields['abortsend'] = true; ?
  8. Hi, Is there a way to block emails if the customer is paying using a specific gateway? If we can do it using a hook, that would be great. Please let me know some way to do it.
  9. Hi, We can create custom functions easily by following the link https://developers.whmcs.com/provisioning-modules/custom-functions/. When ever we click on the custom function, i would like to display a confirm box. like 'Are you sure?' How can we do that? For the default functions like CreateAccount, confirm box is there already. But it's not there for the custom function, how can we implement that?
  10. I have some custom fields(drop down) fro the products and those custom field details are stored in the table tblcustomfields I can see that there is a field fieldoptions, which stores drop down values as a comma separated list like 1,2,3 etc. in this case we will see 1,2 and 3 in the drop down like <option value="1">1</option><option value="2">2</option><option value="3">3</option> Is it possible to populate a custom field dropdown as key value pair? So that the customer will see keys and while submiting the form , diffrent values will be posted. So the final html should be <option value="1">user1</option><option value="2">user2</option><option value="3">user</option>. Is it possible?
  11. wtools

    Add a existing domain to WHMCS customer

    Actually domains were registered earlier, now they want to just add the domains under the clients in the WHMCS.
  12. Hi, One of our clients started using WHMCS. Now they want to add customers domains to their account for billing purpose. Those domains were already registered earlier. How can we do that?
  13. So, 1. i go https://<mywhmcs>/admin 2. go Setup 3. Administrator Users 4. Edit any user, like first.last (username with a dot in it) Sales Operator 5. check unselected Assigned Departments 6. click by Save Changes and have an error: Validation Error The username must be alphanumeric characters only
  14. Hi, When i assign a customer to a department from the admin side, i am getting the below error. Validation Error The username must be alphanumeric characters only If i change username from something like zzzzzz.ggggggg to zzzzzzggggggg (no dot here) the assignment works well. So can assign user names like that to some department without an error?

Important Information

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