hazimdds Posted September 22, 2016 Report 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
1 Blesta Addons Posted September 23, 2016 Report Posted September 23, 2016 On 9/23/2016 at 8:42 AM, 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. Expand 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/")) Michael and hazimdds 2 Quote
1 Michael Posted September 23, 2016 Report Posted September 23, 2016 On 9/23/2016 at 8:18 PM, 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 Expand 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
0 Tyson Posted September 22, 2016 Report 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. Abdy and hazimdds 2 Quote
0 Abdy Posted September 23, 2016 Report 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
0 hazimdds Posted September 23, 2016 Author Report Posted September 23, 2016 On 9/22/2016 at 11:16 PM, 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. Expand 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
0 hazimdds Posted September 23, 2016 Author Report Posted September 23, 2016 On 9/23/2016 at 10:55 AM, 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/")) Expand 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
0 hazimdds Posted September 23, 2016 Author Report 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
0 Michael Posted September 23, 2016 Report Posted September 23, 2016 On 9/23/2016 at 8:34 PM, 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. Expand 2CO is horrible. Quote
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.
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.