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

Input value= help on checkout_form.php for ps4_orders table insert.

Thread began 10/07/2014 2:27 pm by Jared Lui | Last modified 10/08/2014 9:47 am by Jared Lui | 1741 views | 8 replies |

Jared Lui

Input value= help on checkout_form.php for ps4_orders table insert.

Hi Jason, I got the the fields added to the checkout_form and updated the store_cart.php recordset values correctly I believe. However I need your assistance with the proper code to use as the "value" for the input fields. I am using radio groups therefore I couldn't copy one of the existing fields. Plus, the existing fields have additional code in the values as they do the same as billing info check etc.

Here is the "value" code for one of the current input text fields in the shipping section:
<?php echo((isset($_GET['valid']))?(ValidatedField("confirm","shipping_firstname")):(isset($_SESSION["eCartCheckoutForm_shipping_firstname"])?$_SESSION["eCartCheckoutForm_shipping_firstname"]:$row_WAATKusers['UserFirstName'])); ?>

What is the part of this code that I would need for my radio button values? Assuming my radio button name is OrderMode

Sign in to reply to this post

Jason ByrnesWebAssist

the value for the radio button would be static, the dynamic code is needed to determine if it should be checked or not, you probably don't need it.

Sign in to reply to this post

Jared Lui

Hmmm, the reason I asked is because it's not populating the DB. I must have something wrong here then. I don't get any errors and the record saves to the orders table but the new columns are blank.

Here's my radio group:

<p>
<label for="OrderMode" >Delivery Method:</label>
<span id="spryradio1">
<span class="fieldGroup">
<label>
<input type="radio" name="OrderMode" value="Pick-up" id="OrderMode_0">
Pick-up</label>

<label>
<input type="radio" name="OrderMode" value="Drop-off" id="OrderMode_1">
Drop-off</label>

<label>
<input type="radio" name="OrderMode" value="Ship" id="OrderMode_2">
Ship</label>

<span class="radioRequiredMsg">Please select a delivery method.</span></span></span>
</p>

Sign in to reply to this post

Jason ByrnesWebAssist

The radio group code loooks fine. If you need help in setting this up, please sign up for a premiere support appointment:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

Jared Lui

I might if I can't sort this out pretty quickly.

Do you know off hand if that info has to be saved and called from a session? I am pretty sure I have the front and back correct. Seems like something in the middle is missing.

Sign in to reply to this post

Jason ByrnesWebAssist

sit may depending on the checkout method being used, it would worth a try.

Sign in to reply to this post

Jared Lui

How can I tell what checkout method I am using?

Sign in to reply to this post

Jason ByrnesWebAssist

. . . you select the checkout method in the Admin section for the gateway.

Sign in to reply to this post

Jared Lui

The short answer is, YES. You do have to save any fields in a session that you intend to enter in the orders table.

Around line 222 on the process_transaction.php page you have to add the sessions in an area marked "Store the submitted form in the session".

Then you have to add hidden input fields in the form(s) further down that same page. I added them to the "Other gateways" form in all three sections and it worked. I did not add hidden fields to the individual gateway forms even though I am using PayPal Express as the gateway.

NOTE: I am using a bastardized checkout system in the admin section of my store instance for internal clients and bypass the payment process. Otherwise I guess you might need to add hidden input fields to the PayPal gateway form as well (or SagePay, Authorize.net, etc)

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