Skip to content

Stop showing the No tax label when taxes are disabled - #223

Draft
boo-code wants to merge 1 commit into
PrestaShop:developfrom
boo-code:fix/no-tax-label-when-taxes-disabled-19562
Draft

Stop showing the No tax label when taxes are disabled#223
boo-code wants to merge 1 commit into
PrestaShop:developfrom
boo-code:fix/no-tax-label-when-taxes-disabled-19562

Conversation

@boo-code

Copy link
Copy Markdown
Contributor
Questions Answers
Description? With taxes disabled shop-wide, the product page prints No tax on every product while the cart prints nothing, so a shop that is not liable for VAT carries the string in one place only.

The two are not written the same way. cart-summary-totals.tpl requires both flags before showing any tax label, {if $configuration.display_taxes_label && $configuration.taxes_enabled}, whereas this block short-circuits on the first one and prints No tax regardless of the country's display tax label setting.

The condition now matches the cart. With taxes on, nothing changes: that branch was already gated on display_taxes_label. With taxes off, the label is omitted, as it already is in the cart.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#19562
Sponsor company -
How to test? Set Shop parameters > Taxes > Enable tax to No, then open any product page. Before: No tax under the price. After: nothing there, matching the cart summary.

With tax enabled the page is unchanged, and with a country whose "Display tax label" is off the long label stays hidden as before.

No tax is the only wording removed and it has no other use in this theme, so nothing else needs translating.

The same block exists in Hummingbird and behaves identically; a companion PR follows there if this direction is right.

The block showed "No tax" whenever taxes were off, ignoring the country's
display tax label setting, while the cart summary requires both before showing
any tax label. A shop that is not liable for VAT had the string on every product
page and nowhere else.

The product page now follows the same condition as the cart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect text No tax if tax is not used

1 participant