close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Syntax error

Thread began 5/22/2013 6:00 am by bjgarner241692 | Last modified 5/22/2013 10:59 am by Jason Byrnes | 799 views | 3 replies |

bjgarner241692

Syntax error

Just made a shipping rule change, using the eCart Interface.
Browsing page I get this error: Parse error: syntax error, unexpected ')' in C:\Inetpub\vhosts\......\httpdocs\WA_eCart\eCart1_PHP.php on line 95

Viewing the code in Dreamweaver it tells me:
There is a syntax error on Line 95.

php:
//eCart Rule

function WAEC_eCart1_HST()  {
  $totalTax = 0;
  if (true && ()) {        LINE 95
    //Result
  }
  return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule


Note, I made a shipping rule change, this is a tax rule. The tax rules precede the shipping rules in the page.

Attached Files
eCart1_PHP.txt
Sign in to reply to this post

Jason ByrnesWebAssist

the error is the there is not trigger:

if (true && ())

the empty parenthesis are the syntax error.

when creating the rule what did you enter for the rules trigger?

Sign in to reply to this post

bjgarner241692

I attached the entire page to the previous post.
The trigger for the shipping rule I just added is the presence of a specific item in the cart.
The trigger for the Tax rule that is causing the failure was the existence of a Session Value but that seems to have been completely overwritten!
Very disappointing!

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, I saw the page attached to your previous post, but that doesn't tell me anything except what we already know:
There's a Syntax Error

The code does not tell me anything about the settings used for the tax rule to generate the code with the Syntax Error, hence my question.

Perhaps if you could send a screen shot of the tax Rule and the trigger you are using, i can tell why the code is being generated incorrectly.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...