【发布时间】:2013-01-30 08:44:36
【问题描述】:
我正在尝试使用 url 参数将可配置的产品添加到购物车,但我仍然收到“请指定产品的选项”。当我尝试使用 url 将产品添加到购物车时:
/myConfigurableProduct.html?options=cart&product=6&related_product=&super_attribute[146]=60&super_attribute[147]=67&super_attribute[145]=57&super_attribute[144]=49&super_attribute[148]=69&super_attribute[149]=75&super_attribute[150]=80&qty=1
我查看了 Magento 文档以寻找解决方案,发现可以使用 /cart/add? 从购物车页面完成此操作,但我正在尝试从产品视图页面执行此操作。
选择的url super_attributes 使用表单提交时不显示错误,但使用url时失败。我在这里遗漏了什么吗?
【问题讨论】:
-
请编辑以发布您的最终解决方案。我喜欢这个……我们有时需要给客户一个 URL,点击它会很好,它就在购物车中。
标签: jquery magento url-parameters