Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Wrong totals calculation on cart page #50

Closed
@ansgarbecker

Description

@ansgarbecker

With @danslo's HHVM totals fix, I get a wrong totals calculation in the cart view in our Magento 1.9.2.4. More precisely said: The grand total has too times the VAT and/or the shipping cost.

When I remove the following code from config.cml, I get the correct grand totals calculation back in the cart view:

        <!-- Fix for incorrect sorting in the calculation of the discount -->
        <sales>
            <quote>
                <totals>
                    <msrp>
                        <before>grand_total</before>
                    </msrp>
                    <shipping>
                        <after>subtotal,freeshipping,tax_subtotal,msrp</after>
                    </shipping>
                </totals>
            </quote>
        </sales>

This faulty calculation might also occur due to our own number of third party extension we already installed. I haven't tested it on an otherwise blank Magento. But as the calculation has no problems without that code, I assume it's buggy.

The original author of the fix says on https://github.com/danslo/Rubic_FixTotalSorting :

This bug has been solved, and proper behavior can be enabled by passing -vEval.EnableZendSorting=1 to HHVM. This module is no longer necessary and only exists for historical purposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions