• 首页
  • 获客
  • 店铺
    小红书店铺 让内容种草成为最佳导购 微信小程序 用社交电商抢占华人流量 主题模板 100+行业模版
  • 解决方案
    同城门店解决方案
    行业解决方案
    零售业电商解决方案 NEW

    实现全域经营,线上线下相互引流

    母婴行业解决方案

    面向母婴商家提供完善电商经营方案

    服务业预约解决方案 NEW

    数字化门店经营,翻倍到店客流

    鲜花礼品行业解决方案

    灵活自提与配送,解决交付难题

    同城配送解决方案

    突破时间和范围,实现订单增量

    服装首饰行业解决方案

    多渠道卖货,门店、电商同步做

    宠物行业解决方案

    轻松引流到店,提升拉新和复购

  • 价格
  • 活动
  • 调试按钮
登录
中文
English
  • 首页
  • 获客
  • 店铺
    • 小红书店铺
    • 微信小程序
    • 主题模板
  • 解决方案
    • 同城门店解决方案
    • 零售业电商解决方案
    • 服务业预约解决方案
    • 同城配送解决方案
    • 行业解决方案
    • 母婴行业解决方案
    • 鲜花礼品行业解决方案
    • 服装首饰行业解决方案
    • 宠物行业解决方案
  • 价格
  • 登录
  1. 头条博客
  2. 独立站
  3. 禁止使用购物车备注名称

禁止使用购物车备注名称

2022-05-31 22:25:35

禁止使用购物车


备注名称

假如您应用Shopify的完全免费模板,您可以联络Shopify适用精英团队得到有关此实例教程的协助。此实例教程必须15分鐘的制定时长。若要掌握详细信息,客户程序Supportforthemes。

备注名称

此自定用以复古时尚Shopify模板,不适感用以“OnlineStore2.0”模板。

寻找您的模板构架版本号

探寻“OnlineStore2.0”模板自定


您可以在门店中掩藏添加到购物车按钮,并在未来再度表明这种按钮。

备注名称:此自定设定与动态性付款按钮兼容问题。假如您的模板适用动态性付款,请依照在商品界面上掩藏动态性付款按钮的流程来阻拦表明按钮。

分区模板和未分区模板

备注名称:本实例教程的过程将按照您采用的是分区模板或是未分区模板而各有不同。分区模板适用根据拖拽来分配首页的合理布局,未分区模板则不兼容。

假如想掌握您的模板是不是适用分区,请转至模板的编写代码网页页面。假如Sections文件目录中有文档,您则已经应用已分区模板。未分区模板是在2016年10月以前公布的,而且Sections文件目录中并没有文档。

假如您应用已分区模板,请点一下Sectionedthemes(已分区模板)按钮并根据表明完成实际操作。假如您应用较旧的未分区模板,请点一下Non-sectionedthemes(未分区模板)按钮并根据表明完成实际操作。

PC:

在Shopify后台管理中,转到在线商店模板。

寻找要编写的模板,随后点一下实际操作编写代码。

在Sections文件目录中,点击打开product-template.liquid文档。搜索添加到购物车按钮相匹配的HTML代码。您可以最先检索cart一词。

“添加到购物车”按钮的代码因模板而异。请搜索包括Addtocart、AddToCart或add-to-cart等相近文字的input或button标识。

ios系统:

在Shopify后台管理中,转到在线商店模板。

寻找要编写的模板,随后点一下实际操作编写代码。

在Sections文件目录中,点击打开product-template.liquid文档。搜索添加到购物车按钮相匹配的HTML代码。您可以最先检索cart一词。

“添加到购物车”按钮的代码因模板而异。请搜索包括Addtocart、AddToCart或add-to-cart等相近文字的input或button标识。

安卓手机系统:

在Shopify后台管理中,转到在线商店模板。

寻找要编写的模板,随后点一下实际操作编写代码。

在Sections文件目录中,点击打开product-template.liquid文档。搜索添加到购物车按钮相匹配的HTML代码。您可以最先检索cart一词。

“添加到购物车”按钮的代码因模板而异。请搜索包括Addtocart、AddToCart或add-to-cart等相近文字的input或button标识。

