问题描述
我正在尝试设置一个购物车表单功能(添加到购物车按钮),这是通过java脚本调用的 - 我在弹出窗口中有这个并希望添加到购物车按钮都关闭弹出窗口并在主窗口中加载信息 - 任何人都知道我需要修改哪些脚本?
这是弹出窗口中当前代码的一部分:
< form class =cartaction =index-shop.phpmethod =post>< input class =buttontype =submitname =my-add-buttonvalue =add to cart/ >< / form>
任何帮助都会超级!
I'm trying to setup a shopping cart form function (add to cart button) which is called via a java script - I have this in a pop-up window and want to have the "add to cart" button both close the pop-up window and also load the info in the main window - anyone know what script modifications I need to have?
here is part of my current code in the pop-up window:
<form class="cart" action="index-shop.php" method="post"><input class="button" type="submit" name="my-add-button" value="add to cart" /></form>
any help would be super!
这篇关于添加到购物车功能也关闭弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!