close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't get it to submit

Thread began 9/09/2009 12:28 am by joe159765 | Last modified 9/10/2009 2:40 pm by Jason Byrnes | 3095 views | 9 replies |

joe159765

Can't get it to submit

So I have a confirm page, which I want people to "Confirm" before purchase. Right now if I have all possible things that can redirect set to ANY FORM POST it just automatically send it to SUCCESSFUL page. If I change the Local Checkout behavior to Button: Submit_order pressed, nothing happens and it goes back to my front page. I moved the email behavior to the successful page. The only other behaviors is the shipping and save details and orders. Also if I change those triggers, then they won't save into the database.

Another issue I'm having is the thumbnails in the carts are just showing one picture not each one individually. I have the bindings setup as suggested.

Any suggestions?

I have attached a text file with my code minus sensitive material.

Thanks!

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

Jason ByrnesWebAssist

Currently, the local checkout server is set to the Currant Page Submit trigger, Doers this trigger work? If this trigger works than you should use that for the local checkout and Store order Summary behavior.


as for the images, you are using the ADDT Show Dynamic Thumbnail behavior to set the thumbnail name, and this behavior is not in the cart display loop. move the code:
?php
// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("shopimages/".$eCart1->DisplayInfo("image"));
$objDynamicThumb1->setRenameRule($eCart1->DisplayInfo("image"));
$objDynamicThumb1->setResize(110, 110, true);
$objDynamicThumb1->setWatermark(false);
?>



to be inside the cart display loop, look for:
<?php
while (!$eCart1->EOF()) {
?>

and pate the Show Dynamic Thumbnail code just after it.

Sign in to reply to this post

joe159765

The problem is that trigger does work but it doesn't allow me to see the confirm page. After putting in the credit card information it goes to that page and then instantly to the success page.

Sign in to reply to this post

Jason ByrnesWebAssist

That is the way it is supposed to work.

The user enters credit card information on the checkout page which post to the confirm page.

On the confirm page, they click the confirm order button which processes the transaction and sends them to the success page.

Sign in to reply to this post

joe159765

I understand. But it's skipping the confirm page and going right to successful page. I mean know disrespect and appreciate your solution for the other problem which wasn't a webassist problem, but are you really taking the time to read what I am saying and asking. I have this confirm page. All the triggers are set on any page post. But it doesn't stop on the confirm page. It just skips it and goes straight to success. I need the customer to see the shipping and tax and to ok it before it goes to success page.

Any help on that would be greatly appreciated.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

I think I see the problem.


Because you are using mod rewrite and querystring variables to tell the server what page to load, the server considers every page the index page.

index.php?getpage=checkout

is the same as:
index.php?getpage=confirm

as far as the Currant page submit trigger goes.


You mention earlier that you tried using the Button submit Order pressed trigger but that did not work?


Can you try again, if it does not work, send me a new copy of the page and a URL where I can see the problem in the browser.

Sign in to reply to this post

joe159765

Ok. So I did what you asked. I forgot to mention that changing the local checkout behavior to on button submit does work for what I want...... however, what happens is, the order and order detail get saved before it is the page is submitted (so onload). I obviously want that to only be saved when the customer submits the order. If I change the order summary and order details to also trigger on submit button then nothing happens and the page goes automatically to my home page (or index.php, no variables) and nothing is submitted. I apologize for not adding that to my issue. I have tried it a hundred different ways. I've spent a few evening (a few hours at a time) on this one page.

I will attach the newest confirm.php file.

I truly appreciate your help here. I don't know why I'm having such an issue with this.

and the link for the page starts here ?getpage=cart&text=showme and the confirm page is ?getpage=confirm

The site is live so text=showme will show the checkout button. Also the credit card processing is in test mode right now.

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

Jason ByrnesWebAssist

When you go through and view source on the confirm page, look at the forms action:
<form action="/index.php" method="post" name="submitorder" id="submitorder">



it does not show the ?getpage=confirm querystring variable so the form is not posting to the confirm page.

In you page, change the forms action:
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" name="submitorder" id="submitorder">

to:
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>?getpage=confirm" method="post" name="submitorder" id="submitorder">


and set the trigger for the Store order summary and local checkout behaviors to the button submit order being pressed.

Sign in to reply to this post

joe159765

Thank you!

Thank you Thank you Thank you Thank you Thank you Thank you !

I really appreciate the help!

Also I appreciate that you guys moved to a forum for customer support. I have fixed some other things by using this forum therefore not wasting your time on previously answered items. Plus it seems to be much faster.

Thanks again!

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome, once I understood that you where using querystring variables to tell the server which page to load, it was fairly easy to see the problem.

Glad to hear you like the switch to a public forum.

Sign in to reply to this post
loading

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