Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping By Rules for WooCommerce

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:

Problems Shipping with weight and ZIP 20 Jul 2017 09:16 #1

  • ghloch
  • ghloch's Avatar Topic Author
Hi Reinhold,

I am using Advanced Shipping by Rules for WooCommerce and try to realize two different Shipping scenarios.
1. Shipping with weight
2. Shipping by ZIP (and weight)

For "1" I am using:
Name= < 5 kg; Weight<5.00; Shipping=8.90
Name= < 15 kg; Weight<15.00; Shipping=12.50
Name= < 31,5 kg; Weight<31.50; Shipping=14.50
That works quite well.
For "2" I am using:
Name= PLZ 0; Weight>=31.50 AND 1<=ZIP<1000; Shipping=120
Name= PLZ 1; Weight>=31.50 AND 1000<=ZIP<2000; Shipping=110
Name= PLZ 2; Weight>=31.50 AND 2000<=ZIP<3000; Shipping=105
Name= PLZ 3; Weight>=31.50 AND 3000<=ZIP<4000; Shipping=100
Name= PLZ 4; Weight>=31.50 AND 4000<=ZIP<5000; Shipping=95
Name= PLZ 5; Weight>=31.50 AND 5000<=ZIP<6000; Shipping=90
Name= PLZ 6; Weight>=31.50 AND 6000<=ZIP<7000; Shipping=85
Name= PLZ 7; Weight>=31.50 AND 7000<=ZIP<8000; Shipping=80
Name= PLZ 8; Weight>=31.50 AND 8000<=ZIP<9000; Shipping=75
Name= PLZ 9; Weight>=31.50 AND 9000<=ZIP<9999; Shipping=70
That gives following message:
Keine Versandarten verfügbar. Bitte prüfen Sie Ihre Adresse – oder kontaktieren Sie uns, wenn Sie Hilfe benötigen.

So what is wrong?
Guido

Problems Shipping with weight and ZIP 23 Jul 2017 09:06 #2

  • ghloch
  • ghloch's Avatar Topic Author
I forgot. I am using WP latest, WooCommerce latest, Advanced Shipping... latest.

Hi Reinhold,
really no idea about that?
Guido

Problems Shipping with weight and ZIP 01 Aug 2017 12:31 #3

Dear Guido,
Your rules look okay to me. Please note that the AND is not required, as the semicolon essentially means the same (all conditions have to be fulfilled for a rule to match, so the AND is implicit when you use a semicolon to separate two conditions).

The only cause that I can imagine from your simple rules is that the order has a weight below 31.5 (e.g. due to different weight units used?). Another reason might be that the ZIP variable will be unassigned (i.e. =0) until the customer actually enters their address.

I would recommend printing out all variables as debug output at the beginning of your rules, so you can check the values of the ZIP and Weight variables. See open-tools.net/documentation/advanced-sh...merce.html#debugging

Best regards,
Reinhold

Problems Shipping with weight and ZIP 04 Aug 2017 10:18 #4

  • ghloch
  • ghloch's Avatar Topic Author
Hi Reinhold,

I changed rules to the following:
Name= Gewicht {weight} kg; Weight<5.00; Shipping=8.90
Name= Gewicht {weight} kg; Weight<15.00; Shipping=12.50
Name= Gewicht {weight} kg; Weight<31.50; Shipping=14.50
Name= Gewicht {weight} kg; Weight<36.50; Shipping=23.40
Name= Gewicht {weight} kg; Weight<46.50; Shipping=27.00
Name= Gewicht {weight} kg; Weight<63.00; Shipping=29.00
Name= PLZ-Bereich 0, Gewicht {weight} kg; Weight>=63.00; 0000<=ZIP<1000; Shipping=120
Name= PLZ-Bereich 1, Gewicht {weight} kg; Weight>=63.00; 1000<=ZIP<2000; Shipping=110
Name= PLZ-Bereich 2, Gewicht {weight} kg; Weight>=63.00; 2000<=ZIP<3000; Shipping=105
Name= PLZ-Bereich 3, Gewicht {weight} kg; Weight>=63.00; 3000<=ZIP<4000; Shipping=100
Name= PLZ-Bereich 4, Gewicht {weight} kg; Weight>=63.00; 4000<=ZIP<5000; Shipping=95
Name= PLZ-Bereich 5, Gewicht {weight} kg; Weight>=63.00; 5000<=ZIP<6000; Shipping=90
Name= PLZ-Bereich 6, Gewicht {weight} kg; Weight>=63.00; 6000<=ZIP<7000; Shipping=85
Name= PLZ-Bereich 7, Gewicht {weight} kg; Weight>=63.00; 7000<=ZIP<8000; Shipping=80
Name= PLZ-Bereich 8, Gewicht {weight} kg; Weight>=63.00; 8000<=ZIP<9000; Shipping=75
Name= PLZ-Bereich 9, Gewicht {weight} kg; Weight>=63.00; 9000<=ZIP<9999; Shipping=70

But nothing changed. It works until the rule: Name= Gewicht {weight} kg; Weight<63.00; Shipping=29.00
After that it gives: Keine Versandarten verfügbar. Bitte prüfen Sie Ihre Adresse – ....

With debug command I can see that a ZIP 82327 exists. So. What is wrong?
I do not understand.

Regards
Guido

Problems Shipping with weight and ZIP 04 Aug 2017 10:30 #5

  • ghloch
  • ghloch's Avatar Topic Author
Hi Reinhold,

just solved the problem. In Germany ZIP Code is XXXXX not XXXX.
So I changed 1000 to 10000 and so on and it works.

Regards
Guido

[SOLVED] Problems Shipping with weight and ZIP 04 Aug 2017 10:30 #6

  • ghloch
  • ghloch's Avatar Topic Author
Problem solved.
  • Page:
  • 1