【问题标题】:Big Cartel Luna Theme. Cart will not proceed to checkout大卡特尔 Luna 主题。购物车不会进行结帐
【发布时间】:2014-04-14 09:29:22
【问题描述】:

我很想得到一些帮助。

在购物车页面上,选择“使用我的商店布局”时,当客户单击“退房”时,它只需在页面上循环,不会继续结帐。这是 Bigcartel 的 Luna 主题的一个已知问题。

我找到的解决方案说您需要取消选中它,但是当您这样做时,您会收到错误消息:

"You must include {{ head_content }} inside the <head> tag of your content"

这意味着代码中没有页面格式。我对代码不是很感兴趣,尽管我已经尝试了一段时间让它工作,窃取主题中其他页面的代码,但失败了。 (自从我弄乱代码以来已经有好几年了,所以任何帮助都会很大)。

谢谢

这是页面的代码:

    <header class="product_header page_header">
  <h1>Cart</h1>
  <span class="dash"></span>
</header>

{% if cart.items != blank %}
<form id="cart-form" {% unless cart.shipping.enabled or cart.discount.enabled     %}class="no_options"{% endunless %} method="post" action="/cart" accept-charset="utf8">
  <input type="hidden" name="utf8" value='✓'>
  <div id="cart_description">
    <section id="cart_items">
  <ul>
    {% for item in cart.items %}
    <li class="cart_item {% unless item.product.has_default_option %}with_option{% endunless %}" id="item-{{ item.id }}">
      <div class="item_image"><img src="{{ item.product.image | product_image_url: "thumb" }}" alt="Photo of {{ item.name }}"></div>
      <dl>
        <dt><a href="{{ item.product.url }}">{{ item.product.name }}</a></dt>
        <dd class="item_price">{{ item.unit_price | money_with_sign }}{% if item.quantity > 1 %}<span class="item_quantity">(x{{ item.quantity }})</span>{% endif %}</dd>
        <dd class="quantity_input">{{ item | item_quantity_input }}</dd>
        {% unless item.product.has_default_option %}<dd class="item_option">{{ item.option.name }}</dd>{% endunless %}
      </dl>
      <a href="#" class="remove_item" title="Remove item from cart">Remove item</a>
    </li>
    {% endfor %}
  </ul>
</section>

{% if cart.shipping.enabled or cart.discount.enabled %}
<section id="cart_options">
  <ul>
    {% if cart.shipping.enabled %}
    {% if cart.shipping.strict %}
    <li id="shipping_option">
      <label for="country">Shipping</label>
      {{ store.country | country_select }}

      {% if cart.shipping.pending %}
        {% if cart.country %}
        <span class="no_shipping">We don't ship to {{ cart.country.name }}</span>
        {% endif %}
      {% endif %}
    </li>
    {% endif %}
    {% endif %}

    {% if cart.discount.enabled %}
    <li id="cart_discount" class="cart_item">
      {% if cart.discount.pending %}
        <label id="cart_discount_label" for="cart_discount_code">Discount</label>
        {{ cart.discount | discount_code_input }}
      {% elsif cart.discount.free_shipping %}
         <label for="cart_discount_code">Discount</label>
        <p>{{ cart.discount.name }}</p>
      {% else %}
        <label for="cart_discount_code">Discount</label>
        <p>{{ cart.discount.name }}</p>
      {% endif %}
    </li>
    {% endif %}
  </ul>

  <div class="cart-update">
    <button id="update-btn-footer" class="update-btn button disabled" name="update" type="submit" title="Update your cart total"><span>Update total</span></button>
  </div>
</section>
{% else %}
<section id="cart_options" class="solo_update">
  <div class="cart-update">
    <button id="update-btn-footer" class="update-btn button disabled" name="update" type="submit" title="Update your cart total"><span>Update total</span></button>
  </div>
</section>
{% endif %}
  </div>

  <section id="cart_summary">
<ul>
  <li>
    <h3>Items</h3>
    <span>{{ cart.subtotal | money_with_sign }}</span>
  </li>
  {% if cart.shipping.enabled %}
  <li id="cart-shipping-tax">
    <h3>Shipping</h3>
    {% if cart.shipping.pending %}
      {% if cart.country %}
      <span class="shipping-amount">Select another country</span>
      {% else %}
      <span class="shipping-amount">Select country</span>
      {% endif %}
    {% else %}
      <span class="shipping-amount">{{ cart.shipping.amount | money_with_sign }}</span>
    {% endif %}
  </li>
  {% else %}
  <li id="cart-shipping-tax" class="not_set">
    <h3>Shipping</h3>
    <span>Applicable fees apply</span>
  </li>
  {% endif %}

  {% if cart.discount.enabled %}
    {% if cart.discount.pending %}

    {% elsif cart.discount.free_shipping %}
    <li>
      <h3>Discount</h3>
      <span>Free shipping!</span>
    </li>
    {% else %}
    <li>
      <h3>Discount</h3>
      <span>-{{ cart.discount.amount | money_with_sign }}</span>
    </li>
    {% endif %}
  {% endif %}
  <li id="cart_total">
    <h3>Total</h3>
    <h2>{{ cart.total | money_with_sign }}</h2>
  </li>
</ul>

<button id="checkout-btn" class="button" type="submit" title="Checkout">Checkout</button>
  </section>
</form>
{% else %}
<div id="cart_empty">
  <p>Your cart is empty! Sounds like a good time to <a href="/">start shopping</a>.</p>
</div>
{% endif %}

谢谢!

【问题讨论】:

    标签: layout cart bigcartel


    【解决方案1】:

    Luna 主题代码没有任何已知问题会阻止客户结帐 - 您无需编辑任何设置或更改任何代码。

    听起来您的自定义域可能使用 IFRAME 设置不正确,因为已知这会导致购物车页面重定向到结帐时出现问题。您可以通过使用您的 storename.bigcartel.com URL 与自定义域来测试这一点,看看是否是这种情况。

    由于这与您的主题无关,因此您需要直接与 Big Cartel 支持部门联系,他们应该能够帮助您进一步排除故障。

    【讨论】:

    • 我发现一些地方说如果在购物车页面上选中“使用我的商店布局”,主题将不允许结帐功能。
    • 这里是来自support.themefiend.com/customer/portal/articles/…的问题的一个参考
    • 没有取消选中“结帐”编辑页面的“使用我的商店布局”复选框。如果在您的商店中单击“结帐”按钮时,您会被重定向并停留在显示“稍等...”之类的页面上,这可能是由于未取消选中文本旁边的复选框“使用我的商店的布局”在“结帐”编辑页面中。必须取消选中此框才能使用结帐功能。
    • 一些店主可能决定选中此框,以便在商店布局中显示“One moment...”消息。但是,我们的主题不允许在布局中显示该消息而不会导致结帐功能出现问题。
    • 该帮助文章仅适用于从 Theme Fiend 购买的自定义主题,不适用于任何默认的 Big Cartel 主题。您需要与 Big Cartel 支持团队合作解决您的特定问题,因为这听起来与您的自定义域有关。
    猜你喜欢
    • 2014-05-13
    • 1970-01-01
    • 2020-01-12
    • 2018-12-17
    • 2019-11-02
    • 2014-12-04
    • 1970-01-01
    • 2014-11-09
    • 2014-01-16
    相关资源
    最近更新 更多