VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Using Tags to exclude

Using Tags to exclude 20 Jan 2018 16:07 #1

Hi Reinhold,
try to exclude a certain tag from a certain shipping rule.
Did that:
Weight<5.00; Tags<>Spedition; Shipping=8.90
Weight<15.00;Tags<>Spedition; Shipping=12.50
Weight<31.50; Tags<>Spedition; Shipping=14.50
But that does not work. Get the message: Es sind keine Versandmethoden verf├╝gbar. Bitte stellen Sie sicher, dass Ihre Adresse korrekt eingegeben wurde, oder kontaktieren Sie uns, wenn Sie Hilfe ben├Âtigen.
What I mean is: If the article contains the tag "Spedition" it should not handled within this rule but in another.
May be I think the wrong way.
Thanks for help
Guido

Please Log in or Create an account to join the conversation.

Using Tags to exclude 27 Jan 2018 10:28 #2

Hi Reinhold,
could you please have a look to that?
Thanks
Guido

Please Log in or Create an account to join the conversation.

Using Tags to exclude 28 Jan 2018 19:36 #3

Dear Guido,
Am I correct that you want to disallow shipping with that method altogether if any product with tag "Spedition" is in the order? In that case, the simplest way is to exclude such orders in the first line:
Condition=contains_any(Tags, "Spedition"); NoShipping
Weight<5.00; Shipping=8.90
Weight<15.00; Shipping=12.50
Weight<31.50; Shipping=14.50

If any product with tag "Spedition" is ordered, the first line prevents the method from offering a shipping rate for this method. So the second and all other rules are never evaluated if the tag "Spedition" is in the order, so you don't have to check for this any more (the plugin stops at the first rule that matches...)

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Using Tags to exclude 09 Feb 2018 13:50 #4

Hi Reinhold,

no. The aim is to prevent Shipping for tags "spedition" if the weight is < 31.50 kg. If weight is > 31.50 kg the next rules for "Spedition" should be effective.

Guido

Please Log in or Create an account to join the conversation.

Using Tags to exclude 16 Feb 2018 23:21 #5

Dear Guido,
Thank you for the clarification. Now I understand your conditions in the rules you posted. As Tags is a list, you cannot use <> to check, but you can use the contains_none function:
Weight<5.00; Condition=contains_none(Tags, "Spedition"); Shipping=8.90
Weight<15.00;Condition=contains_none(Tags, "Spedition"); Shipping=12.50
Weight<31.50; Condition=contains_none(Tags, "Spedition"); Shipping=14.50

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Using Tags to exclude 16 Feb 2018 23:24 #6

Dear Guido,
Sorry, I re-read your last message and it seems I misunderstood: If the weight is below 31.5kg, you want to prevent shipping altogether for tag "Spedition" (my rules prevented the application of the three given rules, but the next rule could be applicable). So if you want to forcibly prevent shipping for orders <31.5kg with tag "Spedition", I would use:
Condition=contains_any(Tags, "Spedition"); Weight<31.5; NoShipping
Weight<5.00; Shipping=8.90
Weight<15.00; Shipping=12.50
Weight<31.50; Shipping=14.50

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular