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

I need to add a text field

Thread began 1/24/2010 4:46 pm by micja | Last modified 1/26/2010 7:29 pm by Dani Chankhour | 873 views | 6 replies |

micja

I need to add a text field

I've been reading through forums and PHP, and I know it is possible, but I am not really finding what I need to actually accomplish the task. Any help would be appreciated. I need to add a "notes" field to the order update (shipping confirmation) page. I would like to be able to have the OPTION to add a note to the customer in the shipping confirmation email.

I am assuming this would involve adding a text field labeled Notes in the order update PHP page, but then I also will have to create the PHP command or require line in the email shipping confirmation template that would actually look for content in the update page, and if there is none, skip it, but if there is something, include it in the email. I am working on learning a lot more PHP, but I must admit I am not there yet...

OR, is there a built-in in the Powerstore 2 software that writes the code for me? I have Powerstore 2, and I am a subscriber to Web Assist...

Thanks,
Michelle

Sign in to reply to this post

Office Guy-172461

See if this thread helps:

showthread.php?t=7533

Sign in to reply to this post

micja

Thanks, Officeguy, I read through the thread you recommended and it was good information, but I'm afraid it didn't help me with mine. What I need to add is a kind of "Note to Customer" field in the admin "Update Order" page that would insert a note or information in the Shipping Confirmation email so that when a a shipping confirmation is sent to a customer, we can add other information for them--or not. I'm not sure which extension(s) would make this the simplest, or what order to take the steps in.

Sign in to reply to this post

Dani Chankhour

The first thing you will need to do is add a text field to your orders_Update.php page.

The second thing is to add it to the email, which you could do with Universal Email or update it manually by updating the shipping_confirm.php page which is located under the WA_Universal_Email folder/Email_Templates folder. and the code you will need to add could be something like this:

<?php if(isset($_POST['customernote'])) { ?>
<p>Note to Customer:</p>
<p><?php echo $_POST['customernote']; } ?>
</p>

assuming you text field is called customernote.

Sign in to reply to this post

micja

Thanks! I will give this a try this afternoon...

Sign in to reply to this post

micja

Originally Said By: Dani Chankhour
  The first thing you will need to do is add a text field to your orders_Update.php page.

The second thing is to add it to the email, which you could do with Universal Email or update it manually by updating the shipping_confirm.php page which is located under the WA_Universal_Email folder/Email_Templates folder. and the code you will need to add could be something like this:

<?php if(isset($_POST['customernote'])) { ?>
<p>Note to Customer:</p>
<p><?php echo $_POST['customernote']; } ?>
</p>

assuming you text field is called customernote.  




Okay, so far I have gone into the Admin/orders_update.php and placed the following code after the tracking url field:

<p>
<label for="customernotes">Note to Customer:</label>
<input type="text" name="customernotes" id="customernotes" size="32" />
</p>

I have saved and uploaded the page, then go into the page online through Admin and the field doesn't appear on the page...

I do find an "Invalid markup" at the line: <div class="detailBox"> and the properties box says: Marked invalid because it is an overlapping or unclosed tag. If the display looks correct, it is safe to delete these tags."

The design view does show the Label and the field correctly. It just doesn't seem to upload to the site. I doublechecked my permissions and it is set to 755 for this page.

Sign in to reply to this post

Dani Chankhour

try deleting and re-uploading the page to your server (make sure to create a back up) i just did a quick test and i was able to add the field under the tracking url and the field is showing up correctly.

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