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 wont show when using Weight 30 Mar 2017 02:00 #1

  • gareth
  • gareth's Avatar Topic Author
I'am trying to use ASR on my new site. It current works on my existing site which is 2.5. My new ones is the latest VM and J!

On the old site it works perfectly, but the new one no shipping options appear. I have pasted (no HTML) the formulas in see below.

But nothing works. I am adding the states as per normal under countries. I have even edit the state in DB to be zone one. As no zones were showing in the admin. Doesn't work for weight length etc.

the odd thing is that in my odd site there are no states. But in the database there is a table called 187 or something that has the states in. Why it is like this Im not sure. But how is it that doing it the normal way its not working. Any ideas anyone? Iam using the extension from when I originally purchased which installed ok. And the version I believe looks the same.

Name= Shipping to Auckland; City=="Auckland"; Shipping=TotalWidth*75
Name= Shipping to Alexandra; City=="Alexandra"; Shipping=Weight*574
Name= Shipping to Ashburton; City=="Ashburton"; Shipping=Weight*411
Name= Shipping to Balclutha; City=="Balclutha"; Shipping=Weight*521
Name= Shipping to Blenheim; City=="Blenheim"; Shipping=Weight*369
Name= Shipping to Christchurch; City=="Christchurch"; Shipping=Weight*395
Name= Shipping to Clyde; City=="Clyde"; Shipping=Weight*520
Name= Shipping to Cromwell; City=="Cromwell"; Shipping=Weight*475
Name= Shipping to Dargaville; City=="Dargaville"; Shipping=Weight*185
Name= Shipping to Dunedin; City=="Dunedin"; Shipping=Weight*370
Name= Shipping to Edgecumbe; City=="Edgecumbe"; Shipping=Weight*132
Name= Shipping to Gisborne; City=="Gisborne"; Shipping=Weight*185
Name= Shipping to Gore; City=="Gore"; Shipping=Weight*490
Name= Shipping to Greymouth; City=="Greymouth"; Shipping=Weight*404
Name= Shipping to Hamilton; City=="Hamilton"; Shipping=Weight*92
Name= Shipping to Hastings; City=="Hastings"; Shipping=Weight*165
Name= Shipping to HavelockNorth; City=="HavelockNorth"; Shipping=Weight*168
Name= Shipping to Hawea; City=="Hawea"; Shipping=Weight*520
Name= Shipping to Invercargill; City=="Invercargill"; Shipping=Weight*460
Name= Shipping to Kaikohe; City=="Kaikohe"; Shipping=Weight*169
Name= Shipping to Kaitaia; City=="Kaitaia"; Shipping=Weight*182
Name= Shipping to Kawakawa; City=="Kawakawa"; Shipping=Weight*115
Name= Shipping to Kawerau; City=="Kawerau"; Shipping=Weight*132
Name= Shipping to Kerikeri; City=="Kerikeri"; Shipping=Weight*185
Name= Shipping to Kumeu; City=="Kumeu"; Shipping=Weight*76
Name= Shipping to Levin; City=="Levin"; Shipping=Weight*145
Name= Shipping to Masterton; City=="Masterton"; Shipping=Weight*166
Name= Shipping to MtMaunganui; City=="MtMaunganui"; Shipping=Weight*99
Name= Shipping to Napier; City=="Napier"; Shipping=Weight*132
Name= Shipping to Nelson; City=="Nelson"; Shipping=Weight*380
Name= Shipping to NewPlymouth; City=="NewPlymouth"; Shipping=Weight*123
Name= Shipping to Oamaru; City=="Oamaru"; Shipping=Weight*400
Name= Shipping to Orewa; City=="Orewa"; Shipping=Weight*95
Name= Shipping to Palmerston North; City=="PalmerstonNorth"; Shipping=Weight*139
Name= Shipping to Queenstown; City=="Queenstown"; Shipping=Weight*586
Name= Shipping to Rangiora; City=="Rangiora"; Shipping=Weight*440
Name= Shipping to Rotorua; City=="Rotorua"; Shipping=Weight*98
Name= Shipping to Russell; City=="Russell"; Shipping=Weight*142
Name= Shipping to Silverdale; City=="Silverdale"; Shipping=Weight*80
Name= Shipping to Taumaranui; City=="Taumaranui"; Shipping=Weight*185
Name= Shipping to Taupo; City=="Taupo"; Shipping=Weight*140
Name= Shipping to Tauranga; City=="Tauranga"; Shipping=Weight*98
Name= Shipping to Thames; City=="Thames"; Shipping=Weight*109
Name= Shipping to Timaru; City=="Timaru"; Shipping=Weight*369
Name= Shipping to Tokoroa; City=="Tokoroa"; Shipping=Weight*109
Name= Shipping to Wanaka; City=="Wanaka"; Shipping=Weight*586
Name= Shipping to Wanganui; City=="Wanganui"; Shipping=Weight*166
Name= Shipping to Warkworth; City=="Warkworth"; Shipping=Weight*80
Name= Shipping to Washdyke; City=="Washdyke"; Shipping=Weight*339
Name= Shipping to Wellington; City=="Wellington"; Shipping=Weight*199
Name= Shipping to Wellsford; City=="Wellsford"; Shipping=Weight*79
Name= Shipping to Westport; City=="Westport"; Shipping=Weight*390
Name= Shipping to Whakatane; City=="Whakatane"; Shipping=Weight*142
Name= Shipping to Whangarei; City=="Whangarei"; Shipping=Weight*109
Name= Shipping to Nationwide; TotalWidth=="8"; Shipping=8
Name= Shipping to Nationwide; TotalWidth=="14"; Shipping=14
Name= Shipping to Nationwide; TotalWidth=="19"; Shipping=19

Shipping wont show when using Weight 03 Apr 2017 02:06 #2

Dear Gareth,
Sorry to hear you are running into problems.
Unfortunately, I couldn't understand completely what your problem is. You are talking about states you added manually, but all your rules appear to compare the city name that the customer entered (which I would not recommend, as any typo will break the shipping rates).

You say that no shipping rate is offered. This is typically the case if your rules have some small typo or thinking error. What is the exact order information that you are testing (i.e. full address / what exactly did you enter into the address fields)?

Best regards,
Reinhold

Shipping wont show when using Weight 03 Apr 2017 02:51 #3

  • gareth
  • gareth's Avatar Topic Author
Thanks for your reply. Yes I am a bit confused.

Basically when somebody selects a city or state. (virtuemart_state_id) is what i would like to use to calculate the cost.

Whats is the best way to do this?

Shipping wont show when using Weight 03 Apr 2017 10:34 #4

Dear Gareth,
If you want to base your shipping on the state the user selected from the Dropdown box, you can use one of the variables: State, StateID, State2, State3.
State ... The human-readable state name shown in the dropdown box
StateID ... The numeric state ID (virtuemart_state_id)
State2 ... The 2-letter code for the state (e.g. CA for California)
State3 ... The 3-letter code for the state

I would recommend the State2 variable, as it is (a) readable unlike the numeric state ID and (b) not translated for multi-language shops, so your rules are easily understood and independent of the language.

Best regards,
Reinhold

Best regards,
Reinhold

Shipping wont show when using Weight 06 Apr 2017 01:43 #5

  • gareth
  • gareth's Avatar Topic Author
Thanks, That worked!

[SOLVED] Shipping wont show when using Weight 06 Apr 2017 09:43 #6

Problem solved.
  • Page:
  • 1