Php ‘;提交审核’;按钮不工作,而是添加’;将产品放入购物车
我在:Php ‘;提交审核’;按钮不工作,而是添加’;将产品放入购物车,php,magento,Php,Magento,我在:default/style/template/review/form.phtml <div class="buttons-set"><button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?>&
default/style/template/review/form.phtml
<div class="buttons-set"><button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?></span></span></button></div>
我有:app/design/frontend/default/YourTheme/template/catalog/product/view.phtml
<?php echo $this->getChildHtml('product_review') ?>
在“产品”页面上,单击“查看”按钮,如果您进行了查看,则不保存该查看并将产品添加到购物车中。进入浏览器并查看页面源。我几乎肯定你有嵌套的表单。我不能说确切的结构可能是什么,但是,基于主题编辑,你可能最终会得到这个
<form id="your ID of review>
<form id="your ID of add to cart>
</form>
</form>
如果在您单击“提交审查”时发生这种情况,则您可能正在提交“添加到购物车”
<form id="your ID of review>
<form id="your ID of add to cart>
</form>
</form>