如何制作“添加到购物车”?按钮,添加到单独页面上的列表? (例如:网上商店) [英] How can I make the "add to cart" button, add to a list on a seperate page? (Example: online store)

查看:130
本文介绍了如何制作“添加到购物车”?按钮,添加到单独页面上的列表? (例如:网上商店)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数量框,选择尺寸下拉窗口和添加到购物车按钮。

当按钮添加到时,有没有办法将所有这些信息传输到列表购物车被按下了吗?



我尝试了什么:



< pre lang =HTML> < div class = size-guide >
SMALL
MEDIUM
LARGE
X-LARGE
< / div >

解决方案

谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...



非常快速的搜索使用您的主题作为搜索词给出了超过300万次点击:如何制作添加到购物车按钮 - Google搜索 [ ^ ]

从那里开始,并将您的搜索细化为适合您应用程序其余部分的内容。



将来,请尝试至少做自己的基础研究,而不是浪费你的时间或我们的时间。


引用:

怎么能我点击添加到购物车按钮,添加到单独页面上的列表? (例如:网上商店)



这不是它的工作原理。

你不要添加到单独的页面。

添加到购物车按钮调用带有id的服务器以及要添加的项目的其他信息。

服务器将其存储在数据库中。

和查看购物车按钮根据数据库建立辅助页面的呼叫服务器。



只是伟大的界限。


I have a quantity box, "select size" dropdown window and "add to cart" button.
Is there a way to have all this information transferred to a list when the button "add to cart" is pressed?

What I have tried:

<div class="size-guide">
SMALL
MEDIUM
LARGE
X-LARGE
</div>

解决方案

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave over 3 million hits: How can I make the "add to cart" button - Google Search[^]
Start there, and refine your search into something that fits the rest of your application.

In future, please try to do at least basic research yourself, and not waste your time or ours.


Quote:

How can I make the "add to cart" button, add to a list on a seperate page? (Example: online store)


This is not how it works.
You don't add to a separate page.
The 'Add to cart' button calls server with id and other information on item to add.
The server store it in database.
And the 'View cart' button call server which build secondary page according to database.

Just the great lines.


这篇关于如何制作“添加到购物车”?按钮,添加到单独页面上的列表? (例如:网上商店)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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