Skip to content

Cart/Minicart not updating prices when Zero VAT customer group is assigned when logged in #10567

Open
@tprocter-ldg

Description

@tprocter-ldg

Cart/Minicart not updating prices when Zero VAT customer group is assigned when logged in, until you go through to the billing step of checkout and then go back to update the cart.

Preconditions

  1. Magento 2.1.5
  2. Theme - Magento Luma

VAT SETUP
All VAT codes are supplied without the country prefix.
Stores > Taxes > Tax Rules > Add New Tax Rule
Tax Rule Information
Name: Zero VAT
Tax Rate: Click ‘Add New Tax Rate’

  • Tax Identifier: Zero VAT
  • Zip/Post is Range: unticked
  • Zip/Post Code: *
  • State: *
  • Country: Spain
  • Rate Percent: 0.00
  • Save

Additional Settings
Customer Tax Class: Click ‘Add New Tax Class’

  • Zero VAT Customer
  • Press the tick
  • Ensure this is the only tax class highlighted
    Product Tax Class: Click ‘Add New Tax
  • Zero VAT Product
  • Press the tick
  • Ensure this is the only tax class highlighted
    Priority: 0
    Calculate Off Subtotal Only: unticked
    Sort Order: 0

Stores > Taxes > Tax Zones and Rates > Add New Tax Rate
Tax Identifier: Zero VAT
Zip/Post is Range: unticked
Zip/Post Code: *
State: *
Country: Spain
Rate Percent: 0.00

Stores > Other Settings > Customer Groups > Add New Customer Group
Group Name: Zero VAT Customer Group
Tax Class: Zero VAT Customer

Stores > Configuration > Customers > Customer Configuration > CHANGE SCOPE TO SPANISH WEBSITE LEVEL > Create New Account Options
screen shot 2017-08-17 at 12 30 54

Stores > Configuration > Sales > Tax
screen shot 2017-08-17 at 12 34 49
screen shot 2017-08-17 at 12 35 13
screen shot 2017-08-17 at 12 35 36

Steps to reproduce

Product example being used:

  • Including VAT price 447,00 €

  • Excluding VAT price 369,42 €

  • Go to the frontend as a guest and add an item to your basket.

  • Minicart shows product as 447,00 €

  • Go to login as a new customer.

  • Add your address & vat number when prompted (default functionality).

  • You should receive the 'Your vat id has been successfully validated. You will not be charged tax' message. At this point you are assigned the Zero VAT customer group.

  • Go back to the frontend and notice that all the prices in the category and product pages are now showing the VAT discount.

  • Go to the cart and/or the minicart to view the product you added prior to registration

Expected result

  • Prices and totals are updated to reflect the VAT discount
    ie: product price and total should be 369,42 €.
  • Add another product and view the cart and/or minicart. This product should show the VAT discount price which is reflected on the product page.

Actual result

  • Prices and totals still show the full price in cart/minicart.
  • Add another product and view the cart and/or minicart. This product also shows as including full vat.
  • Go through to the checkout. Choose your shipping option and click next button.
  • Before proceeding with payment go back to the homepage.
  • Click the minicart and update your product quantity.
  • The prices and totals refresh to show the correct discounted price.

Metadata

Metadata

Assignees

Labels

Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: dev in progressReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.bug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions