View Full Version : Record not updating when applied to checkout page
Travis250923
03-02-2009, 08:42 AM
So I'd like to capture the visitor information input on the checkout form into my visitors table. I've set the form to to auto fill based on records currently in the database but when using DataAssist I am not getting it to update when I change the pre-populated information. If I use the built in DW update record it doesn't pass the information to the confirm page but does update the database. If I use DataAssist I get the information passed to the confirm screen but the database is not updates. Any thoughts? I am using PHP.
Ray Borduin
03-02-2009, 09:07 AM
Where did you apply the update server behavior? It should be applied on the confirm page.
Travis250923
03-02-2009, 09:08 AM
Why does it go on the confirm page and not the checkout page?
Ray Borduin
03-02-2009, 09:10 AM
Because the checkout page submits directly to the confirm page. Look at the form action. Functionality is always applied on the page specified as the form action.
Travis250923
03-02-2009, 09:46 AM
The only problem I have with using the confirm page is that the form contains the shipping information but I was hoping to capture the billing information as well.
Ray Borduin
03-02-2009, 09:53 AM
Any information from the checkout form is available on the confirm page... Unless I'm missing something and your billing information isn't on your checkout page? All of the form information is available on the page specified as the action of the form.
On the DW bindings tab, click the plus button and add the checkout page form references to the confirm page. It will allow you to easily reference all of those values.
Most will also exist in the hidden form that is submitted on the confirm page, so really you could upate when the confirm page is submitted instead.
Travis250923
03-02-2009, 06:24 PM
So I added the form elements to the binding panel using the webassist Form Data function to expose the ecart_checkout_form. I used DataAssist on the confirm page to update the database form these variables and I get the same behavior as before. It is not updating the database record. I am using DataAssist 2.0.4
Travis250923
03-02-2009, 07:05 PM
So I guess the 20th time for applying the behavior is the trick. It is now working and I'm not sure what I did differently. Thanks
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.