Php 不适用于单一商品的数量
我最近在我的商店向Ajax添加了一个购物车。除了数量,一切都有效。当我选择数量时。然后点击“添加到购物车”按钮,它总是只添加一种产品。 我不知道如何从“添加到购物车”按钮的输入中获取值 我的single-product.php输入Php 不适用于单一商品的数量,php,html,ajax,woocommerce,Php,Html,Ajax,Woocommerce,我最近在我的商店向Ajax添加了一个购物车。除了数量,一切都有效。当我选择数量时。然后点击“添加到购物车”按钮,它总是只添加一种产品。 我不知道如何从“添加到购物车”按钮的输入中获取值 我的single-product.php输入 <form> <input type="number" id="input" value="1" class="uneditable-input" /> </form> 我的single-product.php按钮 &l
<form>
<input type="number" id="input" value="1" class="uneditable-input" />
</form>
我的single-product.php按钮
<button type="submit"
data-quantity="1" data-product_id="<?php echo $product->id; ?>"
class="button alt ajax_add_to_cart add_to_cart_button product_type_simple">
<?php echo $label; ?>
</button>