dongpu9481 2015-12-11 10:00
浏览 42

Magento添加到购物车按钮,Onepage结帐仅在刷新浏览器后工作

I have this problem for several weeks. When someone visits the shop (for the first time but randomly too) he cannot add to cart, from the product page button until he refreshes his browser. Something similar happens in the Onepage Checkout.

on the product page I get this error from the firebug console:

TypeError: productAddToCartForm is undefined

I have already searched the web for a solution, with no luck.

Any help will be apreciated

  • 写回答

2条回答 默认 最新

  • dovhpmnm31216 2015-12-11 10:15
    关注

    This is related to jQuery conflict.

    If you check your page source, you can see two version of jQuery is included.

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://bagatzounis.com/web/js/lightboxes/jQuery/1.7.1/jquery.min.js"></script>
    

    Try to remove the one which is not needed, it will fix the issue.

    This is something you need to do with the template.

    评论

报告相同问题?

悬赏问题

  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像