Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After clicking on addtocart button the cost of product is not displaying
.Guide me
Posted
Comments
Sandeep Mewara 8-May-12 10:57am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

1 solution

First Of All i want to tell you make your qustion more discreptive.
-----------------------------------------------------------------------
Well in start i want to tell you we use database for this we create table in database which have many coloum like product_id,name,cost,quantity etc BUT REMEMBER prduct_id IS MUST AND PRIMARY KEY so we can send every where product id though querystring and can take easily value of that coloum (which product id query string have)
---------------------------------------------------------------

as i know you cant find out the cost of product when its clicked on add to cart button or buy (AM i RIGHT?) I think YES;

lol you not clear that you using html content for this or server side components

my this answer will work if you use html content(button,textbox,etc);

EXAMPLE- i am showing Product_id,Cost,Quantity etc(everything in textbox);

as like ---- textbox1.value=product_id;
textbox2,text=cost;
textbox2,text=Quantity;
button1.value=add to cart;
now onclick event of button send product id or other thing which is primary key in your database AS QUERY STRING and then you can simply select product cost from database and print that value where you want
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900