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

No tax info for bundle products - intentionally? #194

Closed
infabo opened this issue Aug 27, 2015 · 13 comments
Closed

No tax info for bundle products - intentionally? #194

infabo opened this issue Aug 27, 2015 · 13 comments

Comments

@infabo
Copy link
Contributor

infabo commented Aug 27, 2015

In class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price the following method does return an empty tax-rate if the product type is of type "bundle".
Is this by design or should it rather be "grouped"? By Magento default bundle-products do have a tax_class_id, therefore it should be possible (IMHO) to calculate the tax_rate for bundles.
I'm a bit confused.

https://github.com/firegento/firegento-magesetup/blob/master/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php#L79

 /**
     * Retrieves formatted string of tax rate for user output
     *
     * @return string Formatted Tax Rate for the given locale
     */
    public function getFormattedTaxRate()
    {
        if ($this->getTaxRate() === null
            || $this->getProduct()->getTypeId() == 'bundle'
        ) {
            return '';
        }

        $locale = Mage::app()->getLocale()->getLocaleCode();
        $taxRate = Zend_Locale_Format::toFloat($this->getTaxRate(), array('locale' => $locale));

        return $this->__('%s%%', $taxRate);
    }

Could someone enlighten me? :)

@luckyduck
Copy link

I can confirm that the tax info is missing for bundled products. Simply modifying the if-statement doesn't help, though.

@Schrank Schrank closed this as completed Nov 6, 2015
@Schrank Schrank reopened this Nov 6, 2015
@Schrank
Copy link
Member

Schrank commented Nov 6, 2015

What is the tax class for bundle products with mixed taxes?

@infabo
Copy link
Contributor Author

infabo commented Nov 6, 2015

Good question. At least a bundle product with a fixed price should have a tax class.

@Detzler
Copy link

Detzler commented Nov 12, 2015

It doesn't matter what kind of articles are inside the bundle product. It's just a backend question.
From the frontend (buyers) point of view, the bundle product is just a "simple product" that contains stuff.
The merchant is responsible to mark this product with the right tax class.
MageSetup shouldn't deliver any automatism for the tax classes of bundle products.

@Detzler
Copy link

Detzler commented Nov 12, 2015

@infabo Did you find out how to enable the block on bundle product pages?

@Schrank
Copy link
Member

Schrank commented Nov 12, 2015

Unfortunately not. You cannot configure a tax class for a product:

bildschirmfoto 2015-11-12 um 18 40 31

It is just greyed out.

@Schrank
Copy link
Member

Schrank commented Nov 12, 2015

So the tax class is the one from the simple items - which might have different ones. In Germany this can be 0%, 7% and 19% which is horrible. It is the same horrible as for shipping.

@infabo
Copy link
Contributor Author

infabo commented Nov 12, 2015

ok. seems like it's time for a PR ;)

@Schrank
Copy link
Member

Schrank commented Nov 12, 2015

Maybe I'm too dumb, but how to configure a fixed tax class on a bundle product?

@Detzler
Copy link

Detzler commented Nov 12, 2015

If the price is set to be fixed (selectbox near price attribute) then the tax class is applicable in the backend. So MageSetup should show the block as like as at the simple product.

Otherwise it's dynamic. That's what @Schrank means.
How to show the block then?

This law office says that it's not required to print the exact amount of the tax at the german market.
It's just enough to say "inkl MwSt".
https://www.it-recht-kanzlei.de/Thema/preisangabenverordnung.html?page=2#sect_4

@Schrank
Copy link
Member

Schrank commented Nov 12, 2015

Be careful. What they say is IF (and only if) there is no add to cart button, THEN we don't have to print anything.

@sprankhub
Copy link
Member

My latest commit ensures that the tax rate is shown for bundle products with fixed pricing.

We could at least improve the tax rate display for bundle products with dynamic pricing like this:

  1. If all associated child products have the same tax rate, show this tax rate.
  2. If they have different tax rates, do not show any exact tax rate.

We should just be careful that the retrieval of the child products is performant.

@Schrank
Copy link
Member

Schrank commented Mar 15, 2018

I'll open a new issue for the dynamic bundles to keep it cleaner.

@Schrank Schrank closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants