Kenms
January 7, 2022, 8:00pm
1
Hi,
I have a problem with Moleez theme, when a product that have variants with direferent prices, the price dont change, I tried code customization and contact support cleversoft but didnt respond, this is the code of product.liquid.
The price dont work too in cart.
{% assign lable_sale = false %}
{% if product.compare_at_price_min > product.price_min %}
{% assign lable_sale = true %}
{% endif %}
{% comment %}
Check if the product is sold out and set a variable to be used below.
{% endcomment %}
{% assign lable_out = true %}
{% if product.available %}
{% assign lable_out = false %}
{% endif %}
Home
{% if template contains 'product' %}
/
{{ product.title }}
{% elsif template contains 'collection' and collection.handle %}
{% if current_tags %}
/
{% capture url %}/collections/{{ collection.handle }}{% endcapture %}
{{ collection.title | link_to: url }}
/
{{ current_tags.first }}
{% else %}
/
{{ collection.title }}
{% endif %}
{% elsif template == ‘article’ %}
/
{{ blog.title | link_to: blog.url }}
/
{{ article.title }}
{% elsif template contains ‘page’ %}
/
{{ page.title }}
{% else %}
/
{{ page_title }}
{% endif %}
{% if collection.previous_product %}
{% if collection.next_product.title != blank %}
{{collection.next_product.title }}
{%- if collection.next_product.price_varies -%}
{{ collection.next_product.price_min | money }} – {{ collection.next_product.price_max | money }}
{%- elsif collection.next_product.compare_at_price > collection.next_product.price -%}{{ collection.next_product.compare_at_price | money }} {{ collection.next_product.price | money }}
{%- else -%}
{{ collection.next_product.price | money }}
{%- endif -%}
{% endif %}
{% endif %}
{% if collection.next_product %}
{% if collection.previous_product.title != blank %}
{{collection.previous_product.title }}
{%- if collection.previous_product.price_varies -%}
{{ collection.previous_product.price_min | money }} – {{ collection.previous_product.price_max | money }}
{%- elsif collection.previous_product.compare_at_price > collection.previous_product.price -%}{{ collection.previous_product.compare_at_price | money }} {{ collection.previous_product.price | money }}
{%- else -%}
{{ collection.previous_product.price | money }}
{%- endif -%}
{% endif %}
{% endif %}
{% assign content = product.description | remove: "[disable-icon-new]" %}
{% if section.settings.enable_block_right %}
{% else %}
{% endif %}
{% if product.images.size == 0 %}
{% else %}
{% assign featured_image = product.selected_or_first_available_variant.featured_image | default: product.featured_image %}
{% include 'product-360'%}
{% if instructions.degree-360-preview %}
{% endif %}
{% include 'cleversoft-video' %}
{% if product.images.size > 0 %}
{% for image in product.images %}
{% endfor %}
{% endif %}
{% endif %}
{% if section.settings.display_sale %}
{% include 'cleversoft-label' %}
{% endif %}
{% if lable_sale %}
{% if lable_sale %}
-{{ product.compare_at_price_max | minus:product.price | times:100 | divided_by:product.compare_at_price_max |round: 0 }}%
{% endif %}
{% endif %}
{% if section.settings.display_availability or section.settings.display_product_type or section.settings.display_vendor %}
{% if section.settings.display_availability %}
{{'product.detail.availability_label' | t}}
{% if product.selected_or_first_available_variant.inventory_management %}
{% assign first_inventory = product.selected_or_first_available_variant.inventory_quantity %}
{% if first_inventory > 0 %}{{'product.detail.instock_product' | t}} {% else %}{{'product.detail.outstock_product' | t}}{% endif %}
{% else %}{{'product.detail.manystock_product' | t}}{% endif %}
{% endif %}
{% endif %}
{{ product.title }}
{% if section.settings.display_product_reviews %}
{% endif %}
{% if section.settings.product_flash_sold_enable %}
sold in last hours
{% endif %}
{% if section.settings.show_vendor %}
Vendor: {{ product.vendor }}
{% endif %}
{% assign current_variant = product.selected_or_first_available_variant %}
{% if section.settings.show_sku %}
SKU: {{ current_variant.sku }}
{% endif %}
{% if product.compare_at_price > product.price %}
{{ product.compare_at_price_max | money }}
{{ product.price | money }}
{% else %}
{{ product.price | money }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% if instructions.short-description %}
{% include 'cleversoft-shortdecription' %}
{% else %}
{%endif %}
{% include ‘cleversoft-countdown’ %}
{% assign instructions = product.metafields.meta %}
{% assign key = ‘progress-bar’ %}
{% if instructions.progress-bar %}
Hurry! Only {{inventory_solid}} left in Stock.
{%endif %}
{% form 'product', product, id: "add-to-cart-form" %}
{% assign variantCount = product.variants | size %}
{% assign variantCounts = product.options | size %}
{% if product.available %}
{% if variantCount > 1 %}
{% for variant in product.variants %}
{{ variant.title }} - {{ variant.price | money }}
{% endfor %}
{% for option in product.options[0] %}
{% include ‘swatch’ with option %}
{% endfor %}
{% for option in product.options[1] %}
{% include ‘swatch-1’ with option %}
{% endfor %}
{% for option in product.options[2] %}
{% include ‘swatch-2’ with option %}
{% endfor %}
{% else %}
{% endif %}
{% endif %}
{% include 'cleversoft-sizechart' %}
{% if section.settings.enable_delivery %}
{% endif %}
{% if section.settings.enable_ask_product %}
{% endif %}
{% if product.available %}
{% if section.settings.show_quantity_selector %}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% if instructions.external-link %}
{{instructions.external-link }}
{%else%}
{{'product.detail.add_cart' | t}}
{% endif %}
{% else %}
{% if instructions.external-link %}
{{instructions.external-link }}
{%else%}
{{'product.detail.unavailable' | t}}
{% endif %}
{% endif %}
{% if section.settings.enable_payment_button %}
{% if section.settings.product_conditions %}
{% endif %}
{{ form | payment_button }}
{% endif %}
{% endform %}
{% if settings.enable_wishlist %}
{% if customer %}
{% else %}
{% endif %}
{%endif %}
{% if settings.enable_product_compare %}
{% endif %}
{% if section.settings.show_text_countdown %}
{% capture countdown_counter_html %} {% endcapture %}
{% capture countdown_delivery_html %} {% endcapture %}
{{ 'products.product.text_countdown_html' | t: counter: countdown_counter_html, delivery: countdown_delivery_html }}
{% endif %}
{% if section.settings.show_visitors %}
{%- assign visitors_random_diff = settings.product_visitors_max | minus: settings.product_visitors_min -%}
{%- assign visitors_random = "now" | date: "%N" | modulo: visitors_random_diff | plus: settings.product_visitors_min -%}
{% capture visitors_counter_html %}{{ visitors_random }} {% endcapture %}
{{ 'products.product.visitors_html' | t: counter: visitors_counter_html }}
{% endif %}
{% if section.settings.display_spend_shipping %}
Free Shipping on orders over ${{settings.calculte_free_shipping_number }} .
{% endif %}
{% if product.collection.title == “SuperAde” %}
{% if section.settings.product_bagde_image %}
{% if settings.bagde_image != blank %}
{% else %}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg' }}
{%endif %}
{% endif %}
{% endif %}
{% if product.available %}
{% else %}
{% endif %}
{% if section.settings.show_categories %}
Categories:
{% for collection in product.collections %}
{{ collection.title }},
{% endfor %}
{% endif %}
{% if section.settings.show_type %}
Product Type: {{product.type }}
{% endif %}
{% if section.settings.show_barcode %}
{% assign current_variant = product.selected_or_first_available_variant %}
Barcode: {{current_variant.barcode }}
{% endif %}
{% if section.settings.show_tag %}
Tags:
{% for tag in product.tags %}
{% capture url %}/collections/all/{{ tag | handle }}{% endcapture %}
{{ tag | link_to: url }},
{% endfor %}
{% endif %}
{% if section.settings.enable_product_icon_isocal %}
Share:
{% capture share_url %}{{ shop.url }}{{ product.url }}{% endcapture %}
{% if section.settings.icon_isocal_2 != blank %}
{% endif %}
{% if section.settings.icon_isocal_1 != blank %}
{% endif %}
{% if section.settings.icon_isocal_4 != blank %}
{% endif %}
{% if section.settings.icon_isocal_3 != blank %}
{% endif %}
{% endif %}
{% if section.settings.enable_block_right %}
{% include 'block-productdetail-right' %}
{% endif %}
{% if section.settings.display_product_detail_description %}
Description
{% endif %}
{% if section.settings.display_product_reviews %}
Reviews
{% endif %}
{%- for block in section.blocks -%}
{{ block.settings.for_group }}
{% endfor %}
{% assign instructions = product.metafields.meta %}
{% assign key = ‘tabs-title-1’ %}
{% if instructions.tabs-title-1 %}
{{ instructions.tabs-title-1 }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-title-2' %}
{% if instructions.tabs-title-2 %}
{{ instructions.tabs-title-2 }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-title-3' %}
{% if instructions.tabs-title-3 %}
{{ instructions.tabs-title-3 }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-title-4' %}
{% if instructions.tabs-title-4 %}
{{ instructions.tabs-title-4 }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-title-5' %}
{% if instructions.tabs-title-5 %}
{{ instructions.tabs-title-5 }}
{% endif %}
{% if section.settings.display_product_detail_description %}
{{ content }}
{% endif %}
{% if section.settings.display_product_reviews %}
{{ product.metafields.spr.reviews }}
{% endif %}
{%- for block in section.blocks -%}
{{ block.settings.tabs_content }}
{% endfor %}
{% if section.settings.product_customtabs_2 %}
{{ section.settings.product_customtabs_content_2 }}
{% endif %}
{% if section.settings.product_customtabs_3 %}
{{ section.settings.product_customtabs_content_3 }}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = ‘tabs-content-1’ %}
{% if instructions.tabs-content-1 %}
{{instructions.tabs-content-1}}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-content-2' %}
{% if instructions.tabs-content-2 %}
{{instructions.tabs-content-2}}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-content-3' %}
{% if instructions.tabs-content-3 %}
{{instructions.tabs-content-3}}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-content-4' %}
{% if instructions.tabs-content-4 %}
{{instructions.tabs-content-4}}
{% endif %}
{% assign instructions = product.metafields.meta %}
{% assign key = 'tabs-content-5' %}
{% if instructions.tabs-content-5 %}
{{instructions.tabs-content-5}}
{% endif %}
{% if section.settings.enable_product_image_zoom %}
body .zoomContainer{display:block!important;}
{% endif %}
.zoomContainer{display:none!important;}
.product-shop.fix-prox {
position: fixed;
left: 0;
top: 120px;
margin-top: 0!important;
}
@Kenms
This is code customization work. please hire a Shopify expert.
Thanks!