1. Thomas Lombert
  2. EU VAT Compliant
  3. Monday, September 20 2021, 10:03 PM
  4.  Subscribe via email
HI

I guess it should remove the shipping VAT to? I have test the different settings and it keep the VAT on sipping. It removes it from the rest of the order. Is the module looking for special shipping moduls or should every module work? Can I do it wrong? How should it work?

/Thomas
Attachments (1)
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Good to hear.

The only thing I can see is that I need to "reload/update" the checkout twice to get all extra lines go away. It's only a cosmetic thing, but it can confuse customers. I think it's in the quick checkout. See the screen movie.
ANSWER: Yes the checkout is refreshing after postcode field is changed of left.

$vat_exempt = (($this->OwcLoader->OwcEUVat->checkStatus() && $this->config->get('owc_euvat_shipping_tax') && isset($this->session->data['owc_euvat_reverse_charge_vat_exempt']) && $this->session->data['owc_euvat_reverse_charge_vat_exempt'] == 1) || (isset($this->session->data['owc_euvat_reverse_charge_vat_exempt_uk']) && $this->session->data['owc_euvat_reverse_charge_vat_exempt_uk'] == 1));
if ($this->config->get($prefix . 'display_with_tax_status') && !$vat_exempt) {
ANSWER: This must be ok, $vat_excempt is true if my extension validated vat number and it is a valid one, so exempt tax must be applied (zero tax).

I have not checked this change, but if the checkout price numbers are ok, than it is good!!

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. EU VAT Compliant
  3. # 1
Thomas Lombert Accepted Answer
0
Votes
Undo
Hi again

Johnathan Shaw made one other mod;

I took a quick look at those files, and based on that code, I concocted one more edit. While I'm not sure if this will work, here's the edit you can try if you'd like:

------------------------------------------------------------------------------
IN:
the ocMod file in Extensions > Modifications

REPLACE:
if ($this->config->get($prefix . 'display_with_tax_status')) {

WITH:
$vat_exempt = (($this->OwcLoader->OwcEUVat->checkStatus() && $this->config->get('owc_euvat_shipping_tax') && isset($this->session->data['owc_euvat_reverse_charge_vat_exempt']) && $this->session->data['owc_euvat_reverse_charge_vat_exempt'] == 1) || (isset($this->session->data['owc_euvat_reverse_charge_vat_exempt_uk']) && $this->session->data['owc_euvat_reverse_charge_vat_exempt_uk'] == 1));
if ($this->config->get($prefix . 'display_with_tax_status') && !$vat_exempt) {
------------------------------------------------------------------------------

Let me know if that works.


And this looks like it works, so I think everything is ok now!

Best Regards
Thomas
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. EU VAT Compliant
  3. # 2
Thomas Lombert Accepted Answer
0
Votes
Undo
Hi Dennis

Sorry for the late replay. Thanks for all help, I will pay for the work. I have talked with Johnathan Shaw about some other problem with this, but now it looks it works. So it can be solved by the extra files you did.

The only thing I can see is that I need to "reload/update" the checkout twice to get all extra lines go away. It's only a cosmetic thing, but it can confuse customers. I think it's in the quick checkout. See the screen movie.

And Johnathan asked this question;

Hi Thomas-

Do you know if the other mod disables the "Taxes" Order Total? If that's what it's doing, then when the "Taxes" Order Total is disabled my extension will add the tax into the actual line item costs. This allows people to not use the Taxes line item, and just show all prices with tax.

In your case though, it may be that you want the extension to disable itself when the "Taxes" Order Total is disabled. I'm not entirely sure that will solve the issue, but it might work for you. If you want to try that, here's the edit you'd do:

------------------------------------------------------------------------------
IN:
the ocMod file in Extensions > Modifications

REPLACE:
if ($this->config->get($prefix . 'display_with_tax_status')) {

WITH:
if ($this->config->get($prefix . 'display_with_tax_status') && $this->config->get('total_tax_status')) {
------------------------------------------------------------------------------

Let me know how that goes. If it doesn't work, can you get some info from the other developer as to *how* it disables the "Taxes" line item? If it has some session variable or something I can read, we could conditionally disable Display Order Totals based on that variable.


And then this did not work;

For the issue with the other tax mod, if the edit I suggested didn't work, then we'll have to try hooking into the other mod directly. I took a brief look at its /catalog/model/extension/module/eu_tax.php file, and I think I found a session variable that should be filled in the VAT number is valid:

$this->session->data['VAT_valid']['valid']

Hopefully this will work, so try the following edit and let me know if this works:

------------------------------------------------------------------------------
IN:
the ocMod file in Extensions > Modifications

REPLACE:
if ($this->config->get($prefix . 'display_with_tax_status')) {

WITH:
if ($this->config->get($prefix . 'display_with_tax_status') && empty($this->session->data['VAT_valid']['valid'])) {
------------------------------------------------------------------------------

Let me know how that goes, and if it doesn't work we can get in touch with the other developer to see if there's some other way to detect the VAT validity in the session.


But maybe this is solved with your extra files?

/Thomas
Attachments (1)
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. EU VAT Compliant
  3. # 3
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

I have also added the following files with the same modifications for other Clear Thinking extensions:
owc_euvat_ct_ultimate_fee_discount.xml
owc_euvat_ct_ultimate_coupons.xml
owc_euvat_ct_individual_shipping.xml

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. EU VAT Compliant
  3. # 4
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi Thomas

This settings is used for disabling tax in the default Flat Rate shipping module of OpenCart.
I have checked and made 2 extra ocmod modifycation files:
owc_euvat_ct_ultimate_shipping.ocmod.xml
owc_euvat_ct_category_product_based_shipping.ocmod.xml

Please test it yourself also.

To support this extension it took me about 1 1/2 hours to make it work. It is up to you if you will pay me a small fee of 35 euro, you can make the payment at https://bit.ly/3bpV28M.

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. EU VAT Compliant
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Welcome

Categories

OpenCart Free Extension
  1. 1 post
  2. 2 subcategories
OpenCart Commercial Extension
  1. 52 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 1 post
  2. 2 subcategories

Recent Discussions

EU_VAT error in logs | GEO service cannot retrieve
Hi Team, We have installed the EU VAT extension at our opencart Eshop with th...
77 Hits
0 Votes
Posted on Tuesday, August 02 2022, 09:32 AM
  • Resolved
  • VAT field not showing for exisitng customers
    Hey there, i have following question. When an user or customer is creating a...
    259 Hits
    0 Votes
    Posted on Saturday, June 11 2022, 08:23 AM
  • Resolved
  • Extra files
    wat is de bedoeling van deze extra files? wat doen ze? zie bijlage...
    299 Hits
    0 Votes
    Posted on Wednesday, May 04 2022, 10:09 AM
    Probably a bug or conflict - image is hidden
    Hi I got an error in some browser/computer there product image is "hidde...
    413 Hits
    0 Votes
    Posted on Friday, April 22 2022, 09:53 PM
  • Resolved
  • Compatibility with Taxer
    Hi, I used this extension for calculating VAT https://opencartbot.com/en/taxer ...
    375 Hits
    0 Votes
    Posted on Monday, April 11 2022, 10:07 AM
  • Resolved