How to remove vat from non uk online customersHow to remove duplicate values from a multi-dimensional array in PHPHow to remove non-alphanumeric characters?Remove non-utf8 characters from stringHow do I get a YouTube video thumbnail from the YouTube API?Remove non-numeric characters (except periods and commas) from a stringRemove the last character from stringHow to pass variables and data from PHP to JavaScript?Woocommerce Shipping Zones - default when no addressOn country change ajax update checkout for shipping in WoocommercePayPal Shipping - Multiple Products in Cart - Cart Upload

How did Thanos not realise this had happened at the end of Endgame?

use the oversamplling followed by '' decimation method ''to increasee the ADC resolution and not normal averaging

What does オト mean here?

tikz: not so precise graphic

Why is this int array not passed as an object vararg array?

On what legal basis did the UK remove the 'European Union' from its passport?

Can I make ravioli dough with only all-purpose flour or do I NEED semolina flour?

Noob at soldering, can anyone explain why my circuit won't work?

Meaning of "sib of 20" in a by-patient case description table

Two researchers want to work on the same extension to my paper. Who to help?

List software from restricted, multiverse separately

Can you book a one-way ticket to the UK on a visa?

Why was this sacrifice sufficient?

Does the 500 feet falling cap apply per fall, or per turn?

Why can't RGB or bicolour LEDs produce a decent yellow?

Anatomically Correct Carnivorous Tree

Why is “Ich wusste, dass aus dir mal was wird” grammitally correct?

How to use structured binding in an array passed as arg to some function?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech?

How do I tell my supervisor that he is choosing poor replacements for me while I am on maternity leave?

Run script for 10 times until meets the condition, but break the loop if it meets the condition during iteration

Was this character’s old age look CGI or make-up?

What to do if SUS scores contradict qualitative feedback?

Early arrival in Australia, early hotel check in not available



How to remove vat from non uk online customers


How to remove duplicate values from a multi-dimensional array in PHPHow to remove non-alphanumeric characters?Remove non-utf8 characters from stringHow do I get a YouTube video thumbnail from the YouTube API?Remove non-numeric characters (except periods and commas) from a stringRemove the last character from stringHow to pass variables and data from PHP to JavaScript?Woocommerce Shipping Zones - default when no addressOn country change ajax update checkout for shipping in WoocommercePayPal Shipping - Multiple Products in Cart - Cart Upload






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Trying to remove VAT charge for customers with a shipping address that's outside of the UK.



I've found this code on the basket.php page which i assume adds VAT.



 $vat = $settings_obj->getSetting('VAT');


As i'm a novice with php i tried the following code.



 if($user->address_shipping->country == 'GB') 
$vat = $settings_obj->getSetting('VAT');
else
$vat = $settings_obj->getSetting('VAT' == '0');



