定价提示

以下提示可帮助在使用 Supply 时设置定价。

禁用销售金额的四舍五入

PC:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 在左侧的资产下,打开 timber.scss.liquid

  2. 在文件底部,添加以下代码:

.sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  1. 点击保存

苹果系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分中,轻触在线商店

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 在左侧的资产下,打开 timber.scss.liquid

  2. 在文件底部,添加以下代码:

.sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  1. 点击保存

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分中,轻触在线商店

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 在左侧的资产下,打开 timber.scss.liquid

  2. 在文件底部,添加以下代码:

.sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  1. 点击保存

购物车提示

以下提示可确保将 JavaScript 添加到 Supply 后,您商店的购物车能够正常工作。

更改购物车类型,以便高级 JavaScript 正常运作

在 Supply 中,您添加到 cart.liquid 的任何 JavaScript 都不会在抽屉式或模式购物车中执行。它只会在您将 /cart 追加到商店的 URL 时执行。例如,http://your.store.url/cart

如果您想将以下任何功能添加到购物车页面,则需要将购物车类型设为页面式

  • 运费计算器

  • 多种货币

  • 礼品包装

  • 购物车属性验证

  • 日期选择器

  • “我同意条款”复选框。

步骤:

PC:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 点击 的技巧 旁边的自定义

  1. 点击模板设置

  2. 点击购物车

  3. 在 Cart type(购物车类型)下拉列表中,选择页面

  4. 点击保存

苹果系统:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 点击 的技巧 旁边的自定义

  1. 点击模板设置

  2. 点击购物车

  3. 在 Cart type(购物车类型)下拉列表中,选择页面

  4. 点击保存

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触 Manage themes(管理模板)。

  4. 在 的技巧 旁边,轻触自定义

  5. 轻触编辑

  1. 点击模板设置

  2. 点击购物车

  3. 在 Cart type(购物车类型)下拉列表中,选择页面

  4. 点击保存

Shopify商户官网原文详情:

Pricing tips

The following tips help you set up pricing when using Supply.

Disable rounding of sale amounts

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you want to edit, and then click Actions > Edit code.

  1. On the left side, under Assets, open timber.scss.liquid.

  2. At the bottom of the file, add the following code:

     .sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  3. Click Save.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme you want to edit, and then click Actions > Edit code.

  1. On the left side, under Assets, open timber.scss.liquid.

  2. At the bottom of the file, add the following code:

     .sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  3. Click Save.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme you want to edit, and then click Actions > Edit code.

  1. On the left side, under Assets, open timber.scss.liquid.

  2. At the bottom of the file, add the following code:

     .sale-tag sup {    display: inline;    top: 0;    font-size: 100%;    &:before {     content: '.';    }  }
  3. Click Save.

Cart tips

The following tip ensures your store's cart works properly when you have added JavaScript to Supply.

Change the cart type so that advanced JavaScript works

In Supply, any JavaScript you add to cart.liquid is not executed in the drawer or modal carts. It is executed only if you append /cart to your store's URL. For example, http://your.store.url/cart.

If you want to add any of the following features to your cart page, then you need to set your cart type to Page:

  • a shipping rates calculator

  • multiple currencies

  • gift-wrapping

  • cart attributes validation

  • a date picker

  • an "I agree with terms" checkbox.

Steps:

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Next to Supply, click Customize.

  1. Click Theme settings.

  2. Click Cart.

  3. From the Cart type drop-down list, select Page.

  4. Click Save.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Next to Supply, tap Customize.

  5. Tap Edit.

  1. Click Theme settings.

  2. Click Cart.

  3. From the Cart type drop-down list, select Page.

  4. Click Save.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Next to Supply, tap Customize.

  5. Tap Edit.

  1. Click Theme settings.

  2. Click Cart.

  3. From the Cart type drop-down list, select Page.

  4. Click Save.

文章内容来源:Shopify商户官方网站


(本文内容根据网络资料整理,出于传递更多信息之目的,不代表连连国际赞同其观点和立场)