VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: erasertm on January 22, 2020, 15:24:21 PM

Title: Two products with different tax rates to be made into a bundle?
Post by: erasertm on January 22, 2020, 15:24:21 PM
Greetings,
We have two products with different tax rates to be made into a bundle.

For example:
Product 1 = 13%
Product 2 = 25%

Those two products are not allowed to sell separately, only in a bundle, and both  tax rates  have to be listed on the Invoice.
Please, is there any way to make it?
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: GJC Web Design on January 22, 2020, 15:52:23 PM
https://breakdesigns.net/extensions/joomla/product-bundles  ?
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: Studio 42 on January 22, 2020, 17:45:08 PM
Quote from: GJC Web Design on January 22, 2020, 15:52:23 PM
https://breakdesigns.net/extensions/joomla/product-bundles  ?
Have you read the question ?
Quote from: erasertm on January 22, 2020, 15:24:21 PM
Those two products are not allowed to sell separately, only in a bundle
You need an additional plugin that verify if the product have to be bundled.
I already have done similar plugin, so contact me or breakdesigns can perhaps do it too.
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: Milbo on January 22, 2020, 19:08:55 PM
VM does all the taxhandling for you, also the different taxes. You just need to create a bundle. A product without any tax having the products as bundle. So the breakdesign thing should work.
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: Studio 42 on January 22, 2020, 21:19:23 PM
Max, the problem is not the tax in this case.
He want "only" bundle for some products. So the only solution is to use a custom plugin to verify if you have the bundled main product in the cart or not.
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: GJC Web Design on January 22, 2020, 23:02:52 PM
having never used the bundle component does it not have "compulsory" bundles?
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: pinochico on January 23, 2020, 04:18:39 AM
Correct, https://breakdesigns.net/extensions/joomla/product-bundles is solutions.

Pls dont find solution on core virtueMart and try this component :)
You save time not only for yourself ...
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: Studio 42 on January 23, 2020, 10:10:18 AM
pinocchio,
i provide similar solution as breakdesign here https://shop.st42.fr/en/products/buy-together.htm, or https://shop.st42.fr/en/products/extra-product.htm
but read the request
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: erasertm on January 23, 2020, 10:57:52 AM
Breakdesign can't show different taxes. I tried this before posting the question here. I could create one item if there were only one tax for both items. But since I have several tax rates for different products I have a problem. Breakdesign can not show several tax rates in the invoice, and other plugins can't lock the product together. So I stuck for now with selling.
Title: Re: Two products with different tax rates to be made into a bundle?
Post by: balai on January 23, 2020, 11:12:31 AM
The Problem
QuoteBreakdesign can't show different taxes. I

The problem here resides in the fact that you want to apply both bundle discounts and different tax rules.
I.e. You want 2 calc. rules to be applied at each of your product.

Unfortunately VM allows you either to use all the applicable rules (apply generic rules) OR to select only 1 rule.

A Possible Workaround
The bundles package, include 1 more plugin named "Advanced Calculation".
This can restrict the calc. rules application based on other criteria (e.g. custom field id or custom field value).

You can apply 2 different custom fields in your products.
Then go at each of your Tax/Vat rules and at the bottom, you will find the restrictions you can set for them.
There select:
Condition >Custom id = The id of the custom field you applied at your 1st product

Do the same for the 2nd product, changing the id

(https://i.ibb.co/X8SnVCs/advanced-calc.png) (https://ibb.co/X8SnVCs)


* Possibly you can use a custom field value instead of the id, though i have not checked that.
* This plugin is used for the bundle discounts and never used for other purposes. If it does not work, please address to the developer, through the official channels.