close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

ECart Help Needed

Thread began 5/09/2012 3:48 pm by Steve E | Last modified 5/17/2012 4:58 am by Steve E | 1549 views | 12 replies

Steve E

Resolved

Hi Jason,

Just thought I better let you know the outcome of the support session with Ray, every issue was resolved in about half an hour, probably less.

1/
The solution to to the issue with the orders being overwritten if a second order is placed within half an hour from the first order by the same user whilst maintaining a logged in status, was not to try and store the users session variables in an array and try and recreate the session after destroying it completely.
It is to simply kill the eCart session for the OrderID at the bottom of the checkout_success page ...

<?php
unset($_SESSION["eCart1_OrderID"]);
$eCart1->ClearCart();
?>

2/
Inventory control was achieved simply by adding a couple of lines of code to the ipn page within the while loop from the PayPal form // WA eCart Get Form PaypalIPN.xml ...

mysql_select_db($database_dB_NAME, $dB_NAME);
$InvUpdate = "UPDATE products SET ProductStock = ProductStock -" . $ATC_Quantity. " WHERE ProductID = " . $ATC_ID;
mysql_query($InvUpdate,$dB_NAME);

3/
The e-mail was being sent from a recordset created on the ipn page, it should be sent from the checkout form responce from PayPal form, to the 'payer_email' as the record set would not be availible at the ipn post back action.
Only certain values are posted back and that is why you can not include all of the order information in the order confirmation e-mail.

I hope this helps anyone who is trying to achieve the same.

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