Jump to content

Question

Posted

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.

 

 

ool.png

8 answers to this question

Recommended Posts

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

 

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

 

  • 0
Posted

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.

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

 

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

  • 0
Posted

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.

 

 

 

 

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...