Jump to content
  • 0

Disable Fund


hazimdds

Question

8 answers to this question

Recommended Posts

  • 1
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/"))

 

Link to comment
Share on other sites

  • 1
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 

Screenshot (1).png

Screenshot (2).png

 

 

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"});
			}
		');
		?>

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0
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.

 

Link to comment
Share on other sites

  • 0
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 

Screenshot (1).png

Screenshot (2).png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...