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

Validation and other items

Thread began 10/27/2017 11:57 am by Steve | Last modified 10/27/2017 6:15 pm by Ray Borduin | 26 views | 7 replies |

Steve

Validation and other items

where do we fix the validation when you enter 10 digits for phone but the wizard generated form complains?

The logic on eCart seems a bit confusing..
1) the Wizard pages can not be regenerated right? Meaning you need do a full regeneration if you're concerned there is an error.
2) is there a basic expected flow? Add to cart -> checkout -> take personal and billing info OR add to cart -> some confirm page (confirm.php) where you edit or delete then move to final Checkout page?

Frustrating also when you update a Add to Cart button but the attributes don't update the function...

Battling away but growing weary.

Sign in to reply to this post

Ray BorduinWebAssist

That looks like a client validation message. So it is probably on the field itself. If you post a URL I could take a look.

1) The wizard shouldn't be re-run after customization. The individual components on the page can be edited through server behaviors or dreamweaver directly.

2) You can do it however you want, but usually people do Add to cart - > View and update cart - > Checkout

I'm not sure what you are editing or where. It might make sense to give me FTP information. Concentrate on one problem at a time and post specific details here and I'll help you through it.

Sign in to reply to this post

Steve

Ok, so checkout.php actually uses pages confirm_cart.php and confirm.php which could be easily thought of as being the order review pages.

I will create order_review.php and use the display manager to set a basic cart review. Then add a delete button etc

Current problem page is checkout (phone number client side validation) and not understanding why there is a continue button when the Payment Info button will actually move to complete the Order.

Sign in to reply to this post

Steve

FTP info added to PM

Sign in to reply to this post

Ray BorduinWebAssist

The issue with the phone number is in the pattern attribute on the <input> field. The formatting is done in the onblur event. You could remove or adjust both to allow more digits and stop formatting the entered value.

The continue button is there because when the wizard runs, usually the payment info div isn't visible. The continue button would refresh the cart in case the shipping had changed and expose the payment div.

Something you have done has made the payment div show by default and made the continue button not make sense.

I think the problem stems from you not having uploaded some of the necessary scripts.. Try uploading the webassist and WA_eCart directories. They both have .js and .css files that the page uses that aren't on your server. I can see there are actually 13 files referenced on your page that don't currently exist on your server.

Sign in to reply to this post

Steve

Yes, missing files was an issue. Also that the webassist directory was a virtual directory that confused paths and has now been remedied (IIS).

Sign in to reply to this post

Ray BorduinWebAssist

It looks like your page is missing a reference to the Ledge.css file that adds the validation styling. That is why the errors appear on the bottom of the page.

Sign in to reply to this post

Steve

Yes, I removed it as I am trying to only use a custom styles and bootstrap4

I returned /jq_validation/Ledge.css and the Checkout page is working nicely. Thanks!

Now I'll move to creating a clean static add to cart button and then be able to place my own variables. The current ones added keep referencing a Recordset such as "outstanding".

<?php
// WA eCart MySQLi AddToCart
if (isset($_POST["eCart1_1_ATC"]) || isset($_POST["eCart1_1_ATC_x"])) {
$ATC_itemID = $_POST["eCart1_1_ID_Add"];
$ATC_AddIfIn = 0;
$ATC_RedirectAfter = "checkout.php";
$ATC_RedirectIfIn = "";
if (function_exists("rel2abs")) {
$ATC_RedirectIfIn = $ATC_RedirectIfIn?rel2abs($ATC_RedirectIfIn,dirname(__FILE__)):"";
$ATC_RedirectAfter = $ATC_RedirectAfter?rel2abs($ATC_RedirectAfter,dirname(__FILE__)):"";
}
if ("outstanding" != "") $outstanding->FindRow("round(sum(invValue),2)",$ATC_itemID);
$ATC_itemName = "".((isset($_POST["invoiceID"]))?$_POST["invoiceID"]:"") ."";// column binding
$ATC_itemDescription = "";// column binding
$ATC_itemThumbnail = "";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = "".$_POST["eCart1_1_Quantity_Add"] ."";// column binding
$ATC_itemPrice = floatval("".((isset($_POST["x_amount"]))?$_POST["x_amount"]:"") ."");// column binding
if ("outstanding" != "") $outstanding->Index = 0;
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$eCart1->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
if ($ATC_RedirectAfter != "" && $eCart1->redirStr == "") $eCart1->redirStr = $ATC_RedirectAfter;
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?"?".htmlentities($_SERVER['QUERY_STRING']):"");
}
}
?>



Updating the behavior still fails to clear any references to a recordset so likely best to insert one in a clean blank page...

Thanks for your help Ray!

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