close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS3 & eCart5 - error

Thread began 4/07/2010 10:52 am by msjj000 | Last modified 4/14/2010 5:36 pm by Eric Mittman | 1732 views | 7 replies |

msjj000Beta Tester

PS3 & eCart5 - error

Hi WA,

I've had no problems with PS2 and either eCart4.5 or 5.x.

When creating a flat rate shipping code with any variable I receive the following error on PS3 and eCart5 displayed on screen with no other text or image displayed.

Parse error: syntax error, unexpected ')' in C:\inetpub\vhosts\e-marineworld.com.au\httpdocs\WA_eCart\WA_Store_Cart_PHP.php on line 115

I also tried removing the reference to UPS, Fedex etc in the above file (not an option that I wanted to play around with) and it appeared to work except the $ symbol replaces the last numeric character in all representations of the value of the item, the flat rate freight and the total.

I need to use the flat rate calc as UPS, etc do not operate in my geography.

Can you please assist?

Thanks, Mark.

Sign in to reply to this post

Eric Mittman

Can you post back with a copy of the cart file referenced in the error before you have removed the UPS and FedEx references? It should be easy enough to spot the error with the file and error message, I will let you know what I discover.

Sign in to reply to this post

msjj000Beta Tester

Thanks Eric,

Here it is.

Mark.

(PS3 without create view priv and eCart5)

Attached Files
WA_Store_Cart_PHP.zip
Sign in to reply to this post

Eric Mittman

It looks like the shipping triggers got overwritten with blank values. You should replace the lines in your store cart page with those same lines from the downloaded version of the page. Instead of looking like this:

php:
if (false && ()) {



They should look like this:

php:
if (true && (("USPS"=="USPS")&&(isset($_SESSION["WA_Store_Cart_USPS_Quote"]))&&(floatval($_SESSION["WA_Store_Cart_USPS_Quote"]) != 0))) {



You will need to do this for the USPS, FedEx and UPS shipping rules. It does not matter if you are not making use of them, if there are syntax errors in them you will not be able to display pages that rely on this included cart file.

Sign in to reply to this post

msjj000Beta Tester

Hi Eric,

Thanks. The rule now works however the dollar symbol at the end still appears cutting off the second decimal point and it also rounds up. Eg the second flat rate shipping code for items less than 5.0kg is 12.75 and it displays as 12.8$ It does the same for the cart items.

Mark.

Attached Files
WA_Store_Cart_PHP.zip
Sign in to reply to this post

Eric Mittman

Your store cart file looks like it has been corrupted, possibly by making edits to it with eCart 4 then upgrading to eCart 5.

You should reload the default version of this file from the downloads area. This should get it all back in order and then make edits only with eCart 5. When I try this it seems to get it all back in order. Please post back and let us know if you have any further troubles with this.

Sign in to reply to this post

msjj000Beta Tester

Hi Eric,

Thanks. I took your advise and started again.

It looks like the shipping rule now works although I'd like you to have a once over if that's ok. Likewise there's potentially an unusual response with the coupon codes at the end of this reply that if you could comment on it would be appreciated.


I grabbed the original from the zip and added the flat rate below 5.0 kg rule and the flat rate above 5.01 kg rule and got the following error.

Warning: Missing argument 12 for WA_eCartDefinition::WA_eCartDefinition(), called in C:\inetpub\vhosts\ridewerx.com\httpdocs\store\WA_eCart\WA_Store_Cart_PHP.php on line 5 and defined in C:\inetpub\vhosts\ridewerx.com\httpdocs\store\WA_eCart\WA_eCart_Definition_PHP.php on line 42

If I then clicked on My profile the following error also ocurred with the above error.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\inetpub\vhosts\ridewerx.com\httpdocs\store\WA_eCart\WA_eCart_Definition_PHP.php:42) in C:\inetpub\vhosts\ridewerx.com\httpdocs\store\WA_eCart\WA_eCart_Definition_PHP.php on line 465

eCart 5 appears to work on my PS2 store but not here.

The only other changes I have made are the session commit statement for the user and admin login and localised the states and local gateway. The same shipping rule was added in PS2 store. Its the WA_Store_Cart_PHP.php file that appears to cause the problem.

I then downloaded the file and started from scratch again and received as error on line 116 of th WA Store Cart PHP file.

When I started for a third time with both the WA Store Cart and the WA eCart definition file (as eCart5 appears to update both) the same errors ocurred. When I removed the reference to UPS/Fedex/etc it appeared to work regardless of the version of the WA Store cart file.

So is the error in the WA eCart definition file? Is there anything else that I need to check/change?

The other thing I have noticed since making this change is if you enter a coupon code it works fine, if you then enter a coupon for a greater value that works. If you then enter the prior coupon it doesn't update to the prior value. When I added coupons to PS2 the cart updated correctly. Is this correct or can you assist in recifying this as I would prefer the codes to update appropriately? Codes are tesla1 and RWbi042010 respectively.

I've attached the relevant files.

Thanks, Mark.

Part 2- when the same procedure was followed on another site the following error ocurred and the checkout process is not able to be completed.


Fatal error: Call to undefined method WA_Store_Cart_Definition::WAEC_WA_Store_Cart_USPSShipping() in C:\inetpub\vhosts\e-marineworld.com.au\httpdocs\store\WA_eCart\WA_eCart_Definition_PHP.php(13) : eval()'d code on line 1

Attached Files
WA_eCart_Definition_PHP.zip
Sign in to reply to this post

Eric Mittman

It seems that you might be experiencing some issues with your PowerStore cart when updating it with eCart 5. I have opened a ticket for you on this issue so that it can be looked into further. To check the status of your ticket or update it login and visit your support history.

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