close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Checking out with and without Payment Gateway

Thread began 8/16/2011 1:18 am by lr_leal239405 | Last modified 8/17/2011 5:16 pm by lr_leal239405 | 1130 views | 2 replies

Jason ByrnesWebAssist

you would need to add an if statement around the local checkout behaivor on the confirm page.


to locate the local checkout behavior code, go to the server behaviors panel and select the local cehckout behavior in the list of behaviors.

Now, change Dreamweaver to Code view, the local checkout code block will be highlighted

you will need to add a new php code block just before the opening "<?php" tag and another just after the closing "?>" tag.

for example:

php:
<?php if($yourCartName->GrandTotal() > 0) { ?>

<?php
<local checkout code>
?>
<?php 
} else { $yourCartName->redirStr "checkout_success.php"; } ?>



where "yourCartName" is the name of your eCart object.

for the shipping script problem, the eCart form has a a checkbox that when checked will copy the bill;ing info to the shipping elements using an onclick event:
<input type="checkbox" name="eC_SameAs" id="eC_SameAs" value="1" onClick="eCart_copyBillingToShipping(this);" />

you can add that same onclick code to the onblur event of your state select list.

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