Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Cost by manufacturer 25 Nov 2015 19:24 #1

  • musqsim
  • musqsim's Avatar Topic Author
I there,

is it possible to set a shipping by manufacturer in order?

Lets say that I have 2 items, each one from the diferent manufacturer.

Can I charge 2x the default rule?

Thanks!

Cost by manufacturer 29 Nov 2015 17:29 #2

Dear Musqsim,
The advanced version of the plugin provides the Manufacturers variable as well as the evaluate_for_manufacturers(VARIABLE, MANUFACTURERID, ...) function.
The details clearly depend on the details your particular shipping cost structure.
Here's a simple example (Manufacturer ID 1 has a flat rate of 10€ for any number of articles, manufacturer ID 2 has shipping costs of 2€ per kg):
Variable=CostManuf1; Value=0
Variable=CostManuf1; 1 in Manufacturers; Value=10
Variable=WeightManuf2; Value=evaluate_for_manufacturers(Weight, 2)
Shipping=CostManuf1+2*WeightManuf2

Best regards,
Reinhold

PS: Per-product shipping costs (i.e. Article A has 4€ shipping, Article B has 2€ shipping, and the total shipping cost is the sum of the individual shipping costs of all articles in the order) are not really provided by the plugin anyway, so manufacturer-dependent per-product shipping costs are even less supported.
What you can do, though, is: Manufacturer A has shipping cost of 1€ per article (all articles the same cost), manufacturer B has 2€ per article (all articles the same):
Shipping=evaluate_for_manufacturers(Articles,1)*1+evaluate_for_manufacturers(Articles, 2)*2
  • Page:
  • 1