VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: thefbi on July 01, 2020, 15:47:53 PM

Title: Forced shipping method depending product
Post by: thefbi on July 01, 2020, 15:47:53 PM
Hello,
i have shipping cost, for example 0 to 2 Kg = 40.00, this is for a package. But i have a product that can be shipped in a maxi letter (this is a big letter).
So, this product is 120 gr = 0.0120 Kg = 40.00.

But in a Max letter, the cost is only 15.00
If i create a shipping method "Maxi letter" 0 to 2 Kg for 15.00, in my cart, i will have the 2 shipping method (40.00 and 15.00).

So my question is how i can "say" to my product only use the "Maxi letter" shipping method ?

Regards,
VM 3.8.4 10335
Joomla 3.9.19
Title: Re: Forced shipping method depending product
Post by: pinochico on July 01, 2020, 17:15:12 PM
setup shipping for eshop category and add this category to product
Title: Re: Forced shipping method depending product
Post by: AH on July 01, 2020, 18:31:23 PM
As pinochio hinted:

You may be able to use dummy categories (for shipping).

http://docs.virtuemart.net/manual/products-menu/product-categories.html (http://docs.virtuemart.net/manual/products-menu/product-categories.html)
Assign the product this product to the dummy category (for shipping) as well as the main category for display.

Adjust your shipping methods
http://docs.virtuemart.net/manual/shop-menu/shipment-method-edit.html#information (http://docs.virtuemart.net/manual/shop-menu/shipment-method-edit.html#information)

For the max-letter - include this dummy category
For the expensive - block this dummy category

Now you have the problem when you have two products one of which belongs to the maxi category, but you can play with weights etc to determine a way forward


Title: Re: Forced shipping method depending product
Post by: GJC Web Design on July 01, 2020, 21:08:02 PM
or use dummy weights that are spread enough apart that they always fall in the correct filtering of a method
Title: Re: Forced shipping method depending product
Post by: thefbi on July 02, 2020, 08:31:55 AM
OK, thank you.

I understand that in fact the problem is that if there are several products in the basket, that's where the problem is. And I don't like working with fake weights, because then you don't know where you are, and when you have to put the real weights or the fake weights. It's a source of error, I'm not the only one to modify this site.

I see there is no simple solution for this...
Title: Re: Forced shipping method depending product
Post by: thefbi on July 02, 2020, 09:10:41 AM
In fact, it should be possible to define that if the product is alone in the basket, it is the Maxi Letter shipping method that is used, and if there are several products, it is the standard method.