Dreamhost Web服务器中的购物车页面无法正常工作

问题描述 投票:0回答:1

当我们在woocommerce网站上单击添加购物车时,购物车页面会首先更新。在购物车页面中,当我单击“删除项目”时,它不起作用。

https://gobergorgohome.com/

您能帮我这是什么问题吗?该网站仅是wordpress和woocommercerce,backery builder等。

php wordpress
1个回答
1
投票

请检查?wc-ajax = get_refreshed_fragments

当您在/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js上调试时>

var e = {
    url: wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%", "get_refreshed_fragments"),
    type: "POST",
    data: {
        time: (new Date).getTime()
    },
    timeout: wc_cart_fragments_params.request_timeout,
    success: function(e) {
        e && e.fragments && (r.each(e.fragments, function(e, t) {
            r(e).replaceWith(t)
        }),
        t && (sessionStorage.setItem(wc_cart_fragments_params.fragment_name, JSON.stringify(e.fragments)),
        s(e.cart_hash),
        e.cart_hash && a()),
        r(document.body).trigger("wc_fragments_refreshed"))
    },
    error: function() {
        r(document.body).trigger("wc_fragments_ajax_error")
    }
};

返回错误。

© www.soinside.com 2019 - 2024. All rights reserved.