VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Synced on September 26, 2016, 19:53:52 PM

Title: Calculate shipping using product categories and shipping location
Post by: Synced on September 26, 2016, 19:53:52 PM
I need to set up a shipping method that has a price that varies depending on what products are in the cart (based on the category and the amount of products) and where they're being shipped.
Here's an example:

Using the table in the attachment, zones would be either cities or postal code ranges and the categories are Virtuemart categories.
If I bought 1 product from Cat. 1 and 1 from Cat. 2 and have them shipped to zone 1 it would cost $130 for shipping.
1 product from Cat. 1 plus 2 from Cat. 3 would cost $140.
But, 1 from Cat. 1 plus 2 from Cat. 2 and 1 from Cat. 3 would cost $150 since categories 2 and 3 combined cannot go over $50.

Is this shipping method possible in Virtuemart with or without an extension or I'd have to change the way it's calculated?

Edit: Forgot to add versions:
Title: Re: Calculate shipping using product categories and shipping location
Post by: GJC Web Design on September 26, 2016, 21:31:23 PM
are there only 3 cats?  Numerical postcodes that are adjacent?

Natively not but have a look at the Rules shipping plugin.. otherwise it would need something coded up I guess
Title: Re: Calculate shipping using product categories and shipping location
Post by: Synced on September 26, 2016, 22:06:04 PM
There are 6 categories, I also just found out that the costs can be calculated using distance from the warehouse instead of predefined zones removing postal codes from the equation (which contain letters/Canadian codes).

It would also be possible to make it so no matter how many articles there are in a single category, the price would stay the same as long as there's at least one article from that category, it seems simpler to do.

Thanks for the answer, I'll look more into what seems possible to do without having to code everything myself.
Title: Re: Calculate shipping using product categories and shipping location
Post by: GJC Web Design on September 26, 2016, 22:39:04 PM
http://www.gjcwebdesign.com/vm-2-radius-shipping-plugin.html ?
Title: Re: Calculate shipping using product categories and shipping location
Post by: Synced on September 27, 2016, 16:40:44 PM
I think this plugin could be of great help.

It works in Canada as well right? As long as Google can find the addresses I assume.

Thank you for your help!
Title: Re: Calculate shipping using product categories and shipping location
Post by: GJC Web Design on September 27, 2016, 21:52:47 PM
yes.. exactly -- if Google can find it it works

some work would be needed I guess for the cat restrictions but please move to my email for discussions