Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 我怎样才能从我的结帐中删除税号?_Css_Templates_Themes_Shopify_Checkout - Fatal编程技术网

Css 我怎样才能从我的结帐中删除税号?

Css 我怎样才能从我的结帐中删除税号?,css,templates,themes,shopify,checkout,Css,Templates,Themes,Shopify,Checkout,我正试图完全取消税项,或者把它藏在收银台前。我已经尝试了我能想到的一切来实现这一点,但它不起作用。有什么建议吗?如果可以的话,请帮帮我,我快疯了 这是订单模板,下面是checkout.css {% layout settings.customer_layout %} <div class="section-title desktop-12 mobile-3"> <h1>{{ 'customer.order.title' | t }} {{ order.name }

我正试图完全取消税项,或者把它藏在收银台前。我已经尝试了我能想到的一切来实现这一点,但它不起作用。有什么建议吗?如果可以的话,请帮帮我,我快疯了

这是订单模板,下面是checkout.css

{% layout settings.customer_layout %}

<div class="section-title desktop-12 mobile-3">
  <h1>{{ 'customer.order.title' | t }} {{ order.name }}</h1>
</div>

<div id="customer-wrapper" class="desktop-12 mobile-3">


  {% if order.cancelled %}
  <div id="order_cancelled" class="flash notice">
    <h5 id="order_cancelled_title">{{ 'customer.order.cancelled' | t }} <span class="note">{{ order.cancelled_at | date: "%B %d, %Y %I:%M%p" }}</span></h5>
    <span class="note">{{ 'customer.order.cancelled_reason' | t: reason: order.cancel_reason }}</span>
  </div>
  {% endif %}

  <div class="note order_date">{{ 'customer.order.date' | t }} {{ order.created_at | date: "%B %d, %Y %I:%M%p" }}</div>

  <div id="order_address" class="group">

    <div id="order_payment" class="desktop-6 table-3 mobile-3">
      <h5 class="order_section_title">{{ 'customer.order.billing_address' | t }}</h5>
      <p><span class="note">{{ 'customer.order.payment_status' | t }}:</span> <span class="status_{{ order.financial_status }}">{{ order.financial_status_label }}</span></p>

      <div class="address note">
        <p>{{ order.billing_address.name }}</p>
        <p>{{ order.billing_address.company }}</p>
        <p>{{ order.billing_address.street }}</p>
        <p>{{ order.billing_address.city }}, {{ order.billing_address.province }}</p>
        <p>{{ order.billing_address.country }} {{ order.billing_address.zip }}</p>
        <p>{{ order.billing_address.phone }}</p>
      </div>

    </div>


    {% if order.shipping_address %}
    <div id="order_shipping" class="desktop-6 table-3 mobile-3">      
      <h5 class="order_section_title">{{ 'customer.order.shipping_address' | t }}</h5>
      <p><span class="note">{{ 'customer.order.fulfillment_status' | t }}:</span> <span class="status_{{ order.fulfillment_status }}">{{ order.fulfillment_status_label }}</span></p>

      <div class="address note">
        <p>{{ order.shipping_address.name }}</p>
        <p>{{ order.shipping_address.company }}</p>
        <p>{{ order.shipping_address.street }}</p>
        <p>{{ order.shipping_address.city }}, {{ order.shipping_address.province }}</p>
        <p>{{ order.shipping_address.country }} {{ order.shipping_address.zip }}</p>
        <p>{{ order.shipping_address.phone }}</p>
      </div>

    </div>
    {% endif %}

  </div>

  <table id="order_details">
    <thead>
      <tr>
        <th>{{ 'customer.order.details.product' | t }}</th>
        <th>{{ 'customer.order.details.sku' | t }}</th>
        <th>{{ 'customer.order.details.price' | t }}</th>
        <th class="center">{{ 'customer.order.details.quantity' | t }}</th>
        <th class="center">{{ 'customer.order.details.total' | t }}</th>
      </tr>
    </thead>
    <tbody>
      {% for line_item in order.line_items %}
      <tr id="{{ line_item.id }}" class="{% cycle 'odd', 'even' %}">
        <td class="product">
          {{ line_item.title | link_to: line_item.product.url }} 
          {% if line_item.fulfillment %}
          <div class="note">
            Fulfilled {{ line_item.fulfillment.created_at | date: "%b %d" }}
            {% if line_item.fulfillment.tracking_number %}
            <a href="{{ line_item.fulfillment.tracking_url }}">{{ line_item.fulfillment.tracking_company }} #{{ line_item.fulfillment.tracking_number}}</a>
            {% endif %}
          </div>
          {% endif %}
        </td>
        <td class="sku note">{{ line_item.sku }}</td>
        <td class="money">{{ line_item.price | money }}</td>
        <td class="qty center">{{ line_item.quantity }}</td>
        <td class="total money center">{{ line_item.quantity | times: line_item.price | money }}</td>
      </tr>
      {% endfor %}
    </tbody>  
    <tfoot>
      <tr class="order_summary note">
        <td class="label" colspan="4">{{ 'customer.order.details.subtotal' | t }}</td>
        <td class="total money center">{{ order.subtotal_price | money }}</td>
      </tr>   

      {% for discount in order.discounts %}
      <tr class="order_summary discount">
        <td class="label" colspan="4">{{ discount.code }} {{ 'customer.order.discount' | t }}</td>
        <td class="total money center">{{ discount.savings | money }}</td>
      </tr>
      {% endfor %}

      {% for shipping_method in order.shipping_methods %}
      <tr class="order_summary note">
        <td class="label" colspan="4">{{ 'customer.order.shipping' | t }} ({{ shipping_method.title }}):</td>
        <td class="total money center">{{ shipping_method.price | money }}</td>
      </tr>
      {% endfor %}

      {% for tax_line in order.tax_lines %}
      <tr class="order_summary note">
        <td class="label" colspan="4">{{ 'customer.order.tax' | t }} ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%):</td>
        <td class="total money center">{{ tax_line.price | money }}</td>
      </tr>
      {% endfor %}    

      <tr class="order_summary order_total">
        <td class="label" colspan="4">{{ 'customer.order.details.total' | t }}:</td>
        <td class="total money center">{{ order.total_price | money }} {{ order.currency }}</td>
      </tr>   
    </tfoot>  
  </table>

