Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Checkout Block] In the editor, the block does not reflect the Admin taxes settings #47368

Open
3 of 5 tasks
ralucaStan opened this issue May 10, 2024 · 0 comments
Open
3 of 5 tasks
Labels
block: checkout Issues related to the checkout block. focus: checkout Issues related to checkout page. focus: tax Issues related to taxes. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues

Comments

@ralucaStan
Copy link
Contributor

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

In the Editor the Checkout Block does not reflect the way tax settings are reflected in the Order summary depending on the tax settings: Display prices during cart and checkout

  • Prices excluding of taxes: editor and store view are in sync
  • Prices including of taxes: editor and store view are not in sync. The editor shows the view for Prices excluding of taxes

Prices including of taxes

  • Admin setting
Screenshot 2024-05-10 at 16 24 12
  • Store view: Notice the text under total
Screenshot 2024-05-10 at 16 24 56
  • Editor view: Notice the missing text under the total & the Tax rows that does not show in the Store view
Screenshot 2024-05-10 at 16 25 21

Prices excluding of taxes

Here things work as expected

  • Admin setting
Screenshot 2024-05-10 at 16 25 57
  • Editor view
Screenshot 2024-05-10 at 16 23 13
  • Store view
Screenshot 2024-05-10 at 16 20 32

Expected behavior

The editor view should reflect how things look on the Store view.

  • Prices excluding of taxes: editor and store view are in sync - no change needed
  • Prices including of taxes: the editor should remove the Taxes inner block and show the taxes information under the Total at the bottom of Order summary

Actual behavior

The editor shows 1 layout for both scenarious.

Steps to reproduce

  1. set up taxes for your store
  2. switch between the Display prices during cart and checkout options
  3. notice how taxes are displayed in the Checkout Block in the Editor/store

Note: I only followed the recommended WooCommerce tax setup, where Prices entered with tax, Display prices in the shop and Display prices during cart and checkout have the same value. Ultimatelly the Display prices during cart and checkout should impact the output in the Editor

WordPress Environment

n/a

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.
@ralucaStan ralucaStan added team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues focus: checkout Issues related to checkout page. focus: tax Issues related to taxes. block: checkout Issues related to the checkout block. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block: checkout Issues related to the checkout block. focus: checkout Issues related to checkout page. focus: tax Issues related to taxes. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues
Projects
None yet
Development

No branches or pull requests

1 participant