【问题标题】:magento add to cart button not work on mobile screenmagento 添加到购物车按钮在移动屏幕上不起作用
【发布时间】:2017-02-20 15:32:55
【问题描述】:

我在移动屏幕上的 magento 主页上遇到问题。 当我点击添加到购物车时,项目未添加到购物车。(在产品页面或主页上的笔记本电脑屏幕上没有问题)

手机屏幕首页按钮代码为:

<button type="button" title="Add to Cart" class="button btn-cart show-options btn-cart-mobile" data-id="3"><span><span>Add to Cart</span></span></button>

但应该是:

<button type="button" title="Add to Cart" class="button btn-cart btn-cart-mobile" onclick="productAddToCartForm.submit(this)"><span><span><i class="fa fa-shopping-cart"></i>Add to Cart</span></span></button>

我应该在哪里更改此代码?

【问题讨论】:

  • 它显示的 concol 或日志文件是否有任何错误?
  • 只显示未定义的页面。

标签: magento


【解决方案1】:

通过大量搜索,我找到了解决方案: 我们应该将主页中的产品块生命缓存更改为1

【讨论】:

    猜你喜欢
    • 2016-11-26
    • 1970-01-01
    • 2017-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多