Jump to content

brian!

Honored Contributor
  • Content count

    12,196
  • Joined

  • Last visited

  • Days Won

    424

brian! last won the day on February 17

brian! had the most liked content!

Community Reputation

2,391 Excellent

About brian!

  • Rank
    Senior Member

Recent Profile Visitors

29,099 profile views
  1. brian!

    Stripe "Uncaptured" Payments

    let me correct that for you... 🙂
  2. HI @sol2010 the problem you have here is that an invoice email only has limited information for the current invoice - so there would be no $invoices array for you to loop through. for an invoice with multiple transactions, the email template should have access to the last transaction details, but that's not enough for your purpose as you want details of all transactions. therefore, you're going to need an EmailPreSend hook to pull those transaction details from the tblaccounts table for the specific invoice - in an EPS hook, and for an invoice-type template, the relid value would equal the invoice ID value... and that is the value you would use to search for in the table... probably, it would be useful for the hook to only return the transactions array if it finds more than one occurrence in its database query. so that hook should give you a transactions array, and then it's just a case of looping through the array in the template and outputting as you want to.
  3. brian!

    Confused about new Paypal Checkout and Subscriptions

    https://docs.whmcs.com/Changelog:WHMCS_V7.9.2
  4. brian!

    Stripe "Uncaptured" Payments

    it's only been out a day or two - give it time.
  5. if you know the invoiceid, then you could look at the tblinvoiceitems database table, if the type = 'Hosting', then the relid value should equal the service ID. though bear in mind that an invoice could contain multiple services, so you might need to be more specific in the query if you have some specific product/service to look for. an alternative would be to use the Billing model (if you're more familiar with that).
  6. brian!

    cPanel Account Login

    https://docs.whmcs.com/Products_Management
  7. brian!

    Notification Bar in WHMCS

    two options, you could either use OR or in_array - OR is ok if you only have two values to test against, but once you get beyond two, then it's simpler to use in_array. if (in_array($serviceID, array('573','600'))) {
  8. brian!

    Notification Bar in WHMCS

    then you wouldn't use this hook, you would instead use ClientAreaProductDetailsOutput hook and specify what output occurs with specific service(s). <?php add_hook('ClientAreaProductDetailsOutput', 1, function($service) { $serviceID = $service['service']->Id; if ($serviceID == '600') { $output .= '<div class="alert alert-success" role="alert"><div class="row"><div class="col-sm-1"><i class="fab fa-whmcs fa-3x"></i></div><div class="col-sm-11">Welcome to WHMCS!<br><small>buy the addon!</small></div></div></div>'; } if ($output) { return $output; } }); it's worth noting that the location of this specific hook output is determined by the Smarty template and not the hook itself - if you were displaying MarketConnect banners on that page, it would display below them. if you have an unpaid/overdue invoice, then there is a default alert shown at the top of the page... ... but that output is specified in the template itself and only triggered if/when hardcoded conditions are passed to the template. if you wanted to output your alert elsewhere on the page, you would be looking at either editing the template to define exactly where the output should be (you could still trigger it, and specify it's content, with a hook), or using another output hook, containing JS to specify the exact location of the output (though can be difficult depending on where you want to output).
  9. i'd go along with that suggestion...
  10. have you looked in Marketplace ? WHMCS doesn't really have an SMS option, so you're immediately looking at third-party options... in fact, even if you had mentioned email, I don't think that the email marketer could do what you want (specifically determining that it was a first order) - so then you'd be looking at finding an existing solution or coding to determining when to send the message.
  11. if you go to setup -> general settings -> other ... is the "Allow Client Registration" unticked ? https://docs.whmcs.com/Other_Tab#Allow_Client_Registration if it is unticked, then what you see would be normal... if it were ticked, then the register link should appear in both the navbar and the header.
  12. brian!

    Help with SSL URL

    rename your existing /templates/six/js/scripts.min.js file and then upload the attached file - you may need to do a hard refresh in the browser, e.g CTRL + F5 on Firefox, to ensure that it's using the updated file. this is tested as working on the v7.9.1 dev - I don't have a product group #5, so it's redirecting to cart.php instead, but it's definitely not going to the SSL page. if it doesn't work, let me know. 🙂
  13. 125 votes is reasonably high for a feature request... thought that's no guarantee of anything being done about it.
  14. I don't think it's a unique situation - in some circumstances, it would be less hassle than letting some users loose on cPanel and the "ooh what does this button do" attitude... 😱 are you anticipating using WHMCS to send invoices and/or invoice / domain reminder emails to the end user? in WHMCS - no point having a horse and pulling the cart yourself. 🐎 in WHMCS, you (as an admin) could add an order... https://docs.whmcs.com/Order_Management#Placing_an_Order I don't think that you really need to think about syncing from this point on - the SST has imported your existing accounts into WHMCS, and if in the future you create your cPanel accounts via WHMCS, there should be no need to sync the two. all WHMCS accounts need to use a unique email address - there are workarounds, but you shouldn't need to overcomplicate the account creation process that way. in your situation, if you don't want the users to know about WHMCS, then for account creation purposes, you could use your own domain and a wildcard email address, e.g client1@domain.com, client2@domain.com or whatever - that way, you should get any emails generated by WHMCS... though individual email templates can be disabled, so you could ensure that most emails to clients never got sent anyway. if you create their account in WHMCS, then you can choose not to send WHMCS account creation emails during setup - the user wouldn't receive a cPanel account creation email when a cPanel account setup via WHMCS... they could optionally receive a product welcome email, but these can be disabled in the product setup and/or email templates setup. it might be useful for you to go through the admin ordering workflow, e.g if you have a test client account within your WHMCS, add an order for a cPanel product from WHMCS and use it to create an account on the WHM server. https://docs.whmcs.com/Order_Management#Accepting_Pending_Orders you will be able to delete the account either via WHMCS or WHM - though ideally do it through WHMCS, otherwise if you delete via WHM, WHMCS won't know.
  15. brian!

    Deactivating 2CheckOut

    I agree that it's not ideal, but I had to do something similar when I setup the v7.9.1 dev as the db contained references to the deprecated PayPal Express gateway, and I was unable to remove it via the gateway pages because I assume there were no files present - so I ended up just manually removing references to it in the above db table.
×

Important Information

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