Jump to content

leew87

Retired Forum Member
  • Posts

    29
  • Joined

  • Last visited

About leew87

leew87's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. hi i have tried the default tpl file that works even with my cost but even with the code working if i copy it make it does not display. which is why i am pulling my hair out clearly if it works on the default it should work on the custom. this code has been working for a very long which with no issue has there be any recent changes to the way it has to be coded?
  2. Hi Bear yes i have tried i have also tried using the curl via SSH this gives a 200 status. curl -o /dev/null -s -w "%{http_code}\n" https://billing.illit.co.uk/assets/img/illit/logo.png 200 but the logo still does not display for some great unknow reason.
  3. Hi all i am pulling my hair out i have a custom design invoicepdf.tpl it is not showing my logo i set for some reason it has been working for many years without issue but for some reason it is now not working no changes have been made or anything. i have checked the location using curl and it shows a 200 status so i know it is looking in the correct location it just will not display. i have tried to contact whmcs support that say its a custom invoicepdf.tpl issue so would need to find a developer to troubleshoot/help. can anyone help or even point me in the right direction of how i could attempt to troubleshoot this. the code im using is # Logo $logoFilename = 'placeholder.png'; if (file_exists(ROOTDIR . '/assets/img/illit/logo.png')) { $logoFilename = 'logo.png'; } elseif (file_exists(ROOTDIR . '/assets/img/illit/logo.jpg')) { $logoFilename = 'logo.jpg'; } $pdf->Image(ROOTDIR . '/assets/img/illit/' . $logoFilename, 15, 25, 75); i have other images added to my invoicepfd.tpl file with the same coding they work just fine without issue. i am at a bit of a lose. thank you all in advance for any help
  4. Ok thank you for taking the time to explain has the github script been edited to reflect or would I need to make the adjustment to change hook?
  5. hi thank you for your code when i contacted whmcs support before knowing i could post here they said the following There isn't a way within WHMCS, as it comes, to remove such description data. The data is stored in the tblinvoiceitems database table, which you will see is stored as: PRODUCT NAME (08/04/2022 - 07/05/2022) You would need to remove that from the table itself upon invoice generation, but before it's delivered to the client, via a hook like InvoiceCreation: https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#invoicecreation Capsule can be used to update the value: https://developers.whmcs.com/advanced/db-interaction/ A basic to intermediate knowledge of PHP would be required to achieve it. so from what i understand InvoiceCreation is where they recomend.
  6. thank you i will try and get my head around this and hopefully get it work new to development so all abit confusing for me where would i enter this hook code? sorry if it seems like a silly question i apologies. if you had this already written of course i would be very very greatful if you wished to share then one you have tested.
  7. i am looking for assistance to learn this myself and direction on resolve this issue rather than just outsourcing to custom development such little task which it was i thought this community was about not just paid work.
  8. hi All i am very new to development / WHMCS i am looking for a way to remove the dates from invoice description i am looking to for descriptions to go fromPRODUCT NAME (08/04/2022 - 07/05/2022) to PRODUCT NAME I have seen from some screenshots some of you have managed this but i dont no where to start with the code as far as i can work out i would need to edit the in invoice.tpl how would i go about editing this line of code nl2br($item['description'] in some way. i thank you all in advance for any assistance you maybe able to give.
  9. hi all i am looking for a quote for someone to modify my invoice that is both emailed and downloaded as PDF to show my bank details if the payment gateway is set to Bank Transfer. thanks all in advance regards Lee
  10. hi i wonder if someone would be intrested in carring out some minor edits on the Default invoice template that is used in the V5 Demo i am looking to add a footer very close to the bottom of page 1 around 5-10mm and a watermark behind the table in the invoice. i am also looking for status that is displayed in the right corner if the invoice is paid or unpaid ect only to display on all other status apart from Unpaid is this possiable? look forward to you replys pm me with Quotes or for more information thanks
  11. hi All i am currently using the same theme as the WHMCS demo that puts the coloured image over the right hand corner of the page to note the status of the invoice is it possiable to have the images display for all other status apart from unpaid. i have found the code in the invoicepdf.tpl that shows the status # Invoice Status $statustext = $_LANG['invoices'.strtolower($status)]; $pdf->SetFillColor(223,85,74); $pdf->SetDrawColor(171,49,43); if ($status=="Paid") { $pdf->SetFillColor(151,223,74); $pdf->SetDrawColor(110,192,70); }elseif ($status=="Cancelled") { $pdf->SetFillColor(200); $pdf->SetDrawColor(140); } elseif ($status=="Refunded") { $pdf->SetFillColor(131,182,218); $pdf->SetDrawColor(91,136,182); } elseif ($status=="Collections") { $pdf->SetFillColor(3,3,2); $pdf->SetDrawColor(127); } $pdf->SetXY(0,0); $pdf->SetFont('freesans','B',28); $pdf->SetTextColor(255); $pdf->SetLineWidth(0.75); $pdf->StartTransform(); $pdf->Rotate(-35,100,225); $pdf->Cell(100,18,strtoupper($statustext),'TB',0,'C','1'); $pdf->StopTransform(); $pdf->SetTextColor(0); but i can not see how to remove the Unpaid status from the loop thanks for any help in advance.
  12. i am looking for some custom WHMCS billing client development i would like public function Footer() edited in tcpdf.php so it only puts footer on the 1st page and not every page. 2nd i would like the invoice.tpl and quotepdf.tpl to show as attached(WHATIWANT.pdf) it is almost there it currently displays (WHMCSSAMPLE.pdf) it just need the watermark adjusting and sending to background. please PM me if you would like to see the PDF i mentioned as i will not let me upload these i get the following "Your submission could not be processed because a security token was missing. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error." or if you need anymore infomation do not hesitate to PM me and i will be happy to supply it thanks all in advance.
  13. where can i find the server status folder to view server Status in my WHMCS
×
×
  • Create New...

Important Information

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