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

Why does Checkout Button Url string substitutes ampersand for question mark?

Thread began 5/15/2013 11:18 am by rod431909 | Last modified 5/15/2013 3:11 pm by rod431909 | 1748 views | 8 replies |

rod431909

Why does Checkout Button Url string substitutes ampersand for question mark?

I recently ran the eCart checkout wizard and was testing the site. When I click on the Checkout Button it would take me to a "page not found" error. I realized that the url string showed checkout.php&13=13. When I changed the ampersand to a question mark (physically in address bar) it works. In the page where the checkout button is the form action is <form action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post" >. I have no idea where the ampersand is coming from.

Sign in to reply to this post

Jason ByrnesWebAssist

sends a link where i can see the problem please and steps to reproduce.

Sign in to reply to this post

rod431909

Go to http://www.promotables.com/Product_Pages/Acrylics_Results.php and add a product to the cart. On the cart page click the checkout button.

Sign in to reply to this post

Jason ByrnesWebAssist

looking at the source code, it looks right, can you send a copy of the page so i can see the php code.

Sign in to reply to this post

rod431909

Please see attached.

Sign in to reply to this post

Jason ByrnesWebAssist

looks like the code for the checkout redirect is not executing correctly for some reason, I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

rod431909

Please see private message.

Sign in to reply to this post

Jason ByrnesWebAssist

what version of eCart are you using?

I corrected the probelm by changing line 47:

php:
if (strpos($Redirect_redirStr, "?") < 0)     {



to:

php:
if (strpos($Redirect_redirStr, "?") === false)     {



in looking at checkout pages created with the current 5.0.7 version, it uses the syntax that i changed the code to. If you are using a previous version, i suggest upgrading to the newer one.

Sign in to reply to this post

rod431909

Interesting. I am using 5.0.7. I allow the possibility that that particular page was created earlier than the upgrade. Thanks again Jason. Don't know what I'd do without you!

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