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:

Shipping by rule per state 05 Jan 2015 19:24 #1

  • rajtrivedi2001
  • rajtrivedi2001's Avatar Topic Author
Dear Sir

Q1.can i use previous rues result in another next rule?
ex.
These are the percentage increases he wants to add to each products current shipping rate
NSW : current pricing
VIC : current NSW rate +50%
QLD : current NSW rate +50%
SA : current NSW rate +70%
WA : current NSW rate +100%
NT : current NSW rate +100%
TAS : current NSW rate +100%

Q2. Can i use virtuemart custom field in rule as value.

Q3.

i also have doubt about limitation:
The plugin does not allow shipping costs on a per-product level (e.g. it is not possible that Article A has shipping costs of 3€, Article B 5€ and if you order both you pay 8€ shipping)

does this advance plugin can help me out.

Shipping by rule per state 08 Jan 2015 15:24 #2

Hello,
Regarding your first question:
Starting with the BETA version 4.99 (to be released as version 5.0 of the plugin shortly), you can define a ExtraShippingMultiplier depending on some conditions (please note that the name of modifiers is irrelevant, you'll always see the name of the rule that is actually used):
Name=VIC modifier; state=="VIC"; ExtraShippingMultiplier=1.5
Name=Shipping rate name; Shipping=...

Another approach would be to store the current NSW pricing in a variable (rather than a rule for NSW) and then use that variable in the rules for all states (I add the Weight<5 condition to indicate that you can of course also use conditions in variable definitions):
Variable=CurrentPricing; Weight<5; Value=....
Name=NSW shipping; State3=="NSW"; Shipping=CurrentPricing
Name=VIC shipping; State3=="VIC"; Shipping=1.5*CurrentPricing
Name=QLD shipping; State3=="QLD"; Shipping=1.5*CurrentPricing


2) By default, there is no access to custom fields in the rules. Starting with version 4.99, you can, however, extend the plugin with custom functions and variable (php code). See open-tools.net/virtuemart-2-extensions/v...ipping-by-rules.html for a plugin template, where you (or some programmer) can implement the corresponding code without having to modify my shipping plugin directly.

3) You are correct, the plugin is not designed to calculate shipping costs as a value per-article.
If you have only a limited number of articles, you can manually create such shipping costs with my rules plugin, but that approach is not quite as straightforward.

Best regards,
Reinhold
  • Page:
  • 1