Empire Theme Product Variant Price is not Changing in Product Page

Highlighted
New Member
5 0 0

Can anybody help me? I am using empire theme and i can't able to get the developer.

 

{% assign enable_recently_viewed = false %}
{% assign recently_viewed_info = '' %}

{% if settings.product_enable_recently_viewed_products %}
{% assign enable_recently_viewed = true %}

{% capture recently_viewed_image %}
{% if product.images.size > 0 %}
{{ product.images[0] | image_url: '180x180' | json }}
{% else %}
{%-
include 'placeholder_svg_uri'
placeholder: 'image'
-%}
{% endif %}
{% endcapture %}

{% if product.images.size < 1 %}
{% assign recently_viewed_image = recently_viewed_image | json %}
{% endif %}

{% assign selected_variant = product.selected_or_first_available_variant %}
{% assign compare_at_price = selected_variant.compare_at_price %}
{% assign price = selected_variant.price %}
{% assign product_available = product.available %}

{% assign on_sale = false %}
{% if compare_at_price > price %}
{% assign on_sale = true %}
{% endif %}

{% capture product_price %}
{%
include 'product-badge',
class_root: 'product',
product_available: product_available,
on_sale: on_sale,
price: price,
compare_at_price: compare_at_price,
show_saved: true
%}

{%
include 'product-price',
class_root: 'product',
price: price,
price_varies: false,
compare_at_price: compare_at_price,
compare_at_price_varies: false,
on_sale: on_sale,
emphasize_price: false,
show_original: true
%}
{% endcapture %}

{% capture recently_viewed_info %}
,
"recently_viewed_info": {
"title": {{ product.title | json }},
"handle": {{ product.handle | json }},
"image": {{ recently_viewed_image }},
"link": {{ product.url | within: collection | json }},
"price": {{ product_price | json }}
},
"time": {
"second": {{ 'general.time.second' | t | json }},
"seconds": {{ 'general.time.seconds' | t | json }},
"minute": {{ 'general.time.minute' | t | json }},
"minutes": {{ 'general.time.minutes' | t | json }},
"hour": {{ 'general.time.hour' | t | json }},
"hours": {{ 'general.time.hours' | t | json }},
"ago": {{ 'general.time.ago' | t | json }}
}
{% endcapture %}
{% endif %}

<script
type="application/json"
data-section-type="static-product"
data-section-id="{{ section.id }}"
data-section-data
>
{
"settings": {
"cart_redirection": {{ section.settings.product_cart_redirect | json }},
"layout": {{ section.settings.layout | json }},
"money_format": {{ shop.money_format | strip_html | json }},
"enable_video_autoplay": {{ section.settings.enable_video_autoplay | json }},
"enable_image_zoom": {{ settings.enable_image_zoom | json }},
"image_zoom_level": {{ settings.image_zoom_level | json }}
},
"context": {
"product_available": {{ 'product.buttons.add_to_cart' | t | json }},
"product_unavailable": {{ 'product.buttons.sold_out' | t | json }}
},
"product": {{ product | json }}
{% if enable_recently_viewed %}
{{ recently_viewed_info }}
{% endif %}
}
</script>

{% include 'breadcrumbs' %}

<section class="product--container {{ section.settings.layout }}" data-product-wrapper>
{%
include 'product',
layout: section.settings.layout,
is_product_modal: false
%}
</section>

{% if section.settings.enable_related_products %}
{% assign related_collection = collection %}
{% if collection == null or collection.handle == 'frontpage' or collection.handle == 'all' %}
{% assign collection_found = false %}
{% for c in product.collections %}
{% if collection_found == false and c.handle != 'frontpage' and c.handle != 'all' %}
{% assign collection_found = true %}
{% assign related_collection = c %}
{% break %}
{% endif %}
{% endfor %}
{% endif %}

{% if related_collection.products.size > 0 %}
{%
include 'related-products',
current_product: product.id
%}
{% endif %}
{% endif %}

{% if settings.product_ratings_reviews %}
<section class="product-section--container" data-product-reviews>
<div class="product-section--content product-reviews--content">
<div id="shopify-product-reviews" data-id="{{product.id}}">{{ product.metafields.spr.reviews }}</div>
</div>
</section>
{% endif %}

{% if settings.product_enable_recently_viewed_products %}
<section class="product-section--container product-recently-viewed--section">
<div class="product-recently-viewed-wrapper">
<div class="product-recently-viewed-header">
<h3 class="product-recently-viewed-heading">
{{ 'general.time.previous' | t }}
</h3>
<span
class="product-recently-viewed-clear"
data-clear-recently-viewed
>
{{ 'general.time.clear' | t }}
</span>
</div>

<div
class="
product-section--content
product-recently-viewed--content
imagestyle--{{ settings.product_grid_image_style }}
"
data-recently-viewed-container
></div>
</div>
</section>
{% endif %}

{% schema %}
{
"name": "Product pages",
"class": "product--section",
"settings": [
{
"id": "layout",
"type": "select",
"label": "Layout",
"options": [
{
"value": "layout--two-col",
"label": "2 columns"
},
{
"value": "layout--three-col",
"label": "3 columns"
}
],
"default": "layout--three-col"
},
{
"type": "checkbox",
"id": "enable_related_products",
"label": "Enable related products",
"default": false
},
{
"type": "checkbox",
"id": "enable_video_autoplay",
"label": "Enable autoplay for product videos",
"default": false
},
{
"type": "checkbox",
"id": "show_dcb",
"label": "Show dynamic checkout button",
"info": "Lets customers check out directly using a familiar payment method. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
"default": false
},
{
"type": "checkbox",
"id": "product_cart_redirect",
"label": "Enable cart redirection",
"info": "Automatically sends users to the Cart page after adding a product.",
"default": false
}
]
}

{% endschema %}

0 Likes
Highlighted
Shopify Partner
1023 214 463

Hello VasimSalim,

 

Please share your product page URL so, I can take a look and assist you better.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
New Member
5 0 0
Highlighted
Shopify Partner
1023 214 463

Hello VasimSalim,

 

I checked your product page and seems like some JavaScript is conflict in your product page so variant not changing properly.

 

product-variant-error.png

 

I think we have to check in code to identify the exact issue. If you don't mind then share your credential on mail so I can try to fix your issue. let me know if you have any question or doubt.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
New Member
2 0 0

I currently have the exact same problem. How do i fix it? 

 

Thanks! 

0 Likes
Highlighted
Shopify Partner
1023 214 463

@John_Brael 

 

Please share your store URL so, I can take a look and assist you better.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
New Member
2 0 0

Hello Tejas, thank you for the help. Here is the store page url: https://solprodukter.myshopify.com/collections/vaxelriktare/products/solaredge-3-fas-4kw 

0 Likes
Highlighted
Shopify Partner
1 0 0

Hello togehter,

 

I currently have the exact same problem. How do i fix it? 

 

 

Reegards, 

0 Likes
Highlighted
Shopify Partner
4 0 1

Hey Tejas, 

 

My store has the same problem with Empire theme and how can we fix it?

 

Here is our URL: https://iso-delivery.myshopify.com (password Burnie)

 

Thanks!

 

Cheers,

Bobbie

0 Likes
Highlighted
New Member
1 0 0
Hello i Have the same pbm.

Here my URL : https://crea-food.myshopify.com/products/tarte-multi-fruits

Many thanks
0 Likes