1

我创建了一个 Ebay 列表 HTML 模板,但目前所有内容都是硬编码的。

是否可以动态获取我正在销售的产品名称、描述?

我敢肯定他们曾经有 {{ name }}、{{ description }} 等标签。

但是现在好像不行了?

例如

<div class="products-description">
    <span>{{ name }}</span>
    <p>
        {{ description }}
    </p>
        <div class="button-position">
        <button type="button" name="button" class="img-position">Buy it now</button>
        </div>
</div>

不工作。

干杯

4

1 回答 1

1

可以,但您需要使用 API。您可以编写一个脚本,使用项目 ID 来查找项目上的数据,并使用 js 或 php 发挥一些作用并将您想要的位放入模板中。

这是一种享受,我为我的所有客户都这样做,尽管明年将不允许在模板上使用 js,所以你可能想要编写一些在上市时动态插入它的东西......

于 2016-11-25T13:45:29.703 回答