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

eCart Inventory Control - Solution Recipe Tutorial

Thread began 6/20/2010 7:46 pm by dlovas275157 | Last modified 11/14/2011 9:42 am by araujo.silvio429630 | 3413 views | 3 replies |

dlovas275157

eCart Inventory Control - Solution Recipe Tutorial

Please add a solution recipe or tutorial explaining how to accomplish inventory control when using eCart 5.

Many people have expressed confusion how to set this up in the forums, and there does not appear to be a clear solution how to easily set this up.

As a key part to a shopping cart application, there should be a step-by-step guide to integrating inventory control into a shopping cart built with eÇart 5 (not power store).

Thanks for listening.

D

Sign in to reply to this post

Ian

Inventory control can be as simple or as complicated as you want to make, with many different examples to be written based on the different payment providers available through eCart.

Basic inventory control could be a simple Quantity field in the database - easy enough - but then how you go about updating stock once purchased is a little trickier.

For example, if you use PayPal then you would create an IPN script (see their web site) and introduce WebAssist behaviors to the IPN page to update the stock records as the script parses the content of the cart.

Different payment providers would provide examples of their own scripts if they support this kind of thing.

You could also manage the update of the stock on a thankyou / confirm page of your site, but this isn't necessarily reliable and I prefer to use the back end processing provided by the payment provider.

Cheers
Ian

Sign in to reply to this post

shane_faulkner129660

WebAssist behaviors to IPN page

Hi, Ian.

I was just reading this post because I am using the Ecart 4.x with ASP.

I have an IPN page that works great with single items.

However, when I use the Ecart for multiple items, the "item_number" is returning as blank from PayPal.

I noticed in the Ecart Checkout form that the "item_number" actually has an underscore after it, followed by the Ecart increment.
(<input type="hidden" name="item_number_<%=eCart1_Index+1%>" id="item_number_<%=eCart1_Index+1%>" value="<%=WA_eCart_DisplayInfo(eCart1, "ID")%>" />)

It posts to PayPal just fine. All the multiple items are displayed perfectly.

However, after payment, the IPN page gets nothing.
I have it returning to a "thank you" page, and the querystring shows "item_number" as equal to nothing. (i.e. &item_number= )

To what are you referring when you say that WebAssist behaviors could be added to an IPN page?

I assume that is true, somehow, but not sure how to do it.
Also... not sure how PayPal is returning the "item_number_ecart1_index+1" value/string.


Thank you!
Shane

Sign in to reply to this post

araujo.silvio429630

Stock control

¿how I can fix the stock of control when I have several fields a single record?

This code works fine with a field
<?php
$eCart1->MoveFirst();
while (!$eCart1->EOF()) {
$FinalStack = $eCart1->DisplayInfo("Subtractions");
$idProduct = $eCart1->DisplayInfo("ID");

mysql_select_db($database_sis, $sis);
$subtractions = mysql_query("UPDATE articulo SET can1 = '$FinalStack', WHERE Id = '$idProduct'") or die(mysql_error());
$eCart1->MoveNext();
}
$eCart1->MoveFirst();
?>

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