ASP.NET - shopping cart. - Asked By Priyanka on 28-Jan-12 01:31 AM

i want to sell product online using paypal.i am not good in coding . will i have to create my own shopping cart or paypal provide this.. bcoz i dont know how to create custom shopping cart...
Suchit shah replied to Priyanka on 28-Jan-12 01:57 AM
Yes, you have required to create a Shopping cart. you have to create a custom shopping cart. with the paypal you can able to do the payment integration.

Paypal is mainly used for the Online Payment but for the Shopping cart and all the products you required to create your own shopping cart after creating this for the receiveing of payment online you can integrate with Paypal

Steps to integrate Paypal API to ASP.NET:

Step-1) Create Paypal Merchant Account @ using valid Mail Account

Step-2) Provide Debit or Credit Card No and Its Type.

Step-3) Develop ASP.NET Page According To Your Requirement

Step-4) Integrate API by Passing Website Variables as a Input to PayPal Account Using our Mail Account writing customized Business logic

dipa ahuja replied to Priyanka on 28-Jan-12 06:13 AM
I can give you the basin info about the shopping cart project

1. Decide how many tables you will required
2. Decide the relationships between those tables
3. Choose proper template for your website
4. Choose no. of WebPages you will need ,and navigation from one page to another..

Now the real cart process:

For Shopping Cart you have two options, Either you can use the shopping card which is available with readymade functionality or create your own cart process:
Now what you have to do is:
Put a page like items, in items page put all the categories of items, for ex if you are making of electronic shop then product categories will be Television, dvd player, telephones, Home theatres etc..

Now use will select an item - > he will be redirected to the ItemDescription page where user will get more info about that particular item
Suppose you are displaying your item in the page "item.aspx"
now put one button "Add To Cart" iand when user clicks on it.. add the selected item into tmp table with the fields like itemname, price,userId/userName etc...
now suppose you have page cart.aspx.. here you can take gridview and bind it with the "tmp" table with the items that user has selected .

so the query of gridview will be "Select itemName,Price from tmp where username=<currentlyLoginUSer>"..

start this way.. you will get more idea when you code this....
 and paypal process: (.zip file) 

Basic Steps
  1. Sign up for a account. They have personal, premier, and business accounts. You will need to upgrade to a premier or business account to accept credit cards.  PayPal is always happy to let you upgrade.
  2. Download the source code above
  3. Put in your PayPal email address in the SendPayPal.aspx page
  4. Tailor the Master Page to have the look desired
  5. Add your products to the xml file
  6. Add your pictures to the pictures folder 
Devil Scorpio replied to Priyanka on 29-Jan-12 03:01 PM


Here is the easy shopping cart

Sample Image - shopcart.gif
here is the code

using System;
using System.Data;
using System.Data.OleDb;

namespace Coder2k
    public class Cart
        private string strConnection;
        public Cart(string conn)
            strConnection = conn;

Refer the website for code & info