FROM CACHE - es_header

Mostrar precios pagina de collection

yaliduc
Nuevo miembro
4 0 0

Hola, estoy usando el tema Debut pero no me aparecen los precios en Frontpage o pagina de coleccion. He buscado y no tengo "Product-card.liquid" en ningun lado. Podrian ayudarme?

7 RESPUESTAS 7

Cristina
Shopify Staff (Retired)
203 8 37

¡Hola, yaliduc!

 

Bienvenido a la comunidad de Shopify. ¿Has tocado el código tú mism@? ¿O has instalado alguna aplicación justo antes de que desaparecieran los precios?

En este artículo de ayuda se explica cómo eliminarlos. ¿Es posible que lo hayas hecho tú?

 

Si todavía no has hecho muchos cambios de diseño, lo más sencillo sería usar una copia nueva de Debut: así te aseguras de que el código esté bien y completo.

 

Saludos,

To learn more visit the Shopify Help Center or the Community Blog.

yaliduc
Nuevo miembro
4 0 0

Cuando empece a trabajar con esa cuenta de shopify ya alguien mas la habia configurado. Es de un cliente. Voy a probar lo que me estas diciendo de la copia del tema original y te informo. Gracias!

yaliduc
Nuevo miembro
4 0 0

Aun nada. Hay muchos cambios de diseño. Estuve probrando y creo que el problema radica en estos codigos...

 

{% if sidebar %}
  <div class="{% if products_per_row == 2 %}six columns {% cycle collection_group_thumb: 'alpha', 'omega' %}{% elsif products_per_row == 3 %}four columns {% cycle collection_group_thumb: 'alpha', '', 'omega' %}{% else %}three columns {% cycle collection_group_thumb: 'alpha', '', '', 'omega' %}{% endif %} thumbnail {% cycle collection_group_mobile: 'even', 'odd' %}" itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
{% else %}
  <div class="{% if products_per_row == 2 %}eight columns {% cycle collection_group_thumb: 'alpha', 'omega' %}{% elsif products_per_row == 3 %}one-third column {% cycle collection_group_thumb: 'alpha', '', 'omega' %}{% else %}four columns {% cycle collection_group_thumb: 'alpha', '', '', 'omega' %}{% endif %} thumbnail {% cycle collection_group_mobile: 'even', 'odd' %}" itemprop="itemListElement" itemscope itemtype="http://schema.org/Product">
{% endif %}
 
  {% assign collection_handles = product.collections | map: 'handle' %}
  {% if product.featured_image.alt contains 'youtube' or image.alt contains 'vimeo' %}
    {% assign alt_text = product.title %}
  {% else %}
    {% assign alt_text = product.featured_image.alt %}
  {% endif %}
 
  {% if settings.align_height %}
    {% assign collection_height = settings.collection_height | plus: 0 %}
    {% assign product_aspect_ratio = product.featured_image.aspect_ratio | plus: 0 %}
    {% assign product_set_width = product_aspect_ratio | times: collection_height %}
 
    {% if product.featured_image.width >= product.featured_image.height %}
      {% assign align_height_value = 'width: 100%; height: auto;' %}
    {% else %}
      {% assign align_height_value = 'width: 100%;' %}
    {% endif %}
 
  {% endif %}
 
  <a href="{{ product.url | within: collection }}" itemprop="url">
    <div class="relative product_image">
      <div class="image__container" style="{% if settings.align_height %} max-width: {{ product_set_width }}px; {% else %} max-width: {{- product.featured_image.width -}}px; {% endif %}">
        <img  src="{{ product.featured_image | product_img_url: '100x' }}"
              alt="{{ alt_text | escape }}"
              class="lazyload lazyload--mirage primary"
              style="{{ align_height_value }} max-width: {{- product.featured_image.width -}}px;"
              data-sizes="auto"
              data-src="{{ product.featured_image | product_img_url: '2048x' }}"
              data-srcset=" {{ product.featured_image | product_img_url: '2048x' }} 2048w,
                            {{ product.featured_image | product_img_url: '1600x' }} 1600w,
                            {{ product.featured_image | product_img_url: '1200x' }} 1200w,
                            {{ product.featured_image | product_img_url: '1000x' }} 1000w,
                            {{ product.featured_image | product_img_url: '800x' }} 800w,
                            {{ product.featured_image | product_img_url: '600x' }} 600w,
                            {{ product.featured_image | product_img_url: '400x' }} 400w"
            />
          <div class="transition-helper">
          </div>
      </div>
 
      {% if settings.collection_secondary_image %}
        <img src="{% if product.images[1] != blank %}{{ product.images[1] | product_img_url: '580x', scale: 2 }}{% else %}{{ product.featured_image | product_img_url: '580x', scale: 2 }}{% endif %}" class="secondary" alt="{{ alt_text | escape }}" />
      {% endif %}
 
      {% if settings.quick_shop_enabled %}
        <span data-fancybox-href="#product-{{ product.id }}" class="quick_shop action_button" data-gallery="product-{{ product.id }}-gallery">
          {{ 'collections.general.quick_shop' | t }}
        </span>
      {% endif %}
    </div>
    <div class="info">
      <h5 class="title product-title" itemprop="name">{{ product.title }}</h5>
      <span>{{ product.metafields.prod-details.sub-title }}</h3>
      {% if settings.enable_shopify_collection_badges %}
          <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
        {% endif %}
      {% if settings.display_vendor_collection %}
        <br />
        <span itemprop="brand">{{ product.vendor }}</span>
      {% endif %}
 
      {% unless collection_handles contains 'coming-soon' %}
        <span class="price {% if product.compare_at_price_max > product.price %}sale{% endif %}" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
          <meta itemprop="price" content="{{ product.price_min | money_without_currency | remove: "," }}" />
          <meta itemprop="priceCurrency" content="{{ shop.currency }}" />
          <meta itemprop="seller" content="{{ shop.name | escape }}" />
          <link itemprop="availability" href="http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}">
          <meta itemprop="itemCondition" content="New" />
 
          <!-- Jamnation: Hides price in collection -->
          {% comment %}
          {% if product.available %}
            {% if product.price_varies and product.price_min > 0 %}
              <small><em>{{ 'products.general.from' | t }}</em></small>
            {% endif %}
            {% if product.price_min > 0 %}
              <span class="money">{{ product.price_min | money }}</span>
            {% else %}
              {{ settings.free_price_text }}
            {% endif %}
            {% if product.compare_at_price_max > product.price %}
              <span class="was_price">
                <span class="money">{{ product.compare_at_price_max | money }}</span>
              </span>
            {% endif %}
          {% else %}
            <span class="sold_out">{{ 'products.product.sold_out' | t }}</span>
          {% endif %}
          {% endcomment %}
        </span>
      {% endunless %}
    </div>
    {% if settings.sale_banner_enabled and product.compare_at_price_max > product.price %}
      <div class="sale_banner">{{ 'collections.general.sale' | t }}</div>
    {% endif %}
 
    {% if collection_handles contains 'new' %}
      <div class="new_banner">{{ 'collections.general.new' | t }}</div>
    {% endif %}
    {% if collection_handles contains 'coming-soon' %}
      <div class="new_banner">{{ 'collections.general.coming_soon' | t }}</div>
    {% endif %}
    {% if collection_handles contains 'pre-order' %}
      <div class="new_banner">{{ 'collections.general.pre_order' | t }}</div>
    {% endif %}
  </a>
  {% include 'collection-swatch' %}
</div>
 
{% if settings.quick_shop_enabled %}
  {% if product.description contains "#tab1" %}
    {% assign tabs = true %}
  {% else %}
    {% assign tabs = false %}
  {% endif %}
 
  <div id="product-{{ product.id }}" class="modal product-{{ product.id }} product_section thumbnail_position--{{settings.thumbnail_position}} product_slideshow_animation--{{settings.product_slideshow_animation}}"
       data-thumbnail="{{settings.thumbnail_position}}"
       data-slideshow-animation="{{settings.product_slideshow_animation}}"
       data-slideshow-speed="{{settings.slideshow_speed}}">
    <div class="container" style="width: inherit">
 
      <div class="eight columns" style="padding-left: 15px">
        {% include 'product-images' with 'modal' %}
      </div>
 
      <div class="six columns">
        <h3>{{ product.title }}</h3>
        {% if settings.enable_shopify_collection_badges %}
          <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
        {% endif %}
        {% if settings.display_vendor_collection %}
          <p class="vendor">
            <span itemprop="brand">{{ product.vendor | link_to_vendor }}</span>
          </p>
        {% endif %}
 
        {% if settings.product_description_position == "top" %}
          {% if settings.description_words == "none" %}
            {{ product.description | split: '<!-- split -->' | first }}
          {% else %}
            {% if tabs %}
              {{ product.description | split: '<!-- split -->' | first }}
            {% else %}
              <p>{{ product.description | strip_html | truncatewords: settings.description_words }}</p>
            {% endif %}
          {% endif %}
          <p>
            <a href="{{ product.url | within: collection }}" class="view_product_info" title="{{ product.title | escape }}">{{ 'collections.general.view_product_details_html' | t }}</a>
          </p>
          <hr />
        {% endif %}
 
        {% assign variant = product.selected_or_first_available_variant %}
 
        {% unless collection_handles contains 'coming-soon' %}
          <p class="modal_price">
            <span class="sold_out">{% if variant.available == false %}{{ 'products.product.sold_out' | t }}{% endif %}</span>
            <span class="{% if variant.compare_at_price > variant.price %}sale{% endif %}">
              <span class="current_price {% if product.available == false %}hidden{% endif %}">
                {% if variant.price > 0 %}
                  <span class="money">{{ variant.price | money }}</span>
                {% else %}
                  {{ settings.free_price_text }}
                {% endif %}
              </span>
            </span>
            <span class="was_price">
              {% if variant.price < variant.compare_at_price and variant.available %}
                <span class="money">{{ variant.compare_at_price | money }}</span>
              {% endif %}
            </span>
          </p>
 
          {% include 'product-notify-me' %}
        {% endunless %}
 
        <!-- Jamnation: We have multiple product templates. -->
        {% comment %}
        {% unless collection_handles contains 'coming-soon' %}
          {% include 'product-form' %}
        {% endunless %}
        {% endcomment %}
        
        {% unless collection_handles contains 'coming-soon' %}
          {% unless collection_handles contains 'line-item-gift-set-products' or collection_handles contains 'line-item-subscription-products' %}
              {% include 'product-form' %}
          {% endunless %}
        {% endunless %}
 
        {% if collection_handles contains 'line-item-gift-set-products' %}
        {% include 'product-form-giftset' %}
        {% endif %}
        
        {% if collection_handles contains 'line-item-subscription-products' %}
        {% include 'product-form-subscription' %}
        {% endif %}
 
        {% if settings.product_description_position == "bottom" %}
          <hr />
          {% if settings.description_words == "none" %}
            {{ product.description | split: '<!-- split -->' | first }}
          {% else %}
            {% if tabs %}
              {{ product.description | split: '<!-- split -->' | first }}
            {% else %}
              <p>{{ product.description | strip_html | truncatewords: settings.description_words }}</p>
            {% endif %}
          {% endif %}
          <p>
            <a href="{{ product.url | within: collection }}" class="view_product_info" title="{{ product.title | escape }}">{{ 'collections.general.view_product_details_html' | t }}</a>
          </p>
        {% endif %}
      </div>
    </div>
  </div>
{% endif %}

 

Cristina
Shopify Staff (Retired)
203 8 37

Hola, yaliduc:

 

Perdón, no fui del todo específica. Me refería a una copia *nueva*, limpia, del tema Debut tal cual lo encuentras en la Tienda de temas, no una copia del tema Debut que está actualmente publicado.

 

Para instalar una versión totalmente limpia de Debut, haz lo siguiente:

  • 1. Ve a Online store > Temas
  • 2. En la sección "Temas adicionales", dale al botón "Explorar temas gratis":

07-48-ph1cj-eqdki

 

 

 

  • 3. Selecciona el tema Debut

07-51-4808q-bbq4j

 

 

 

 

 

 

 

 

 

 

 

 

  • 4. Dale al botón "Agregar Debut"

07-55-nmi8n-vl03w

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ya lo verás en la sección de temas adicionales y puedes modificarlo como es habitual dándole al enlace "Personalizar", o con las opciones del menú "Acciones".

 

Saludos,

 

To learn more visit the Shopify Help Center or the Community Blog.

yaliduc
Nuevo miembro
4 0 0

Ya hay muchas modificaciones. El tema que realmente estpy usando es el retina. Por favor podrian decirme que codigo debo de cambiar?

thebabiesgrow
Curioso(a)
5 0 1

Yo tengo el mismo problema, lo intente exactamente como dijiste y aun asi sigue el problema 

 

desaparece el precio cuando hago seleccion de alguna otra opcion del producto

 

con precio.JPGsin precio.JPG

Jonatandpe
Visitante
1 0 0

Mi problema es que el precio que muestra en la colección mostrada en Home de Debut ("Más vendidos" titulé esta sección) muestra el precio de la variedad más pequeña y la foto y el precio comparable de la que escogí y debería mostrar. Cómo puede escoger que muestre el precio de la de la foto junto con su comparable.