| @@ -62,12 +62,12 @@ | ||
| 62 | 62 | aria-describedby="fct_billing_tax_id_error" |
| 63 | 63 | <?php if ($isRequired): ?> data-b2b-required="yes"<?php endif; ?> |
| 64 | 64 | aria-required="<?php echo ($isRequired && $isB2BActive) ? 'true' : 'false'; ?>" |
| 65 | 65 | <?php if ($isRequired && $isB2BActive): ?> required<?php endif; ?> |
| 66 | - <?php echo ($isValid && TaxModule::canApplyReverseCharge($this->taxApplicableCountry)) ? 'readonly' : ''; ?> | |
| 66 | + <?php echo ($isValid && $isEuCountry) ? 'readonly' : ''; ?> | |
| 67 | 67 | /> |
| 68 | 68 | |
| 69 | - <?php if ($isEuCountry && TaxModule::canApplyReverseCharge($this->taxApplicableCountry)): ?> | |
| 69 | + <?php if ($isEuCountry): ?> | |
| 70 | 70 | <?php if ($isValid): ?> |
| 71 | 71 | <button |
| 72 | 72 | type="button" |
| 73 | 73 | data-fluent-cart-tax-remove-btn |
| @@ -108,12 +108,11 @@ | ||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | public function renderValidNote($checkoutData) |
| 111 | 111 | { |
| 112 | - $isValid = Arr::get($checkoutData, 'tax_data.valid', false); | |
| 113 | - $name = Arr::get($checkoutData, 'tax_data.name', ''); | |
| 114 | - $taxTotal = Arr::get($checkoutData, 'tax_data.tax_total', 0); | |
| 115 | - $declarationNote = sanitize_text_field(Arr::get($checkoutData, 'tax_data.declaration_note', '')); | |
| 112 | + $isValid = Arr::get($checkoutData, 'tax_data.valid', false); | |
| 113 | + $name = Arr::get($checkoutData, 'tax_data.name', ''); | |
| 114 | + $taxTotal = Arr::get($checkoutData, 'tax_data.tax_total', 0); | |
| 116 | 115 | ?> |
| 117 | 116 | <div |
| 118 | 117 | class="fct_vat_valid_note <?php echo !$isValid ? 'is-hidden' : ''; ?>" |
| 119 | 118 | data-fluent-cart-tax-valid-note-wrapper |
| @@ -126,21 +125,8 @@ | ||
| 126 | 125 | <span class="fct_vat_reverse_charge_warning"> |
| 127 | 126 | <?php echo esc_html__('(Reverse Charge not applied)', 'fluent-cart'); ?> |
| 128 | 127 | </span> |
| 129 | 128 | <?php endif; ?> |
| 130 | - | |
| 131 | - <div class="fct_vat_declaration_note_wrapper"> | |
| 132 | - <textarea | |
| 133 | - id="fct_vat_declaration_note" | |
| 134 | - name="fct_vat_declaration_note" | |
| 135 | - data-fluent-cart-vat-declaration-note | |
| 136 | - maxlength="255" | |
| 137 | - rows="2" | |
| 138 | - placeholder="<?php echo esc_attr__('e.g. I confirm reverse charge applies — VAT will be self-accounted in my country. Saved with your order. Max 255 characters. ', 'fluent-cart'); ?>" | |
| 139 | - aria-label="<?php echo esc_attr__('Reverse Charge Declaration', 'fluent-cart'); ?>" | |
| 140 | - aria-describedby="fct_vat_declaration_note_hint" | |
| 141 | - ><?php echo esc_textarea($declarationNote); ?></textarea> | |
| 142 | - </div> | |
| 143 | 129 | </div> |
| 144 | 130 | <?php |
| 145 | 131 | } |
| 146 | 132 | } |