在Debut模板中,“添加到购物车”按钮的代码如下所示所显示:

buttontype=submitname=addid=AddToCart-{{section.id}}{%unlesscurrent_variant.available%}disabled=disabled{%endunless%}class=btnproduct-form._cart-submit{%ifproduct.options.size==1andproduct.variants[0].title==DefaultTitle%}product-form__cart-submit--small{%endif%}spanid=AddToCartText-{{section.id}}{%unlesscurrent_variant.available%}{{products.product.sold_out|t}}{%else%}{{products.product.add_to_cart|t}}{%endunless%}/span/button

寻找代码后,将它放进Liquid{%comment%}和{%endcomment%}标识中间。这可能阻拦该代码在您的门店中表明,但假如您想稍候变更您的新模板,您可以简单将其修复。

Usingtheexampleabove,thenewcodewouldlooklikethis:```liquid{%comment%}buttontype=submitname=addid=AddToCart-{{section.id}}{%unlesscurrent_variant.available%}disabled=disabled{%endunless%}class=btnproduct-form._cart-submit{%ifproduct.options.size==1andproduct.variants[0].title==DefaultTitle%}product-form__cart-submit--small{%endif%}spanid=AddToCartText-{{section.id}}{%unlesscurrent_variant.available%}{{products.product.sold_out|t}}{%else%}{{products.product.add_to_cart|t}}{%endunless%}/span/button{%endcomment%}


留意

Makesurethatyoudontcommentouttheformtagsforyourproductpage.Yourcommenttagsshouldnotsurroundanyformor/formtags,otherwisecustomerscouldexperienceerrorswhenviewingyourproductpage.```



点一下储存以确定变更。

当您准备好再度表明添加到购物车按钮时,请回到到编写HTML/CSS网页页面上的product-template.liquid文档,删掉{%comment%}和{%endcomment%}标识,随后点一下储存。

Shopify商家官方网站全文详细信息:

Disableyourcart

Note

IfyouuseafreethemefromShopify,thenyoumightbeabletocontactShopifySupportforhelpwiththistutorial.Itrequires15minutesofdesigntime.Tolearnmore,refertoSupportforthemes.

Note

ThiscustomizationisforvintageShopifythemes,anddoesntapplytoOnlineStore2.0themes.

Findoutyourthemesarchitectureversion

ExploreOnlineStore2.0themecustomizations

YoucanhideyourAddtocartbuttonsonyourstorefrontandrevealthemagaininthefuture.

Note

Thiscustomizationisntcompatiblewithdynamiccheckoutbuttons.Ifyourthemesupportsdynamiccheckout,thenpreventthebuttonsfromshowingbyfollowingthestepstohidedynamiccheckoutbuttonsonproductpages.

Sectionedandnon-sectionedthemes

Note

Thestepsforthistutorialdifferdependingonwhetheryouareusingasectionedoranon-sectionedtheme.Asectionedthemeletsyoudraganddroptoarrangethelayoutofyourhomepage,andanon-sectionedthemedoesnt.

Tofigureoutwhetheryourthemesupportssections,gotothethemesEditcodepage.IftherearefilesintheSectionsdirectory,youareusingasectionedtheme.Non-sectionedthemeswerereleasedbeforeOctober2016,anddonothavefilesintheSectionsdirectory.

Ifyouareusingasectionedtheme,clicktheSectionedthemesbuttonandfollowtheinstructions.Ifyouareusinganolder,non-sectionedtheme,clicktheNon-sectionedthemesbuttonandfollowtheinstructions.


PC:

FromyourShopifyadmin,gotoOnlineStoreThemes.

Findthethemeyouwanttoedit,andthenclickActionsEditcode.

IntheSectionsdirectory,clicktoopenyourproduct-template.liquidfile.FindtheHTMLcodefortheAddtocartbutton.Youcansearchforthewordcartasastart.

Thecodefortheaddtocartbuttonvariesthemetotheme.LookforaninputorbuttontagwithtextlikeAddtocart,AddToCart,oradd-to-cart.

iPhone:

FromtheShopifyapp,tapStore.

IntheSaleschannelssection,tapOnlineStore.

TapManagethemes.

