Jump to content

Show%


mori

Recommended Posts

Hi

I want to create the amount of product displayed in the invoice percentage

 

The amount displayed

<td class="text-center">{$item.amount}</td>

 

And I show this command in the PHP extension

But it gives an error in the viewinvoice.tpl file

 

Php command%

<?php
function Percentage($tota, $percentage){
	return $tota * ($percentage / 100);
}
echo Percentage(9, 1000000)
?>

 

please guide me

 

Link to comment
Share on other sites

  • 2 weeks later...

I asked for the address you sent, but I did not resolve the issue

I dialed this code, the tax problem was solved

 

{($item.amount|replace:'£':'' * 90.0)|string_format:"%.0f"}


But in our country, the official invoice must be registered
I can not add two variables


please guide me


 

sss.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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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