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

Sale price not formatting on front-end as expected (fix supplied!) #332

Open
jpcharrier opened this issue Sep 15, 2016 · 0 comments
Open

Comments

@jpcharrier
Copy link

The sale price is not being formatted in the front end as per the original price (ie not following the the formatting set in the options).

I believe this is due to an extra 'return' in the Product class on line 468.

Function before fix applied

    public function getFormattedSalePrice()
    {
        return
        $saleprice = $this->getProductSalePrice();

        if ($saleprice != '') {
            return StorePrice::format($saleprice);
        }
    }

Function after fix applied

    public function getFormattedSalePrice()
    {
        $saleprice = $this->getProductSalePrice();

        if ($saleprice != '') {
            return StorePrice::format($saleprice);
        }
    }
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

1 participant