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:

Syntax error.. after changing rates 13 Aug 2015 04:23 #1

  • gareth
  • gareth's Avatar Topic Author
Hi
I did have everyone working fine, But I needed to update the shipping rates. But After I have done this I get this error:

Syntax error during evaluation, RPN is not well formed! (Full rule: 'Shipping=Weight*')
Unknown error occurred during evaluation of rule 'Shipping=Weight*'.
Outstack:

Array
(
[0] => Shipping
[1] => Weight
[2] => *
[3] => =
)

Assignments are not allows inside expressions (rule given was 'Shipping=Weight*')
Syntax error during evaluation, RPN is not well formed! (Full rule: 'Shipping=Weight*')
Unknown error occurred during evaluation of rule 'Shipping=Weight*'.
Outstack:

Array
(
[0] => Shipping
[1] => Weight
[2] => *
[3] => =
)

Assignments are not allows inside expressions (rule given was 'Shipping=Weight*')
Syntax error during evaluation, RPN is not well formed! (Full rule: 'Shipping=Weight*')
Unknown error occurred during evaluation of rule 'Shipping=Weight*'.
Outstack:

Array
(
[0] => Shipping
[1] => Weight
[2] => *
[3] => =
)

Assignments are not allows inside expressions (rule given was 'Shipping=Weight*')


THIS IS THE CODE I AM USING:

Name= Shipping to Auckland; City=="Auckland"; Shipping=Weight*85
Name= Shipping to Alexandra; City=="Alexandra"; Shipping=Weight*315
Name= Shipping to Ashburton; City=="Ashburton"; Shipping=Weight*332
Name= Shipping to Balclutha; City=="Balclutha"; Shipping=Weight*286
Name= Shipping to Blenheim; City=="Blenheim"; Shipping=Weight*202
Name= Shipping to Christchurch; City=="Christchurch"; Shipping=Weight*244
Name= Shipping to Clyde; City=="Clyde"; Shipping=Weight*286
Name= Shipping to Cromwell; City=="Cromwell"; Shipping=Weight*260
Name= Shipping to Dargaville; City=="Dargaville"; Shipping=Weight*94
Name= Shipping to Dunedin; City=="Dunedin"; Shipping=Weight*198
Name= Shipping to Edgecumbe; City=="Edgecumbe"; Shipping=Weight*73
Name= Shipping to Gisborne; City=="Gisborne"; Shipping=Weight*103
Name= Shipping to Gore; City=="Gore"; Shipping=Weight*273
Name= Shipping to Greymouth; City=="Greymouth"; Shipping=Weight*225
Name= Shipping to Hamilton; City=="Hamilton"; Shipping=Weight*55
Name= Shipping to Hastings; City=="Hastings"; Shipping=Weight*128
Name= Shipping to Havelock North; City=="HavelockNorth"; Shipping=Weight*
Name= Shipping to Hawea; City=="Hawea"; Shipping=Weight*337
Name= Shipping to Invercargill; City=="Invercargill"; Shipping=Weight*300
Name= Shipping to Kaikohe; City=="Kaikohe"; Shipping=Weight*131
Name= Shipping to Kaitaia; City=="Kaitaia"; Shipping=Weight*138
Name= Shipping to Kawakawa; City=="Kawakawa"; Shipping=Weight*122
Name= Shipping to Kawerau; City=="Kawerau"; Shipping=Weight*113
Name= Shipping to Kerikeri; City=="Kerikeri"; Shipping=Weight*140
Name= Shipping to Kumeu; City=="Kumeu"; Shipping=Weight*75
Name= Shipping to Levin; City=="Levin"; Shipping=Weight*121
Name= Shipping to Masterton; City=="Masterton"; Shipping=Weight*131
Name= Shipping to Mt Maunganui; City=="Mt Maunganui"; Shipping=Weight*93
Name= Shipping to Napier; City=="Napier"; Shipping=Weight*111
Name= Shipping to Nelson; City=="Nelson"; Shipping=Weight*229
Name= Shipping to NewPlymouth; City=="NewPlymouth"; Shipping=Weight*106
Name= Shipping to Oamaru; City=="Oamaru"; Shipping=Weight*266
Name= Shipping to Orewa; City=="Orewa"; Shipping=Weight*79
Name= Shipping to Palmerston North; City=="PalmerstonNorth"; Shipping=Weight*118
Name= Shipping to Queenstown; City=="Queenstown"; Shipping=Weight*381
Name= Shipping to Rangiora; City=="Rangiora"; Shipping=Weight*278
Name= Shipping to Rotorua; City=="Rotorua"; Shipping=Weight*93
Name= Shipping to Russell; City=="Russell"; Shipping=Weight*118
Name= Shipping to Silverdale; City=="Silverdale"; Shipping=Weight*77
Name= Shipping to Taumaranui; City=="Taumaranui"; Shipping=Weight*143
Name= Shipping to Taupo; City=="Taupo"; Shipping=Weight*118
Name= Shipping to Tauranga; City=="Tauranga"; Shipping=Weight*93
Name= Shipping to Thames; City=="Thames"; Shipping=Weight*115
Name= Shipping to Timaru; City=="Timaru"; Shipping=Weight*249
Name= Shipping to Tokoroa; City=="Tokoroa"; Shipping=Weight*98
Name= Shipping to Wanaka; City=="Wanaka"; Shipping=Weight*380
Name= Shipping to Wanganui; City=="Wanganui"; Shipping=Weight*131
Name= Shipping to Warkworth; City=="Warkworth"; Shipping=Weight*83
Name= Shipping to Washdyke; City=="Washdyke"; Shipping=Weight*277
Name= Shipping to Wellington; City=="Wellington"; Shipping=Weight*162
Name= Shipping to Wellsford; City=="Wellsford"; Shipping=Weight*83
Name= Shipping to Westport; City=="Westport"; Shipping=Weight*240
Name= Shipping to Whakatane; City=="Whakatane"; Shipping=Weight*118
Name= Shipping to Whangarei; City=="Whangarei"; Shipping=Weight*75
Name= Shipping to Nationwide; TotalWidth=="8"; Shipping=8





Any Ideas why this is happening. I cant see anything wrong.

Thanks

Syntax error.. after changing rates 15 Aug 2015 14:48 #2

Dear Gareth,
The error says that it has trouble correctly parsing the expression "Shipping=Weight*"...

Take a look at the rule for Havelock North:
Name= Shipping to Havelock North; City=="HavelockNorth"; Shipping=Weight*

Apparently, you forgot to add the actual cost per kg, so the plugin is unable to convert this to a proper mathematical expression (since the right term of the multiplication is missing)...

Add the correct cost and things should work fine again.

Best regards,
Reinhold

Syntax error.. after changing rates 15 Aug 2015 23:26 #3

  • gareth
  • gareth's Avatar Topic Author
Ah...Of course thanks! Missed somehow! Thanks

[SOLVED] Syntax error.. after changing rates 16 Aug 2015 17:41 #4

Problem solved.
  • Page:
  • 1