【官網設計】購物車可編輯項目
本文將指導你如何移除加入購物車以及當客戶將產品加到購物車時自動顯示在右側的滑出購物車。本指南僅適用於 Candy、Wave 、Fall、X-Force、Maker 、Lucky主題。
在這篇文章中 :
A. 啟用加入購物車顯示購物車預覽
B. 移除加入購物車後顯示通知
C. 刪除產品頁面上的浮動添加到購物車按鈕
D. 更改購物車字體大小
E. 在購物車上重命名 “運費,稅金和折扣將在結帳時計算”
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 搜尋 // toggleCart( ); (大約 114 行) → 移除 //
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1f0dazg.png)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1uzoetk.png)
搜尋 // theme.toggleCart( );(大約 325 行) → 移除 //
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_icz1s4.png)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_9wri3p.png)
點擊儲存,完成!
設定前:
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/ezgif-2-1b0261aa31_8w148m.gif)
設定後:
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/regee_1vr24vy.gif)
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 選擇 theme.js 文件
搜尋第一個 // toggleCart( ) (大約 114 行)→ 刪除 popToast(add_cart_success_html)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1fgn7x9.png)
搜尋第二個 toggleCart( ) (大約 325 行)→ 刪除 popToast(add_cart_success_html)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_14qt7jc.png)
點擊儲存,完成
設定前:
設定後:
![](https://storage.crisp.chat/users/helpdesk/website/acbf2ff9b749a0/c02224a3-274d-4865-93d9-962efe_cr6ukv.gif)
![](https://storage.crisp.chat/users/helpdesk/website/bd1780a559c08000/9f25d8ee-f35c-479f-9d77-2e53b8_v3v0rk.gif)
到Easystore後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → templates → product.liquid
將以下的原始碼移除
![](https://storage.crisp.chat/users/helpdesk/website/c872967082fd9800/99dc890a-59d7-4839-abee-a49846_10g2ja0.png)
點擊儲存,完成!
![](https://storage.crisp.chat/users/helpdesk/website/d9efb38d1e3ef000/c2387a44-04c8-4c35-b186-847f39_q90rho.png)
到Easystore後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → assets → theme.scss
搜尋 cart-drawer-wrapper (大約於 4197 行) → 更換字體大小
![](https://storage.crisp.chat/users/helpdesk/website/b630ea08aaf15800/baa5791b-3060-4f2d-b341-f1a327_whlk1c.png)
點擊儲存,完成!
![](https://storage.crisp.chat/users/helpdesk/website/62a843386367ac00/0bc90f86-0ed0-486a-a8a7-6b5c16_1pu1awa.png)
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 找到 cart-template.liquid 文件
搜尋 <p><em>{{ 'cart.general.shipping_at_checkout' | t }}</em></p> (大約** 470),重新命名 cart.general.shipping_at_checkout 即可。
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_pzjw4d.png)
步驟三:點擊儲存。
注意:若你不想要 “運費,稅金和折扣將在結帳時計算” 的字眼,可以直接刪除 <p><em>{{ 'cart.general.shipping_at_checkout' | t }}</em></p> 即可
![](https://storage.crisp.chat/users/helpdesk/website/8f2dd6aee59d9800/6a60ea3f-8a23-4dc8-ae4f-dfd77c_1mhahjc.png)
在這篇文章中 :
A. 啟用加入購物車顯示購物車預覽
B. 移除加入購物車後顯示通知
C. 刪除產品頁面上的浮動添加到購物車按鈕
D. 更改購物車字體大小
E. 在購物車上重命名 “運費,稅金和折扣將在結帳時計算”
A. 啟用加入購物車後顯示購物車預覽
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 搜尋 // toggleCart( ); (大約 114 行) → 移除 //
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1f0dazg.png)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1uzoetk.png)
搜尋 // theme.toggleCart( );(大約 325 行) → 移除 //
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_icz1s4.png)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_9wri3p.png)
點擊儲存,完成!
設定前:
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/ezgif-2-1b0261aa31_8w148m.gif)
設定後:
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/regee_1vr24vy.gif)
B. 移除加入購物車後顯示通知
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 選擇 theme.js 文件
搜尋第一個 // toggleCart( ) (大約 114 行)→ 刪除 popToast(add_cart_success_html)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_1fgn7x9.png)
搜尋第二個 toggleCart( ) (大約 325 行)→ 刪除 popToast(add_cart_success_html)
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_14qt7jc.png)
點擊儲存,完成
設定前:
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/5yqg5ywl6lo854mp6luk_gqslg3.gif)
設定後:
![](https://storage.crisp.chat/users/helpdesk/website/acbf2ff9b749a0/c02224a3-274d-4865-93d9-962efe_cr6ukv.gif)
C. 刪除產品頁面上的浮動添加到購物車按鈕
![](https://storage.crisp.chat/users/helpdesk/website/bd1780a559c08000/9f25d8ee-f35c-479f-9d77-2e53b8_v3v0rk.gif)
到Easystore後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → templates → product.liquid
將以下的原始碼移除
{% include 'svg-definitions' with 'cart-icon
![](https://storage.crisp.chat/users/helpdesk/website/c872967082fd9800/99dc890a-59d7-4839-abee-a49846_10g2ja0.png)
點擊儲存,完成!
D. 更改購物車字體大小
![](https://storage.crisp.chat/users/helpdesk/website/d9efb38d1e3ef000/c2387a44-04c8-4c35-b186-847f39_q90rho.png)
到Easystore後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → assets → theme.scss
搜尋 cart-drawer-wrapper (大約於 4197 行) → 更換字體大小
![](https://storage.crisp.chat/users/helpdesk/website/b630ea08aaf15800/baa5791b-3060-4f2d-b341-f1a327_whlk1c.png)
點擊儲存,完成!
E. 在購物車上重命名“運費,稅金和折扣將在結帳時計算”
![](https://storage.crisp.chat/users/helpdesk/website/62a843386367ac00/0bc90f86-0ed0-486a-a8a7-6b5c16_1pu1awa.png)
到 Easystore 後台 → 銷售管道 → 品牌官網 → 編輯原始碼 → 找到 cart-template.liquid 文件
搜尋 <p><em>{{ 'cart.general.shipping_at_checkout' | t }}</em></p> (大約** 470),重新命名 cart.general.shipping_at_checkout 即可。
![](https://storage.crisp.chat/users/helpdesk/website/b34797d9594d3000/image_pzjw4d.png)
步驟三:點擊儲存。
注意:若你不想要 “運費,稅金和折扣將在結帳時計算” 的字眼,可以直接刪除 <p><em>{{ 'cart.general.shipping_at_checkout' | t }}</em></p> 即可
![](https://storage.crisp.chat/users/helpdesk/website/8f2dd6aee59d9800/6a60ea3f-8a23-4dc8-ae4f-dfd77c_1mhahjc.png)
Updated on: 15/01/2024
感謝!