Price doesnt change when i change the size variant and color variant

New Member
5 0 0

Good Morning,

 

I have difficulty to understand where im doing something wrong when i change the size and color variant, i have tested everything and i cant put it work, can the support help me understand better this problem ?

 

Example : size S and color blue = 23€ / size S and color red= 25€

size M and color blue = 27€ / size M and color red= 29€

the prince doesnt change between them

 

Best regards

0 Likes
Shopify Partner
430 83 93

Hello 

Seems you have conflict in JS, please share store url for better assist.

Thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Shopify Partner
430 83 93

need password to enter 

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
New Member
5 0 0

i'm sorry the password is this: ppchick

0 Likes
Shopify Partner
430 83 93

Working fine for me, may be you are confused in From price.  From price will not changes.
Only Price under these variant will change.
size-medium-color-blue-price27.PNG

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
New Member
5 0 0

This are the product variants he only detect the blue color when the color changes to red the price dont change

 

Capturar_piupiu.PNG

0 Likes
Shopify Partner
430 83 93

Without checking theme code can't say  more about this but in default themes there is no such issue, please  try to fix these conflicts 
conflict.PNG

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
New Member
5 0 0

i will fix the conflicts mean while i let here the page code from the theme:

 

Swatch_simple.liquid

{%- if settings.color_name_check != blank -%}{%- assign _gl_color_name = settings.color_name_check | replace: ' ,', ',' | replace: ', ', ',' | split: ',' -%}{%- assign gl_color_name = _gl_color_name | downcase -%}{%-else-%}{%- assign gl_color_name = '\nathan_dt\' -%}{%-endif-%}
{%- if settings.size_name_check != blank -%}{%- assign _gl_size_name = settings.size_name_check | replace: ' ,', ',' | replace: ', ', ',' | split: ',' -%}{%- assign gl_size_name = _gl_size_name | downcase -%}{%-else-%}{%- assign gl_size_name = '\nathan_dt\' -%}{%-endif-%}
{%- assign lang_option = 'Größe'| downcase -%}
{%- if select_id == 'nt_select_quick'-%}
   {%- assign select_id = 'nt_select_quick' -%}
   {%- assign select_class = 'nt_none_' -%}   
{%- else -%}
   {%- assign select_id = 'nt_select' -%}
   {%- assign select_class = 'nt_select_pr_' -%}    
{%- endif -%}
{%- unless cl_selected -%}
{%- assign cl_selected = 'is-selected-none' -%}
{%- endunless -%}
<div class="variations variant_simple">
	{%- for option in product.options_with_values -%}
      {%- assign option_index = forloop.index0 -%}
      {%- assign downcased_option = option.name | downcase -%}
      {%- assign downcased_option_check = downcased_option | prepend: '"' | append: '"' | strip -%}
         {%- if downcased_option == 'color' or downcased_option == 'couleur' or downcased_option == 'colors' or gl_color_name contains downcased_option_check -%}
			   <div class="{{select_class}}{{ option_index }} swatch is-label{%- if forloop.last == true %} mb__25{%- else %} mb__15{%- endif -%}" data-option-index="{{ option_index }}" id="{{select_id}}_{{ option_index }}">
			   	{%- capture for_color -%}
			   	   {%- for value in option.values -%}
			   		   <li aria-label='{{ value | capitalize }}' class="nt-swatch swatch__list--item pr bg_css_{{ value | handleize }} swatch-size-{{settings.swatch_size}}{%- if settings.swatch_style == '1' %} colored-swatch{%- else %} image-swatch{%- endif %}{%- if first_available_variant and option.selected_value == value %}{%- assign is_selected = value | capitalize %} {{cl_selected}}{%- elsif forloop.first == true and product.selected_variant == blank and first_available_variant == false %}{%- assign is_selected = value | capitalize %} {{cl_selected}}{%- elsif option.selected_value == value and product.selected_variant != blank and first_available_variant == false %}{%- assign is_selected = value %} {{cl_selected}}{%- endif %}" data-value='{{ value | handleize }}' data-bcvalue='bc_{{ value | handleize }}'>
			   		   	<span class="swatch__value bg_color_{{ value | handleize }}">a</span>
			   		   </li>
			   	   {%- endfor -%}
			   	{%- endcapture -%}
			   	<h4 class="swatch__title">{{option.name}}:</h4>
			   	<div class="input-dropdown-inner db input-dropdown-inner_{{class_input}}" data-id="{{ option_index }}">
				   	{%- for value in option.values -%}
	                  {%- if first_available_variant and option.selected_value == value -%}
				   	    <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
	                    {%- break -%}
	                  {%- elsif forloop.first == true and product.selected_variant == blank and first_available_variant == false %}
                        <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
                        {%- break -%}
	                  {%- elsif option.selected_value == value and product.selected_variant != blank and first_available_variant == false %}
                        <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
                        {%- break -%}
	                  {%- endif %}
	               {%- endfor -%}
					<ul class="swatches-select dropdown-list" data-attribute="pa_{{option.name | handleize}}" data-id="{{ option_index }}" data-size="{{product.options_with_values.color_name_check}}">
				   		{%- for value in option.values -%}
				   		   <li data-index="{{ forloop.index0 }}" aria-label='{{ value }}' class="nt-swatch bg_css_{{ value | handleize }}{%- if first_available_variant and option.selected_value == value %} {{cl_selected}}{%- elsif forloop.first == true and product.selected_variant == blank and first_available_variant == false %} {{cl_selected}}{%- elsif option.selected_value == value and product.selected_variant != blank and first_available_variant == false %} {{cl_selected}}{%- endif -%}" data-value='{{ value | handleize }}' data-bcvalue='bc_{{ value | handleize }}'>
				   		   	<a href="javascript&colon;void(0);" data-val='{{ value | handleize  }}'>{{ value }}</a>
				   		   </li>
				   	   {%- endfor -%}
				   	</ul>
				   </div>
			   </div>
			{%- else -%} 
			   <div class="{{select_class}}{{ option_index }} swatch is-label{%- if forloop.last == true %} mb__25{%- else %} mb__15{%- endif -%}" data-option-index="{{ option_index }}" id="{{select_id}}_{{ option_index }}">
			   	{%- if downcased_option == 'size' or downcased_option == 'sizes' or downcased_option == 'taille' or downcased_option == lang_option or gl_size_name contains downcased_option_check -%}
			   	   {%- assign has_size_guide = true -%}
			   	{%- endif -%}
			   	<h4 class="swatch__title">{{option.name}}:</h4>
			   	<div class="input-dropdown-inner db input-dropdown-inner_{{class_input}}" data-id="{{ option_index }}">
				   	{%- for value in option.values -%}
	                  {%- if first_available_variant and option.selected_value == value -%}
				   	    <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
	                    {%- break -%}
	                  {%- elsif forloop.first == true and product.selected_variant == blank and first_available_variant == false %}
                        <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
                        {%- break -%}
	                  {%- elsif option.selected_value == value and product.selected_variant != blank and first_available_variant == false %}
                        <a href="#" data-val="{{ value | handleize }}">{{ value }}</a>
                        {%- break -%}
	                  {%- endif %}
	               {%- endfor -%}
				   	<ul class="swatches-select dropdown-list" data-attribute="pa_{{option.name | handleize}}" data-id="{{ option_index }}" data-size="{{product.options_with_values.size_name_check}}">
				   		{%- for value in option.values -%}
				   		   <li data-index="{{ forloop.index0 }}" aria-label='{{ value }}' class="nt-swatch bg_css_{{ value | handleize }}{%- if first_available_variant and option.selected_value == value %} {{cl_selected}}{%- elsif forloop.first == true and product.selected_variant == blank and first_available_variant == false %} {{cl_selected}}{%- elsif option.selected_value == value and product.selected_variant != blank and first_available_variant == false %} {{cl_selected}}{%- endif -%}" data-value='{{ value | handleize }}' data-bcvalue='bc_{{ value | handleize }}'>
				   		   	<a href="javascript&colon;void(0);" data-val='{{ value | handleize  }}'>{{ value }}</a>
				   		   </li>
				   	   {%- endfor -%}
				   	</ul>
				</div>
			   </div>
			{%- endif %}
   {%- endfor -%}
</div>
0 Likes