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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

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

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?