Findthethemeyouwanttoedit,andthenclickActionsEditcode.

IntheSectionsdirectory,clicktoopenyourproduct-template.liquidfile.FindtheHTMLcodefortheAddtocartbutton.Youcansearchforthewordcartasastart.

Thecodefortheaddtocartbuttonvariesthemetotheme.LookforaninputorbuttontagwithtextlikeAddtocart,AddToCart,oradd-to-cart.

Android:

FromtheShopifyapp,tapStore.

IntheSaleschannelssection,tapOnlineStore.

TapManagethemes.

Findthethemeyouwanttoedit,andthenclickActionsEditcode.

IntheSectionsdirectory,clicktoopenyourproduct-template.liquidfile.FindtheHTMLcodefortheAddtocartbutton.Youcansearchforthewordcartasastart.

Thecodefortheaddtocartbuttonvariesthemetotheme.LookforaninputorbuttontagwithtextlikeAddtocart,AddToCart,oradd-to-cart.

IntheDebuttheme,theaddtocartbuttoncodelookslikethis:

buttontype=submitname=addid=AddToCart-{{section.id}}{%unlesscurrent_variant.available%}disabled=disabled{%endunless%}class=btnproduct-form._cart-submit{%ifproduct.options.size==1andproduct.variants[0].title==DefaultTitle%}product-form__cart-submit--small{%endif%}spanid=AddToCartText-{{section.id}}{%unlesscurrent_variant.available%}{{products.product.sold_out|t}}{%else%}{{products.product.add_to_cart|t}}{%endunless%}/span/button

Whenyoufindthecode,wrapitinLiquid{%comment%}and{%endcomment%}tags.Thiswillstopthecodefrombeingshownonyourstore,butwillletyoueasilyputitbackifyouwanttochangeyournewtemplatelater.

Usingtheexampleabove,thenewcodewouldlooklikethis:

{%comment%}buttontype=submitname=addid=AddToCart-{{section.id}}{%unlesscurrent_variant.available%}disabled=disabled{%endunless%}class=btnproduct-form._cart-submit{%ifproduct.options.size==1andproduct.variants[0].title==DefaultTitle%}product-form__cart-submit--small{%endif%}spanid=AddToCartText-{{section.id}}{%unlesscurrent_variant.available%}{{products.product.sold_out|t}}{%else%}{{products.product.add_to_cart|t}}{%endunless%}/span/button{%endcomment%}

Caution

Makesurethatyoudontcommentouttheformtagsforyourproductpage.Yourcommenttagsshouldnotsurroundanyformor/formtags,otherwisecustomerscouldexperienceerrorswhenviewingyourproductpage.

ClickSavetoconfirmyourchanges.

WhenyouarereadytoshowyourAddtocartbuttonsagain,gobacktoyourproduct-template.liquidfileontheEditHTML/CSSpage,removethe{%comment%}and{%endcomment%}tags,andclickSave.

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


部分文章来源于网络,如有侵权,请联系 caihong@youzan.com 删除。

标签:

相关文章

  • Create your beautiful link in bio with AllValue
  • Facebook广告被定位在哪一群人?
  • 没有网站?不要担心,亚马逊允许你去创建一个店铺
  • Pinterest在网络营销领域里扮演着重要的角色
  • 如何在facebook上做企业的推广

热门标签

评论

    添加优质配图将会得到更多人回答,媒体大小小于2M,建议尺寸:200x200

评论提交成功

评论有以下违规词汇

删除成功

评论

确定删除此评论吗

  • 未读列表
  • 已读列表

消息类型标题

2021-08-24 12:45

消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容

做华人电商生意 找 AllValue

AllValue
AllValue
首页
商家服务
价格
产品
产品
AllValue 营销版
AllValue 店铺版
Tapget AI
关于我们
关于我们
博客
品牌故事
开发者中心
官方账号
官方账号
邮箱:info@AllValue.com

AllValue公众号

加入华人社群

中文
中文
English

做华人电商生意 找 AllValue

用户协议 隐私声明

©2025 allvalue.com Rights Reserved| 浙ICP备2020040621号

Youzan Technology LLC. 200 Spectrum Center Drive, Suite 300, Office 4062, Irvine, CA 92618