Error in Orders tab of eCart Checkout Wizard
while executing onClick in WA_Checkout_DB_Preset.htm, the following JavaScript error(s) occurred:
in file 'WA_Checkout_DB_Preset":
getOrderDataBindings is not defined.
eCart6
DW CC
Mac OSX Mavericks
while executing onClick in WA_Checkout_DB_Preset.htm, the following JavaScript error(s) occurred:
in file 'WA_Checkout_DB_Preset":
getOrderDataBindings is not defined.
eCart6
DW CC
Mac OSX Mavericks
can you provide details on the steps to reproduce the error please.
with cart.php open, I select WebAssist > eCart > Checkout Wizard
I go through the Settings, Payments, Shipping, and Tax tabs
I select the Orders tab.
The Connection dropdown shows my defined connection.
The Orders table preset dropdown shows "Default - local"
The Order details table preset shows "Default"
Under Database Settings, it says "eCart can automatically create the necessary tables and columns for you to store order information in your database. Select the Create using preset checkbox to have this done for you. If you are using your own custom database and want to bind this information manually, deselect the preset checkbox."
Alas, I see no such checkbox. If click on the "Define" button next to the Orders table preset dropdown, I'm presented with a screen that shows an orders table that does not reflect the structure of mine. If I go back and click on the Define button next to the Connection dropdown, click on my connection and click on Done, I can then go to the Define button next to Orders table preset and see the table I have defined. But if I pick any column to bind a field to, I get the error referenced in this thread.
Maybe I just don't understand what this tab is all about.
In general, eCart seems to be a little too prescriptive. There is way too much styling, making it hard to easily integrate into an existing site style. I like to use these tools to shorten up my development time and do some tasks I'm too lazy to do, but I think I'm spending too much time stripping out styling and making other such adjustments. I can see why many users like to use WA style settings, but if there was something that was really generic, it would be great for me.
OK, I see. This is a bug that i have logged, it should be corrected shortly, it should allow for the use of your own table instead of forcing one of the presets. I will let you know an update is availbale to correct this.
as for the styling, the checkout wizard has options to use an un-styled form on the last tab. if you want to remove the styling completely, you can remove the the CSS reference page or delete the css file.
you can also use form builder to create your own form styles to match the site, save the form design as a preset and select that for use in the checkout wizard.
also, the display manager allows for creating custom designs to match your site and use later.
Thanks Jason.
After completing the checkout wizard, I notice that that clicking the "Continue" button on the checkout page goes to a blank screen. Not sure where the error is. I put in PayPal sandbox credentials.
Any ideas? Is this related to the problem with the wizard, do you think? I have a lot of projects coming up and I really want this to work easily.
a blank page means that a php error is occurring but error reporting is turned off.
to turn error reporting on, add the following code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
once we know what the error is, we will be able to troubleshoot the cause.
references an undefined function curl_init() ......WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php on line 539
this means that cURL is not enabled in the php server settings. cURL is needed in order to send the order information to the gateway for processing.
you will need to contact the host to have cURL enabled on the server by editing the PHP.ini file.
http://stackoverflow.com/questions/6382539/call-to-undefined-function-curl-init
Jason,
Took care of the curl problem.
You've been super helpful so far and I hate to be a pain, but now I get this error:
Warning: Cannot modify header information - headers already sent by (output started at ... /checkout.php:11) in ..../confirm.php on line 96
Thanks for your help and patience
see this thread for details on troubleshooting the headers already sent error:
http://www.webassist.com/forums/posts.php?id=19285
the key to locating the problem is in this part:
(output started at ... /checkout.php:11)
it means that the output causing the problem is somewhere between line 10 - 12. it is generally blank space or line between a closing php tag: ?> and an opening php tag <?php
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.