</div>

修改签出过程的任何部分(不包括自定义主题中的选项)的唯一方法是编辑checkout.liquid布局文件,只有在您拥有Shopify Plus帐户时才能访问该文件。如果您确实有权访问checkout.liquid文件,那么您应该能够通过添加以下内容来隐藏税行:

.total-line--taxes { display: none; }

无论是在您的标题中的某个位置,还是在您的CSS文件中,然后将该文件包含在checkout.liquid文件中。

这取决于您是否向客户收取任何税款,只需在“管理”中的“产品”部分取消选中“税款”复选框即可。然后,在结帐页面上看不到税行

在订单模板中,从订单模板中删除税行项目,代码如下:

 {% for tax_line in order.tax_lines %}
      <tr class="order_summary note">
        <td class="label" colspan="4">{{ 'customer.order.tax' | t }} ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%):</td>
        <td class="total money center">{{ tax_line.price | money }}</td>
      </tr>
      {% endfor %}    
{%用于订单中的税行。税行%}
{{'customer.order.tax'{t}}{{{tax_line.title}{{{tax_line.rate}倍:100}}}):
{{tax_line.price{124; money}}
{%endfor%}

试试这个也许对你有帮助

我很高兴看到有办法做到这一点。我最近刚刚开始处理代码,我正在学习它,但我仍然需要像5岁那样向我解释它。不过,让我确认一下我们的观点是一致的。我需要将该代码粘贴到checkout.scs的某个位置,然后在my.liquid的模板部分引用该代码,该部分包含签出页面的代码?含有这种物质的液体能被称为“顾客/订单”吗?首先,我想你把订单页面和结帐页面弄混了。订单模板文件位于templates/customers/Order.liquid中,用于在购买订单后显示订单。您需要的是在layout/Checkout.liquid中找到的签出模板文件,并且仅当您是Shopify Plus帐户持有人时才需要该文件。你有Shopify Plus帐户吗?我把这两个弄糊涂了。因为我还没有Shopify Plus,而且我在任何地方都看不到checkout.liquid,所以我只是假设它是订单,因为它是唯一一个包含我正在寻找的任何语言的liquid文件。谢谢你为我澄清这一点,我将能够从签出中删除该行的唯一方法是在不久的将来升级。包括要删除的代码部分,或者你的答案更多的是对问题的评论。签出页面呢??
 {% for tax_line in order.tax_lines %}
      <tr class="order_summary note">
        <td class="label" colspan="4">{{ 'customer.order.tax' | t }} ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%):</td>
        <td class="total money center">{{ tax_line.price | money }}</td>
      </tr>
      {% endfor %}