close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

clear cart after checkout

Thread began 6/11/2015 11:13 am by John | Last modified 6/11/2015 5:15 pm by Ray Borduin | 1433 views | 6 replies |

John

clear cart after checkout

On the checkout cart page to proceed to process payment, while it takes me to authorize.net to finalize transaction, is there any way to clear cart? or how have others similar handle this? While I see there's a checkout_failure.php and a checkout_success.php page, I'm not sure if either indeed get used here. I tried contacting authorize.net but they didn't seem to have an answer except to read their AIM documentation.

Sign in to reply to this post

Ray BorduinWebAssist

You are using SIM and not AIM. If you transitioned to AIM you would have a lot more control over what happens during checkout and that is probably why they are referring you to it.

After they finalize their payment on authorize.net, then they should be returned to the page specified as the x_receipt_link_url hidden form element. You can add the url to the checkout_success.php page to that field and it will clear the cart automatically.

From the authorize.net documentation:
x_receipt_link_url Value: The URL of the link or button that directs the customer back to
the merchant’s web site.
Notes: For this field to be accepted as valid by the payment gateway,
you must also configure the receipt link URL in the Merchant Interface.
If the receipt link method is LINK, the URL specified becomes the href
value of the hyperlinked text. If the receipt link method is GET or POST,
the URL becomes the action of the HTML form.

Sign in to reply to this post
Did this help? Tips are appreciated...

John

So far setting Receipt Page Receipt Method with a link back to checkout_successful.php seems to work, thanks. Now if only I can get this other issue of clicking the add to cart with no checkboxes thing to properly work...

Sign in to reply to this post

Ray BorduinWebAssist

Attach a copy of the page and I can suggest how to adjust it.

Sign in to reply to this post
Did this help? Tips are appreciated...

John

attached, thanks.

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

Ray BorduinWebAssist

Try adding this code after line 48:

php:
<?php

if ($WADbSearch2->whereClause == "") {
  
$WADbSearch2->whereClause "0=1";
}
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

John

working like a charm, thanks again.

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