hazimdds Posted September 22, 2016 Report Share Posted September 22, 2016 Hello, How to disable the ability to add fund from the client area it show make a payment without any invoice if it possible to hide make payment when there is no Invoice in the account. Quote Link to comment Share on other sites More sharing options...
1 Blesta Addons Posted September 23, 2016 Report Share Posted September 23, 2016 2 hours ago, hazimdds said: Thanks For Replay , Ok i like to hide it within the code If there any hint or place to start from, it is a big application (Blesta) it will take some time to look to the code. open file app\views\client\bootstrap\client_invoices.pdt qoute this line // array('name'=>$this->_("ClientInvoices.index.categorylink_make_payment", true), 'attributes'=>array("href"=>$this->base_uri . "pay/")) hazimdds and Michael 2 Quote Link to comment Share on other sites More sharing options...
1 Michael Posted September 23, 2016 Report Share Posted September 23, 2016 8 minutes ago, hazimdds said: Thakns man it work Realy Great and Fast Help if please more help how to change or Hide mention of 'credits' in the client area like the attached image Go to: /app/views/client/themename/client_main_myinfo.pdt Remove: <div class="amounts"></div> And <?php $this->Javascript->setInline(' $(document).ready(function() { fetchCurrencyAmounts("' . $this->Html->ifSet($contact->settings['default_currency']) . '"); $(".col-md-3 .amounts").on("click", "a", function() { fetchCurrencyAmounts($(this).attr("id")); return false; }); }); function fetchCurrencyAmounts(currency) { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_uri . "main/getcurrencyamounts/") . '" + currency, null, function(data) { if (data) $(".amounts").html(data); }, null, {dataType:"json"}); } '); ?> hazimdds 1 Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted September 22, 2016 Report Share Posted September 22, 2016 Blesta doesn't currently have an option to deny accepting payments unless they are for specific invoices. A customer could add a payment now for something like a renewing service later (i.e. pre-pay), and Blesta will treat it as a credit on their account. However, it is possible to hide the "Make Payment" button, but it would require you to update a core template in the source code. To otherwise forcefully deny payments from customers would require additional logic to be added. hazimdds and Abdy 2 Quote Link to comment Share on other sites More sharing options...
0 Abdy Posted September 23, 2016 Report Share Posted September 23, 2016 I don't understand why you want disable this option, Is really useful for some clients. Only my opinion. hazimdds and Michael 2 Quote Link to comment Share on other sites More sharing options...
0 hazimdds Posted September 23, 2016 Author Report Share Posted September 23, 2016 9 hours ago, Tyson said: Blesta doesn't currently have an option to deny accepting payments unless they are for specific invoices. A customer could add a payment now for something like a renewing service later (i.e. pre-pay), and Blesta will treat it as a credit on their account. However, it is possible to hide the "Make Payment" button, but it would require you to update a core template in the source code. To otherwise forcefully deny payments from customers would require additional logic to be added. Thanks For Replay , Ok i like to hide it within the code If there any hint or place to start from, it is a big application (Blesta) it will take some time to look to the code. Quote Link to comment Share on other sites More sharing options...
0 hazimdds Posted September 23, 2016 Author Report Share Posted September 23, 2016 9 hours ago, naja7host said: open file app\views\client\bootstrap\client_invoices.pdt qoute this line // array('name'=>$this->_("ClientInvoices.index.categorylink_make_payment", true), 'attributes'=>array("href"=>$this->base_uri . "pay/")) Thakns man it work Realy Great and Fast Help if please more help how to change or Hide mention of 'credits' in the client area like the attached image Quote Link to comment Share on other sites More sharing options...
0 hazimdds Posted September 23, 2016 Author Report Share Posted September 23, 2016 Thanks to You All naja7host & Licensecart it Was Great and Fast Help you are the Best , for Who Asking I Do this COZ 2CO Requested This Removal To Start Accept the Payment Method. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted September 23, 2016 Report Share Posted September 23, 2016 23 minutes ago, hazimdds said: Thanks to You All naja7host & Licensecart it Was Great and Fast Help you are the Best , for Who Asking I Do this COZ 2CO Requested This Removal To Start Accept the Payment Method. 2CO is horrible. Quote Link to comment Share on other sites More sharing options...
Question
hazimdds
Hello,
How to disable the ability to add fund from the client area
it show make a payment without any invoice if it possible to hide make payment
when there is no Invoice in the account.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.