close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Trying to add free shipping coupon and now I'm getting error message when loading sit

Thread began 5/24/2010 12:44 pm by larsentim278054 | Last modified 5/24/2010 12:58 pm by larsentim278054 | 662 views | 2 replies

larsentim278054

Trying to add free shipping coupon and now I'm getting error message when loading sit

I tried to add a free shipping coupon code to my cart (I'm using PowerStore v3.0) and I followed these instructions:

I added a set session variable "couponCode" to the cart page. I then did this:

On the discounts tab, create a new rule, set the trigger to:If Session Variable "couponcode" exists AND Based on Session Variable value: If the session variable "couponcode" has a value of "FREESHIP"

For the calculation, use Based on UPS Shipping rate value.

Then - I uploaded the new cart page and the new WA_Store_cart.php page. Once I did that, I could not load any page on my site. I received:

Parse error: syntax error, unexpected ')' in /home1/thelarse/public_html/WA_eCart/WA_Store_Cart_PHP.php on line 115

SO - I decided I'd undo what I did and come back here for help. Except that when I removed the discount code from the ecart setup, and removed the set session variable on the cart page - and then re-uploaded the two files - it didn't undo the error message...

Although - now the error message states that the error is on line 114, not 115.

We are launching the site today so I really need some help with this as soon as possible. Can you help?

The line that it's specifying is this (in the wa_store_cart_PHP.php) page:

//eCart Rule
112 function WAEC_WA_Store_Cart_USPSShipping() {
113 $totalShipping = 0;
114 if (true && ()) {
115 $totalShipping += floatval($_SESSION["WA_Store_Cart_USPS_Quote"]) + 0;//Result
116 }
117 return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
118 }

I added the line numbers so you can see where it's pointing to (line 114) which is:
if (tru&& ()) {

What's going on? I undid what I changed.. I figured that my instructions weren't correct because they were given to me for PowerStore V2.0 and this is v3.0 which already has some coupon code setup?

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...