如何更改 BigCommerce 概览按钮显示



您好,我想将我的概览按钮文本从"快速查看"更改为每个项目的产品价格。这是概览Js中显示的查询.html

    ShowImageZoomer = false;
$(document).ready(function() {
    $(".QuickView").quickview({
        buttonText: "%%GLOBAL_QuickViewButtonText%%",
        buttonColor: "%%GLOBAL_QuickViewButtonColor%%",
        gradientColor: "%%GLOBAL_QuickViewGradientColor%%",
        textColor: "%%GLOBAL_QuickViewTextColor%%"
    });
});​

所以我试图更换%%GLOBAL_QuickViewButtonText%% to %%GLOBAL_ProductPrice%%,我相信这肯定会起作用,并认为当我将鼠标悬停在商品上时,它会显示产品的价格。但是,它根本不返回任何值。

有什么解决方案吗?请帮助我。

谢谢。

IIRC 有几个地方调用了概览,因此请搜索所有模板文件以确保在所有位置都对其进行了更改。一旦设置了这样的内容,您应该不会遇到任何问题:

$(".QuickView").quickview({
    buttonText: "Fast View", //Text changed on this line
    buttonColor: "%%GLOBAL_QuickViewButtonColor%%",
    gradientColor: "%%GLOBAL_QuickViewGradientColor%%",
    textColor: "%%GLOBAL_QuickViewTextColor%%"
});

就颜色而言,我很确定他们的大多数主题现在都用CSS覆盖了它。

最新更新