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!

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

TOPIC: Restrict shipping by streets

Restrict shipping by streets 26 Sep 2016 19:07 #1

  • Nagytalp
  • Nagytalp's Avatar Topic Author
  • Offline
  • Posts: 5
Hi,

with this plugin possible to restrict or exclude some street names from shipping?

Regards., Csaba.

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

Restrict shipping by streets 30 Sep 2016 20:59 #2

Dear Nagytalp,
There are the Address1 and Address2 variables, which hold the street address the customer entered. You can check whether those start with the street names you allow / exclude. However, this is quite error-prone and will break as soon as a customer enters a street name differently or with a small typo (believe me, customers will enter their own address with any type of error you can imagine!), so I would not recommend doing this.

Best regards,
Reinhold

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

Restrict shipping by streets 12 Oct 2016 21:41 #3

  • Nagytalp
  • Nagytalp's Avatar Topic Author
  • Offline
  • Posts: 5
Hello Reinhold,

It's fine because the operator checks the address before the delivery and I'm trying to exclude the streets in many variations as possible.

Can You explain an exact case to how to EXCLUDE a street with the Address1 and Address2 variables?

I reed the docs but I don't understood clear.
Thank You and best regards!
-Csaba-

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

Restrict shipping by streets 14 Oct 2016 18:38 #4

Dear Csaba,
To exclude a shipping method for an order where the stree address starts with "Hauptplatz", you can do e.g.
Condition=Address1~"Hauptplatz"; NoShipping
or alternatively you can use substring:
substring(Address1, 1, 10) =="Hauptplatz"; NoShipping

Best regards,
Reinhold

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

Restrict shipping by streets 18 Oct 2016 00:02 #5

  • Nagytalp
  • Nagytalp's Avatar Topic Author
  • Offline
  • Posts: 5
Hi Reinhold,

the output on cart page is:

Evaluation yields unknown value while evaluating rule part 'Address1~'.
Evaluation yields unknown value while evaluating rule part 'substring(address1, 1, 10)'.

What is the next step? The PRO version have an easier way to add the rules?

Regards,
Csaba

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

Restrict shipping by streets 18 Oct 2016 01:35 #6

Dear Csaba,
Ah, sorry, I should have mentioned that these rules are only supported with the advanced (paid) version of the plugin.

You can test the advanced version at our demo installation.

Best regards,
Reinhold

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

Restrict shipping by streets 21 Oct 2016 21:53 #7

  • Nagytalp
  • Nagytalp's Avatar Topic Author
  • Offline
  • Posts: 5
Hello,

I bought the plugin but no effect with the example.

-Csaba-

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

Restrict shipping by streets 22 Oct 2016 23:19 #8

Dear Csaba,
When you say "no effect", do you mean that the same error is shown, even with the advanced version installed? In that case, please make sure that the basic (free) version is disabled and the advanced (paid) version of the plugin is enabled.

Best regards,
Reinhold

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

Restrict shipping by streets 22 Oct 2016 23:45 #9

  • Nagytalp
  • Nagytalp's Avatar Topic Author
  • Offline
  • Posts: 5
Hi Reinhold,

I mean I can buy in woo shop with Hauptplatz as Address1 without any notice from plugin.

The free version was deleted before the paid version was installed and activated.

If this post is private I can give an account to the site the check what I made wrong.

Thank You!

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

Restrict shipping by streets 30 Oct 2016 00:38 #10

Dear Csaba,
It's probably really easiest if you could give me access. However, this forum is public, so please don't post any access credentals here. Instead, you can send them e.g. via e-mail to office@open-tools.net

Best regards,
Reinhold

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

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular