大卡特尔月神主题。购物车不会进行结账

时间:2014-04-14 09:29:23

标签: layout cart bigcartel

我很乐意为此提供一些帮助。

在购物车页面上,当"使用我的商店布局"选择,当客户点击"结帐",它只是在页面上循环并且不会继续结帐。这是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 %}

谢谢!

1 个答案:

答案 0 :(得分:0)

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

听起来您的自定义域可能会被错误地设置为IFRAME,因为这会导致购物车页面重定向到结帐时出现问题。您可以使用storename.bigcartel.com URL与自定义域进行测试,以查看是否属于这种情况。

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

相关问题