Jump to content

hanstavo

Members
  • Content count

    26
  • Joined

  • Last visited

  • Days Won

    1

hanstavo last won the day on October 22 2018

hanstavo had the most liked content!

Community Reputation

11 Good

About hanstavo

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. hanstavo

    Invalid tax percentage error

    Sorry I forgot to include that. I am not using any new modules that is mew since it was working. I am using a modified version of standard cart. And a customized template I got from the whmcs marketplace (supreme host) by zomex. Thank you for your reply.
  2. hanstavo

    Invalid tax percentage error

    @WHMCS ChrisD I even tried complete reinstall I dont understand WHAT IS HAPPENING??? I didnt reinstall the templates though. or hooks although I did remove hooks to see if it was in a hook....It wasnt! I tried purging both site cache and browser cache
  3. hanstavo

    Invalid tax percentage error

    @WHMCS ChrisD That didn't work I also reinstalled the includes directory I tried creating level 1 and 2 tax percentage, but still no change still says the exact same stack trace
  4. hanstavo

    Invalid tax percentage error

    @WHMCS ChrisD Could this be in the validation.php file? Just thinking back, I had a issue with some validations awhile back and I replaced that file. I maybe got the wrong version of the file.
  5. When I tried to do a test checkout I realized that I cant continue. I get an error about invalid tax percentage, but I don't even have tax setup. I am using WHMCS 7.4.2 I get the error no matter what payment gateway, and I have tried a fresh install of the checkout.tpl file and a bunch of other files that is included on multiple pages such as common and the sidebars. When I enable error reporting, I get the following stack trace: WHMCS\Exception\Billing\BillingException: Invalid tax percentage: in /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php:0 Stack trace: #0 /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php(0): WHMCS\Billing\Tax->validateTaxPercentage(NULL) #1 /home/myuser/public_html/includes/invoicefunctions.php(0): WHMCS\Billing\Tax->setLevel1Percentage(NULL) #2 /home/myuser/public_html/includes/processinvoices.php(0): updateInvoiceTotal(0) #3 /home/myuser/public_html/includes/processinvoices.php(0): createInvoicesProcess(false, true, '') #4 /home/myuser/public_html/includes/orderfunctions.php(0): createInvoices(1, true, '', Array) #5 /home/myuser/public_html/cart.php(0): calcCartTotals(true) #6 {main}
  6. hanstavo

    disable View Button when cart is empty

    You could do the above, but if you want to show the button but have it disabled then you could do the below <li class="primary-action"> <a href=" {$WEB_ROOT}/cart.php?a=view" class="btn" {if $numitemsincart > 0}disabled{/if}> {$LANG.viewcart} </a> </li> also its not entirely possible to do this as a admin panel item checkbox by using hooks or using the affilate links enable checkbox, like I do.
  7. hanstavo

    Invalid tax percentage on checkout

    FYI tbltax doesnt have anything in it if this is neccessary: MySQL returned an empty result set (i.e. zero rows). (Query took 0.0005 seconds.) SELECT * FROM `tbltax` Here is tblproducts: Showing rows 0 - 0 (1 total, Query took 0.0003 seconds.) SELECT * FROM `tblproducts` id type gid name description hidden showdomainoptions welcomeemail stockcontrol qty proratabilling proratadate proratachargenextmonth paytype allowqty subdomain autosetup servertype servergroup configoption1 configoption2 configoption3 configoption4 configoption5 configoption6 configoption7 configoption8 configoption9 configoption10 configoption11 configoption12 configoption13 configoption14 configoption15 configoption16 configoption17 configoption18 configoption19 configoption20 configoption21 configoption22 configoption23 configoption24 freedomain freedomainpaymentterms freedomaintlds recurringcycles autoterminatedays autoterminateemail configoptionsupgrade billingcycleupgrade upgradeemail overagesenabled overagesdisklimit overagesbwlimit overagesdiskprice overagesbwprice tax affiliateonetime affiliatepaytype affiliatepayamount order retired is_featured created_at updated_at 1 other 1 name 0 0 18 0 0 0 0 0 recurring 0 0 0 0 0 0 0 0 0 0.0000 0.0000 0 0 0.00 1 0 1 2018-06-30 19:08:36 2018-06-30 19:08:36 Here is tblpricing: Server: localhost:3306 »Database: tagpo378_site »Table: tblpricing # Name Type Collation Attributes Null Default Comments Extra 1 id int(10) No None AUTO_INCREMENT 2 type enum('product', 'addon', 'configoptions', 'domainr... utf8_unicode_ci No None 3 currency int(10) No None 4 relid int(10) No None 5 msetupfee decimal(10,2) No None 6 qsetupfee decimal(10,2) No None 7 ssetupfee decimal(10,2) No None 8 asetupfee decimal(10,2) No None 9 bsetupfee decimal(10,2) No None 10 tsetupfee decimal(10,2) No None 11 monthly decimal(10,2) No None 12 quarterly decimal(10,2) No None 13 semiannually decimal(10,2) No None 14 annually decimal(10,2) No None 15 biennially decimal(10,2) No None 16 triennially decimal(10,2) No None Lastly, Here is tblorders: Showing rows 0 - 3 (4 total, Query took 0.0005 seconds.) SELECT * FROM `tblorders` 16 3447661239 2 0 2018-08-08 02:51:23 a:0:{} 60.00 paypal 15 Active removed 35 3946733284 6 0 2018-10-21 14:54:35 a:0:{} 0.00 mailin 0 Active removed 43 7730900826 1 0 2018-10-28 10:36:01 a:0:{} 5.00 mailin 0 Cancelled removed 44 1455563463 1 0 2018-10-28 10:42:58 a:0:{} 5.00 paypal 0 Pending removed Note: I did remove some stuff when posting here that i cant make public I posted the databases because they are the easiest way to show configuration settings Therefore I am Posting one final database: tblconfiguration: Showing rows 0 - 24 (249 total, Query took 0.0005 seconds.) SELECT * FROM `tblconfiguration` Im Only posting part of it because of how large it is: setting value created_at updated_at InvoiceLateFeeAmount 3.00 0000-00-00 00:00:00 2018-10-22 13:16:34 AutoTermination 0000-00-00 00:00:00 0000-00-00 00:00:00 AutoTerminationDays 30 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminFirstName 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminLastName 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminCompanyName 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminAddress1 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminAddress2 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminCity 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminStateProvince 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminCountry US 0000-00-00 00:00:00 2018-06-30 17:53:45 RegistrarAdminPostalCode 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminPhone 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminFax 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminEmailAddress 0000-00-00 00:00:00 0000-00-00 00:00:00 RegistrarAdminUseClientDetails 0000-00-00 00:00:00 2018-06-30 17:53:45 Charset utf-8 0000-00-00 00:00:00 0000-00-00 00:00:00 AutoUnsuspend on 0000-00-00 00:00:00 0000-00-00 00:00:00 RunScriptonCheckOut 0000-00-00 00:00:00 0000-00-00 00:00:00 License My License Key 0000-00-00 00:00:00 2018-10-24 01:59:44 OrderFormTemplate standard_cart 0000-00-00 00:00:00 0000-00-00 00:00:00 AllowDomainsTwice on 0000-00-00 00:00:00 0000-00-00 00:00:00 AddLateFeeDays 5 0000-00-00 00:00:00 0000-00-00 00:00:00 TaxEnabled 0000-00-00 00:00:00 0000-00-00 00:00:00 DefaultCountry US 0000-00-00 00:00:00 0000-00-00 00:00:00 OrderFormSidebarToggle 1 0000-00-00 00:00:00 0000-00-00 00:00:00 AutoRedirectoInvoice gateway 0000-00-00 00:00:00 0000-00-00 00:00:00 EnablePDFInvoices on 0000-00-00 00:00:00 0000-00-00 00:00:00 CaptchaSetting on 0000-00-00 00:00:00 2018-07-01 00:42:29 SupportTicketOrder ASC 0000-00-00 00:00:00 2018-10-17 20:06:52 SendFirstOverdueInvoiceReminder 1 0000-00-00 00:00:00 0000-00-00 00:00:00 TaxType Inclusive 0000-00-00 00:00:00 2018-06-30 20:46:48 DefaultNameserver3 0000-00-00 00:00:00 0000-00-00 00:00:00 DomainDNSManagement 5.00 0000-00-00 00:00:00 0000-00-00 00:00:00 DomainEmailForwarding 5.00 0000-00-00 00:00:00 0000-00-00 00:00:00 InvoiceIncrement 1 0000-00-00 00:00:00 0000-00-00 00:00:00 ContinuousInvoiceGeneration 0000-00-00 00:00:00 0000-00-00 00:00:00 AutoCancellationRequests on 0000-00-00 00:00:00 0000-00-00 00:00:00 SystemEmailsFromName My Company Name 0000-00-00 00:00:00 2018-07-01 00:39:56 SystemEmailsFromEmail me@mysite.tld 0000-00-00 00:00:00 2018-10-22 13:51:16 AllowClientRegister on 0000-00-00 00:00:00 0000-00-00 00:00:00 BulkCheckTLDs .com,.net 0000-00-00 00:00:00 0000-00-00 00:00:00 OrderDaysGrace 0 0000-00-00 00:00:00 0000-00-00 00:00:00 CreditOnDowngrade on 0000-00-00 00:00:00 0000-00-00 00:00:00 AcceptedCardTypes 0000-00-00 00:00:00 2018-10-22 13:15:10 TaxDomains 0000-00-00 00:00:00 2018-06-30 20:46:48 TaxLateFee 0000-00-00 00:00:00 2018-06-30 20:46:48 PremiumDomains 0 2018-06-30 12:16:08 2018-06-30 12:16:08 ProductMonthlyPricingBreakdown 0000-00-00 00:00:00 0000-00-00 00:00:00 LateFeeType Fixed Amount 0000-00-00 00:00:00 2018-10-22 13:16:34
  8. Can Someone Please help me? When I tried to do a test checkout I realized that I cant continue. I get the following error, but I don't even have tax setup. I am using WHMCS 7.4.2 Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. If the problem persists, please contact us. « Back to Homepage For additional assistance, please reference the WHMCS TroubleShooting Guide » WHMCS\Exception\Billing\BillingException: Invalid tax percentage: in /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php:0 Stack trace: #0 /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php(0): WHMCS\Billing\Tax->validateTaxPercentage(NULL) #1 /home/myuser/public_html/includes/invoicefunctions.php(0): WHMCS\Billing\Tax->setLevel1Percentage(NULL) #2 /home/myuser/public_html/includes/processinvoices.php(0): updateInvoiceTotal(0) #3 /home/myuser/public_html/includes/processinvoices.php(0): createInvoicesProcess(false, true, '') #4 /home/myuser/public_html/includes/orderfunctions.php(0): createInvoices(1, true, '', Array) #5 /home/myuser/public_html/cart.php(0): calcCartTotals(true) #6 {main}
  9. Is it possible to have the affiliate links on different pages such as the homepage? I tried writing a hook but it is never called the smarty value. <php add_hook('ClientAreaHeadOutput', 1, function($vars) { require_once "includes/affiliatefunctions.php"; include_once "includes/ticketfunctions.php"; $smarty = new Smarty(); $affiliatelinkscode = html_entity_decode($CONFIG['AffiliateLinks']); $smarty->assign("affiliatelinkscode", $affiliatelinkscode); }); ?>
  10. hanstavo

    Wrong date format

    That doesn’t work, it just makes the whole email template disappear and send it in plain text... It might help to note that 1) I am using version 6.4 not 7.4, and that I am using the main email header (In general settings) Also is the a {smarty.now|date_format} That can use this date format as smarty.now for yours isnt working. I solved it with: {php} echo date("l, F dS, Y", time()); {/php}
  11. hanstavo

    Wrong date format

    That doesn’t work, it just makes the whole email template disappear and send it in plain text... It might help to note that 1) I am using version 6.4 not 7.4, and that I am using the main email header (In general settings) Also is the a {smarty.now|date_format} That can use this date format as smarty.now for yours isnt working.
  12. So If I use the hook you said, it will work even if I don't manualy marke invoice as paid but only do if I manually (or automatically) approved the order? Because currently it only is working when I manualy mark invoice as paid.
  13. hanstavo

    Wrong date format

    Thank You! And yes I did mean v7.6 sorry.
  14. hanstavo

    Wrong date format

    Im in whmcs 4.6 and when using the {$date} I have date format set to Monday January 1st, 2018 but it comes out as Monday 1st January 2018
×

Important Information

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