【问题标题】:Shopify, Adding another column for Shipping details in product pageShopify,在产品页面中为运输详细信息添加另一列
【发布时间】:2017-07-29 08:31:45
【问题描述】:

我想在 Shopify 中我的产品页面的两个现有列之间添加另一个运输列,并将其链接到我的名为“运输”的页面,但我似乎无法找出如何。这是现有的代码

<div id="tabs" class="htabs">
  <a href="#tab-description" class="selected">{{'products.product.description' | t}}</a>
  <a href="#tab-review" class="">{{'products.product.customer_reviews' | t}}</a>
  {%- if product.featured_image.alt contains 'iframe' -%}
  <a href="#tab-video">{{'products.product.video' | t}}</a>
  {%- endif -%}
</div>
<div id="tab-description" class="tab-content" itemprop="description">{{product.description}}</div>
<div id="tab-review" class="tab-content"><div id="shopify-product-reviews" data-id="{{product.id}}">{{product.metafields.spr.reviews}}</div></div>
{%- if product.featured_image.alt contains 'iframe' -%}
<div id="tab-video" class="tab-content">{{product.featured_image.alt}}</div>
{%- endif -%}

The existing descriptions and reviews in my site

非常感谢:)

【问题讨论】:

    标签: html css shopify


    【解决方案1】:
    <div id="tabs" class="htabs">
      <a href="#tab-description" class="selected">{{'products.product.description' | t}}</a>
      <a href="#tab-new">Tab Heading</a>
      <a href="#tab-review" class="">{{'products.product.customer_reviews' | t}}</a>
      {%- if product.featured_image.alt contains 'iframe' -%}
      <a href="#tab-video">{{'products.product.video' | t}}</a>
      {%- endif -%}
    </div>
    <div id="tab-description" class="tab-content" itemprop="description">{{product.description}}</div>
    <div id="tab-new" class="tab-content" itemprop="description">{{pages.shipping.content}} <a href="/shiiping/page/link">Shipping</a></div>
    <div id="tab-review" class="tab-content"><div id="shopify-product-reviews" data-id="{{product.id}}">{{product.metafields.spr.reviews}}</div></div>
    {%- if product.featured_image.alt contains 'iframe' -%}
    <div id="tab-video" class="tab-content">{{product.featured_image.alt}}</div>
    {%- endif -%}
    

    【讨论】:

    • 嗨,非常感谢您提供代码,但是如果您可以修改代码,我希望“Tab Content Shipping”成为我在页面“shipping”中所写的内容,我将不胜感激.干杯:)
    猜你喜欢
    • 1970-01-01
    • 2022-08-19
    • 2022-07-07
    • 1970-01-01
    • 2023-01-10
    • 1970-01-01
    • 2022-01-13
    • 1970-01-01
    • 2014-01-02
    相关资源
    最近更新 更多