ShoppingCart Programming Web Development by crazydevelopervish I am working on a ShoppingCart.... I am keeping it simple .... I have One DropDownList Product_Id … Re: ShoppingCart Programming Web Development by JorgeM I see that you are doing this code-behind. I wish I could provide you the answer via coding this by had. If you use the GUI in Visual Studio, and access the properties of the GridView, you'll notice that your "image" column should be that of an ImageField, and then you would assign the source of the image that you have stored in the … Re: ShoppingCart Programming Web Development by kkunodziya The tricky part is how he stored the image in the database. Did he save the url to the image or did he save the actual image as data type Image in the database. If second scenario, then he would need to create another page lets just call it ImageWrite.aspx . in the form load of that page he would have to write the logic for writing the image using … Re: ShoppingCart Programming Web Development by crazydevelopervish I have Table named Product Have Fields as Prod_ID int Prod_Name varchar(50) Price int Image varchar(50)----save as url I have form which have one DropDownList Having Boung To Prod_ID Coloum it shows all the data from prod_Id coloumn and have one gridview... if user selects prod_ID from dropdown then it should retrive Prod_Name, Price and Image … shoppingcart Programming Web Development by nandhinijp i want to add shopping cart in my online shopping site.i dont know exact details.which payment gateway is best and also how to integrate that with my asp.net website.please explain Re: shoppingcart Programming Web Development by ithelp Use paypal, copy and paste the code from your paypal account, not asp.net though. Re: shoppingcart Programming Web Development by SheSaidImaPregy if you're with a hosting company, sometimes they offer deals on gateways. check with them. Otherwise, use the most common ones. Just do a google search for "popular ecommerce gateways" Individual shopping cart array/contents Programming Web Development by ziggydog ….shoppingcart[arrayLen(session.shoppingcart)].prodnum = #getstock.prodnum#> <cfset session.shoppingcart[arrayLen(session.shoppingcart)].product = #getstock.product#> <cfset session.shoppingcart[arrayLen(session.shoppingcart Simple Shopping Cart Modification Help Programming Web Development by gdp_87 … BindData(); } protected void BindData() { gvShoppingCart.DataSource = ShoppingCart.Instance.Items; gvShoppingCart.DataBind(); } protected void gvShoppingCart_RowDataBound(object …"] = Instance; } else { Instance = (ShoppingCart)HttpContext.Current.Session["ASPNETShoppingCart"]; } } // A… Outputing loop into if statement. Programming Web Development by Cheesecake87 … = "FORM.quantity_" & i> <cfif session.shoppingcart[i].price EQ #tempAmount#> <cfset tempAmount = 0>…;ErrorAmount.cfm"> </cfif> <cfif session.shoppingcart[i].quantity EQ #tempQuantity#> <cfset tempQuantity = 0>… Shopping Cart Not Working Programming Web Development by donnie_darko … cart ID = ShoppingCart(PRODUCT_ID, itemNumber) Cost = ShoppingCart(PRODUCT_COST, itemNumber) OrderQuantity = ShoppingCart(PRODUCT_QUANTITY, itemNumber) Name = ShoppingCart(PRODUCT_NAME, itemNumber) …it If IsEmpty(Session("ShoppingCart")) Then Session("ShoppingCart") = ShoppingCart Session("ItemCount") … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i <…100; int numberOfItems; //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set every new cart to … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0…contents //Assuming I will pull this from ShoppingCart.java //Display Cart total //Assuming I … //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < mycarts.length…){ //Display Cart contents //Assuming I will pull this from ShoppingCart.java ShoppingCart.getDisplayData(); //Display Cart total //Assuming I will pull this from… Simple Shopping Cart..... not so simple Programming Software Development by jpsider …String [] args){ //Create two shopping carts ShoppingCart newCartOne = new ShoppingCart(totalcost); ShoppingCart newCartTwo = new ShoppingCart(totalcost); //I think I need this … newCartTwo.getCartDisplay(); newCartTwo.getTotalCost(); } } [/CODE] Here is the ShoppingCart file [CODE] import java.util.*; /*this class needs to : *… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < mycarts.length… System.out.println(total); } else{ continue; } }while(choice != 4); } } [/CODE] ShoppingCart.java The tasks left here are to create a display… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < mycarts.length…(output); //Display Cart total //Assuming I will pull this from shoppingCart.java System.out.println(total); } else{ continue; } }while(choice != 4… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < myCarts.length… = 100; int numberOfItems; //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set every new cart to "… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider …guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = … myCarts.length; i++){ myCarts[i] = new ShoppingCart(size); } int choice; String itemList = "…//Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[] myCarts = new ShoppingCart[2]; LineItem[] storeItems = new LineItem[5]; for(int …= 100; int numberOfItems; //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set every new cart to &… Re: Individual shopping cart array/contents Programming Web Development by ziggydog … new cart being set up. `<cfset temp = arrayAppend(session.shoppingCart(put the cust ID in here), structNew())>` Then if… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; int choice; String itemList…[CODE] import java.util.*; public class ShoppingCart { private int totalCost; private LineItem[] myItems…//Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0…contents //Assuming I will pull this from ShoppingCart.java //Display Cart total //Assuming I … //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < mycarts.length…(output); //Display Cart total //Assuming I will pull this from shoppingCart.java System.out.println(total); } else{ continue; } }while(choice != 4… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < …(getDisplayData()); //Display Cart total //Assuming I will pull this from shoppingCart.java System.out.println(getTotalCost()); } else{ continue; } }while(choice … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0;…lt; mycarts.length; i++){ myCarts[i] = new ShoppingCart(size); } int choice; String itemList = "…; //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set every… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0;…lt; mycarts.length; i++){ myCarts[i] = new ShoppingCart(size); } int choice; String itemList = "…; //Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set every… Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider …guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = …text.DecimalFormat; import java.util.*; public class ShoppingCart { private double totalCost; private LineItem[] myItems…//Provide a constructor for this class public ShoppingCart(int size){ max = size; //Set … Re: Simple Shopping Cart..... not so simple Programming Software Development by jpsider … (might need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i < mycarts.length… != 4); } } [/CODE] Shopping Cart [CODE] import java.util.*; public class ShoppingCart { private double totalCost; private LineItem[] myItems; private int max = 100… Re: Simple Shopping Cart..... not so simple Programming Software Development by Philippe.Lahaie …need some guidance on how this will work) ShoppingCart[]myCarts = new ShoppingCart[2]; for(int i = 0; i… < myCarts.length; i++){ myCarts[i] = new ShoppingCart(size); } [/CODE] [/QUOTE] Here the problem is with…int) from LineItem & .addItem(LineItem) from ShoppingCart ) the first line is fine, it takes the…