单击添加购物车按钮后,产品成本不显示 [英] After clicking on addtocart button the cost of product is not displaying

查看:104
本文介绍了单击添加购物车按钮后,产品成本不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击添加购物车按钮后,产品成本未显示
.指导我

解决方案

首先,我想告诉你,让你的问题更具区分性.
-------------------------------------------------- ---------------------
首先,我想告诉您我们为此使用数据库,我们在数据库中创建表,该表具有许多列,例如product_id,名称,成本,数量等,但请记住prduct_id是必填项和主键,因此我们可以通过querystring和可以轻松获取该coloum的值(该产品ID查询字符串具有该值)
-------------------------------------------------- -------------

据我所知,当您单击产品的添加到购物车"按钮或购买产品时,您无法找出产品的成本(我是对的吗?),我认为是;

大声笑您不清楚您为此或服务器端组件使用html内容

如果您使用html内容(按钮,文本框等),则此答案有效;

示例-我正在显示Product_id,Cost,Quantity等(文本框中的所有内容);

就像---- textbox1.value = product_id;
textbox2,text = cost;
textbox2,text =数量;
button1.value =添加到购物车;
现在按钮的onclick事件将产品ID或其他东西作为数据库中的主键发送给QUERY STRING,然后您可以简单地从数据库中选择产品成本并在所需的位置打印该值

After clicking on addtocart button the cost of product is not displaying
.Guide me

解决方案

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


这篇关于单击添加购物车按钮后,产品成本不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