rahulkg
Retired Forum Member-
Posts
63 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by rahulkg
-
Hi Brian, But I see the word 'Array' got displayed n order confirmation page , and I didnt want to return any html content to the complete.tpl (because I need these values to insert in a review script code , not just for showing like that as you written there ), I just need clientdetails firstname, lastname, orderid and email in complete.tpl file. and got all these values displayed in order confirmation page but now just need to get rid of the word 'Array' showing there. (Its the only thing I needed now) ( Also I know why it shows Array because of following code {foreach $addons_html as $addon_html} <div class="order-confirmation-addon-output"> {$addon_html} </div> {/foreach} and I got rid of 'Array' by changing above code to {foreach $addons_html as $addon_html} {foreach $addon_html as $item} <div class="order-confirmation-addon-output"> {$item} </div> {/foreach} {/foreach} ( Here its clear that my returned array values are collected in $addon_html variable and I need to foreach it again like above to avoid that issue . But what I afraid is whether this modification will create any issue in order confirmation page ? and I also what I wonder is that why the returned array values from hook get collected in the array variable $addon_html ?
-
Hi, I just wanted to show some clientdetails in orderconfirmation page (complete.tpl) . For this I wrote a hook like this function reviewCode($vars) { $extraTemplateVariables = array(); $extraTemplateVariables['orderid']=$vars['orderid']; $extraTemplateVariables['fn']=$vars['clientdetails']['firstname']; $extraTemplateVariables['lt']=$vars['clientdetails']['lastname']; $extraTemplateVariables['em']=$vars['clientdetails']['email']; return $extraTemplateVariables; } add_hook("ShoppingCartCheckoutCompletePage", 1, "reviewCode"); and tried to display in orderconfirmation page using {$clientdetails.firstname} and I got it displayed. but I see 'Array' there. when checking I see it comes from whmcs code {foreach $addons_html as $addon_html} <div class="order-confirmation-addon-output"> {$addon_html} </div> {/foreach} why it so ? why returning array containing values in ShoppingCartCheckoutCompletePage hook affect the foreach code ? and it seems like the returned values get collected in $addons_html variabkle. so what to be done to remove the Array showing in the orderconfirmation page?
-
About showing bank details in invoicepdf in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
ok its a useful information . Its working fine, Thank you very much. -
About showing bank details in invoicepdf in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi Brian , But the code breaks when whmcs upgraded to 7.8.3. even after adding use WHMCS\Database\Capsule; $banktransfer = Capsule::table('tblpaymentgateways')->where('gateway','banktransfer')->where('setting','instructions')->value('value'); line after php opening tag it says "OOPS error message". Could you please check and update me. -
About showing bank details in invoicepdf in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Its working and thank you. -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Its working and thank you. -
About showing bank details in invoicepdf in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Not understand fully, you mean add bank details in payto textarea in whmcs General settings->General tab. So it will display in invoicepdf if and only if the clients payment gateway is banktransfer ? or to achieve this (to show bank details if the client's payment gateway is banktransfer and otherwise not just as in viewinvoice) any condition to be written in invoicepdf file. please clarify this also. Currently what I added is $pdf->writeHTML($payto, true, false, false, false, ''); in our invoicepdf file but it outputs our address instead of bankransfer. -
About showing bank details in invoicepdf in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi Brian, But in the link , https://whmcs.community/topic/291657-edit-pdf-adjust-logo-add-bank-details/ you manually input the bank acc no: but what I actually need is the bank address, bank axccount no, IBAN etc should come automatically in every invoice pdf just as view invoice page viewinvoice.php?id=xxxx&view_as_client=xxx what should be the code for that and how to modify invoicepdf.php file to add bank details. please give me a solution. -
Hi, In whmcs when we view an invoice as a client from admin side, it shows all the details of bank transfer , but if you download the invoice , it wont show all the bank details in pdf; so how can we modify the download pdf of invoice and incorporate all bank details same as that invoice shown when view as client . Please let me know how to do this?
-
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi Brian , Now I feel its more helpful when we can search by date. But in which file I had to add the date picker and how should we can incorporate datepicker and use it for selecting between two dates. which files I needed to edit . please explain. -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi Brian, It looks good, but I also need to be able to filter using a date range. And how could this be possible? -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi brian, I talk about whmcs admin side-you know that in admin side, an admin can view a client's invoice in /invoices.php?action=edit&id=xxxx page. ( We dont want anything to show clients or send them anything) . In this page an admin can see the details of invoice like what are the invoice items. And we need to give links to services of invoice items there. so that an admin can easily navigate to the services pages from the invoice items shown in that page . And as we have a lot of invoices its quite easy for admins to check any services in the invoice page by clicking that service and going to that particular service page. -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
But I need that particular invoice id, whether it is a server or not , and if and only if it s a server, I need hosting id of that service in the invoice and userid of that invoice, (only then I can write the link to direct him to that particular service But hook AdminAreaHeaderOutput doesnt provide this details, Also the description under invoice items in invoices.php?action=edit&id=xxxx page ( also please let me know the file name of this page) is given in a textarea, so how should I prepend a href to only server name shown there. -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
I see the invoice items and under its description I see many servernames there . What actually I need is to add links to those server names and make it clickable , so on clicking a servername shown in that page. it automatically directs to that server page. so please explain how can it be done. -
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
Hi, I need to know the template file associated with invoices.php?action=edit&id=xx (whmcs admin side page) Also Please let me know how additional info about a product to be passed to this template file. so that I can try working for this. -
Can you please let me know if unsusbcribing mailchimp on whmcs clientarea ->My details section ( as in screen shot ) doesnt get removed from the mailchimp list , why ? I asked about this before https://requests.whmcs.com/topic/mailchimp-join-list-option-no-not-working-on-whmcs-clientarea-edit-account-details Is this case same as CORE-11819 ? Are you working on it?
-
But this seems like like a reconciliation module only not the actual payment method and when enquired about it with their module providers, no reply yet. And also It seems we need a borderless account for that module then we get the money to that virtual account balance in trnasferwise not directly to our bank then from transferwise balance not sure how we can transfer it to our bank , so I think that is not what we are looking for and I think we can only do it as an instruction from the invoice like the Bank transfer instuction. can you please advice in this case.
-
Can we have a transferwise module for our payment method in WHMCS and Using this clients can pay invoices using their credit card or debit card and will send it directly to our Bank. If we can't get a module Can we create some instruction in to the invoice and make transaction to our bank account ? please give us a reply.
-
About custom search for services in invoice in whmcs
rahulkg replied to rahulkg's topic in Developer Corner
ok thank you very much for the reply, but please let me know if I choose the first method -how can it be done, I see the invoice.tpl fetches the info from an encrypted php file and so how do I get the data or how to modify it? or if I am using a hook as you said in 3rd solution, how can it be done using hook-I mean which hook I need to choose and how can I edit the invoice shown in admin side from inside hook? can you provide a sample hook ? -
When we view a particular invoice in whmcs , is it possible to click the services in the invoice description and it directs to that service details . ( I mean when we search a particular service in the search bar above in whmcs admin side we get directed to that particular service page in whmcs admin side) and similarly , can we show the services /products included in the invoice page with links and on clicking them direct to that particular service page? ( ie I mean We need to be able to locate a product/service when viewing some invoice, so it goes directly to that service that is related to a particular invoice.)
-
But Our ssd hosting works with our railgun partners page but without thecloudflare module it won't work, but now ascloudflare is not having new updates and it ceased its production, what should we do? Please advice and help us.
-
We are using whmcs 7.7 version and php 7.2 version and the cloudflare module you have provided is the one we used but its not working with php 7.2 and whmcs 7.7 . That's why I asked whether any third part module providers can help us in this matter as ur ssd hosting works with our railgun partners page but without thecloudflare module it won't work,
-
we need a cloudflare module where we can add the domains in our partners.cloudflare.com for our hosting service that will be using railgun. should whmcs consider developing this addon module?
-
Our ssd hosting works with our railgun partners page but without the cloudflare module it won't work, but now as cloudflare is not having new updates and it ceased its production, what should we do? Please advice and help us.
-
about developing addon to search service in whmcs admin side
rahulkg replied to rahulkg's topic in Developer Corner
Please let me know whether we can provide a search option for services inside whmcs