I'm expecting it to remove VAT charge for customers outside the UK, but leave VAT charge for Uk customers.
Any advice would be much appreciated
Thanks ADyson im new to Stack Overflow so just trying to find my way around.
I dont know who wrote the code but i wonder if you could take look at the below code to see if that's where i need to be.



 public function doVAT(){ 
$this->total_vat = number_format( $this->total * VAT, 2 );









share|improve this question
























  • Just do $vat = 0; for the else case.

    – Sombrero Chicken
    Mar 23 at 11:41












  • Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

    – Alan Y
    Mar 23 at 11:54











  • Check the documentation for the software you're using. Maybe try using setSetting

    – Sombrero Chicken
    Mar 23 at 11:58











  • I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

    – Gianfrancesco Aurecchia
    Mar 23 at 12:04











  • Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

    – Alan Y
    Mar 23 at 12:08

















0















Trying to remove VAT charge for customers with a shipping address that's outside of the UK.



I've found this code on the basket.php page which i assume adds VAT.



 $vat = $settings_obj->getSetting('VAT');


As i'm a novice with php i tried the following code.



 if($user->address_shipping->country == 'GB') 
$vat = $settings_obj->getSetting('VAT');
else
$vat = $settings_obj->getSetting('VAT' == '0');



I'm expecting it to remove VAT charge for customers outside the UK, but leave VAT charge for Uk customers.
Any advice would be much appreciated
Thanks ADyson im new to Stack Overflow so just trying to find my way around.
I dont know who wrote the code but i wonder if you could take look at the below code to see if that's where i need to be.



 public function doVAT(){ 
$this->total_vat = number_format( $this->total * VAT, 2 );









share|improve this question
























  • Just do $vat = 0; for the else case.

    – Sombrero Chicken
    Mar 23 at 11:41












  • Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

    – Alan Y
    Mar 23 at 11:54











  • Check the documentation for the software you're using. Maybe try using setSetting

    – Sombrero Chicken
    Mar 23 at 11:58











  • I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

    – Gianfrancesco Aurecchia
    Mar 23 at 12:04











  • Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

    – Alan Y
    Mar 23 at 12:08













0












0








0








Trying to remove VAT charge for customers with a shipping address that's outside of the UK.



I've found this code on the basket.php page which i assume adds VAT.



 $vat = $settings_obj->getSetting('VAT');


As i'm a novice with php i tried the following code.



 if($user->address_shipping->country == 'GB') 
$vat = $settings_obj->getSetting('VAT');
else
$vat = $settings_obj->getSetting('VAT' == '0');



I'm expecting it to remove VAT charge for customers outside the UK, but leave VAT charge for Uk customers.
Any advice would be much appreciated
Thanks ADyson im new to Stack Overflow so just trying to find my way around.
I dont know who wrote the code but i wonder if you could take look at the below code to see if that's where i need to be.



 public function doVAT(){ 
$this->total_vat = number_format( $this->total * VAT, 2 );









share|improve this question
















Trying to remove VAT charge for customers with a shipping address that's outside of the UK.



I've found this code on the basket.php page which i assume adds VAT.



 $vat = $settings_obj->getSetting('VAT');


As i'm a novice with php i tried the following code.



 if($user->address_shipping->country == 'GB') 
$vat = $settings_obj->getSetting('VAT');
else
$vat = $settings_obj->getSetting('VAT' == '0');



I'm expecting it to remove VAT charge for customers outside the UK, but leave VAT charge for Uk customers.
Any advice would be much appreciated
Thanks ADyson im new to Stack Overflow so just trying to find my way around.
I dont know who wrote the code but i wonder if you could take look at the below code to see if that's where i need to be.



 public function doVAT(){ 
$this->total_vat = number_format( $this->total * VAT, 2 );






php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 16:28







Alan Y

















asked Mar 23 at 11:40









Alan YAlan Y

43




43












  • Just do $vat = 0; for the else case.

    – Sombrero Chicken
    Mar 23 at 11:41












  • Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

    – Alan Y
    Mar 23 at 11:54











  • Check the documentation for the software you're using. Maybe try using setSetting

    – Sombrero Chicken
    Mar 23 at 11:58











  • I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

    – Gianfrancesco Aurecchia
    Mar 23 at 12:04











  • Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

    – Alan Y
    Mar 23 at 12:08

















  • Just do $vat = 0; for the else case.

    – Sombrero Chicken
    Mar 23 at 11:41












  • Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

    – Alan Y
    Mar 23 at 11:54











  • Check the documentation for the software you're using. Maybe try using setSetting

    – Sombrero Chicken
    Mar 23 at 11:58











  • I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

    – Gianfrancesco Aurecchia
    Mar 23 at 12:04











  • Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

    – Alan Y
    Mar 23 at 12:08
















Just do $vat = 0; for the else case.

– Sombrero Chicken
Mar 23 at 11:41






Just do $vat = 0; for the else case.

– Sombrero Chicken
Mar 23 at 11:41














Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

– Alan Y
Mar 23 at 11:54





Thanks for your quick reply but that just changes the label to read VAT@ 0% but still adds vat to price.

– Alan Y
Mar 23 at 11:54













Check the documentation for the software you're using. Maybe try using setSetting

– Sombrero Chicken
Mar 23 at 11:58





Check the documentation for the software you're using. Maybe try using setSetting

– Sombrero Chicken
Mar 23 at 11:58













I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

– Gianfrancesco Aurecchia
Mar 23 at 12:04





I know Alan Y that you are new, in the future when you post some questions look as much as possible to make us understand in the situation with which you work, for example the software you are using for your system

– Gianfrancesco Aurecchia
Mar 23 at 12:04













Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

– Alan Y
Mar 23 at 12:08





Thanks again Sombrero Chicken but i dont know what you mean about Check the documentation for the software you're using.!!! I'm just viewing the code from the source file basket.php in notepad++.

– Alan Y
Mar 23 at 12:08












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313359%2fhow-to-remove-vat-from-non-uk-online-customers%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313359%2fhow-to-remove-vat-from-non-uk-online-customers%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해