close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

datepicker and action buttons at bottom of cart (Continue Shopping, Clear Cart, Update, Checkout) not working

Thread began 2/05/2015 7:47 am by marsha431457 | Last modified 2/06/2015 9:05 am by Jason Byrnes | 2181 views | 13 replies |

marsha431457

datepicker and action buttons at bottom of cart (Continue Shopping, Clear Cart, Update, Checkout) not working

No matter what date is chosen, it shows up as 12/31/1969. How do I fix that?

Also the action buttons at bottom of cart (Continue Shopping, Clear Cart, Update, Checkout) do not work, they go back to the form page. What needs to be done?

http://www.bandofhonor.com/bracelets_aluminum.php

Attached Files
bracelets_aluminum.php
Sign in to reply to this post

Jason ByrnesWebAssist

in the eCart object what is the data type for the Date column? the date picker is passing the date as a string, so the Data Type for the Date column should be text.

for the issue with the buttons on the cart display page, I will need to see a copy of that page to investigate the code.

Sign in to reply to this post

marsha431457

cart_static.php attached

Attached Files
cart_static.php
Sign in to reply to this post

Jason ByrnesWebAssist

your cart display page has a validation server behavior on it still for validating the add to cart button. it is trying to validate the add to cart button one the checkout and other buttons on the display page are pressed.

remove the server validation behavior from the cart display page.

Sign in to reply to this post

marsha431457

There is so much stuff in there I am not sure what to remove. I had previously restored to an older version and thought they were gone. Can you tell me exactly what part of the source code I need to remove? Is it listed simply as WA Server Validations in the Server Behaviors window or are there other things in there that also need to come out?

Sign in to reply to this post

Jason ByrnesWebAssist

on the page you sent, the server validation code is at lines 10 - 29:

<?php 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "bracelets_aluminum.php";
$_SESSION['WAVT_cartstatic_769_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ($boh->DisplayInfo("Color") . "",true,1);
$WAFV_Errors .= WAValidateRQ($boh->DisplayInfo("Size") . "",true,2);
$WAFV_Errors .= WAValidateRQ($boh->DisplayInfo("LogoLeft") . "",true,3);
$WAFV_Errors .= WAValidateRQ($boh->DisplayInfo("LogoRight") . "",true,4);
$WAFV_Errors .= WAValidateDT($boh->DisplayInfo("Date") . "",true,"\b([12]\d|3[0-1]|0[1-9])\/(1[0-2]|0[1-9])\/\d{4}\b","","",false,".*","","",true,5);
$WAFV_Errors .= WAValidateRQ($boh->DisplayInfo("Inscription1") . "",true,6);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"cartstatic_769");
}
}
?>
Sign in to reply to this post

marsha431457

Pretty much what I thought but wanted to be sure! Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

marsha431457

OK, the datepicker is still not working, although I changed the field to text in the cart object and uploaded the WA eCart folder.

Also: filled out bracelets order page and submitted to empty cart. Cart was correct in all respects BUT when I clicked the "Continue Shopping" button i got this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/04/8238804/html/cart_static.php:11) in /home/content/04/8238804/html/cart_static.php on line 831

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.


the error on the cart display is probably a blank line between php code blocks where the server validation code used to be.

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