dqq22391 2016-09-17 15:58
浏览 82

magento添加到购物车功能

When I have only one unit of the product and click on buy, the product page refresh, and not redirect to shopping cart. How to disable this function?

Form post:

<form id="addtocart_form" method="post" action="https://www.domain.com/checkout/cart/add/uenc/Z2VTcGVlZD1vZmYmX19fU0lEPVU,/product/15/form_key/hTmJMC7HS/">

Button:

<button type="button" title="Buy" id="product-addtocart-button" class="btn-cart" onclick="productAddToCartForm.submit(this)">BUY</button>
  • 写回答

1条回答 默认 最新

  • dtyyrt4545 2016-09-19 07:31
    关注

    Change your setting from admin->configuration->sales>checkout under shopping cart. Set "After Adding a Product Redirect to Shopping Cart" to yes.

    评论

报告相同问题?

悬赏问题

  • ¥20 蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