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

getTaxText() twice #2

Closed
PierreCorell opened this issue Dec 9, 2016 · 1 comment
Closed

getTaxText() twice #2

PierreCorell opened this issue Dec 9, 2016 · 1 comment

Comments

@PierreCorell
Copy link

PierreCorell commented Dec 9, 2016

Inside productdetails, but not in lists / categories, $block->getTaxText() ( \Magenerds\GermanLaw\Block\AfterPrice ) is executed twice, though it is not directly from inside the module which I searched through. Maybe Magento´s behaviour changed (also because Magenerds/BasePrice#2 is a similar issue in another module)...?

For a quick and dirty fix you can use css as seen in the screenshot
.tax-details + .tax-details { display: none; }

Best regards, Pierre.

pco-fm_2016-12-09_090822

@sydekumf
Copy link
Contributor

The problem was that Magento wants to render the tier prices but as the product does not have tier prices it is empty, therefore it looks like duplicate rendering. There is a fix, which only displays the text, if tier prices are available: 65127c8

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

No branches or pull requests

2 participants