">
'],
...params
});}
function adwordPixel(event,params){gtag('event', event, {
'send_to': [' '],
...params
});}
gtag('js', new Date());
triggerTracking()
gtag('set', {'currency': 'USD'});
gtag('require', 'ec');
triggerAdwords()
triggerConversion("page_view")
window['TOP_GLOBAL_CALLBACK_LAYER'].register({
page_view:function(){
trackingPixel('page_view_event', {
'event_category':'product_detail'
});
adwordPixel('product_detail')
},
view_content:function(product){
trackingPixel("view_item",{
'items': [{
"item_id": product.id,
"item_name": product.title,
"quantity": 1,
"price": product.variant.price
}],
"value":product.variant.price,
"currency":"USD"
})
adwordPixel('view_item',{
'ecomm_pagetype': 'product',
'ecomm_pname':product.title,
'ecomm_pcat': [product.product_type],
'ecomm_prodid': [product.spu],
'ecomm_pvalue':product.variant.price,
'ecomm_totalvalue':product.variant.price,
})
triggerConversion('view_centent')
},
search:function(value,products){
trackingPixel("search",{
'search_term': value
})
adwordPixel('search',{
'view_search_results': value,
'ecomm_pagetype': 'searchresults',
'ecomm_pcat': products.map(item=>{
return item.product_type
}),
'ecomm_prodid': products.map(item=>{
return item.spu
}),
})
triggerConversion('search')
},
view_category:function(collection){
trackingPixel("view_item_list",{
'item_list_id':collection.id,
'item_list_name':collection.title,
'items': collection.products.map((item)=>{
return {
"item_id": item.id,
"item_name":item.title,
"quantity": 1,
"price":item.variant.price
}
})
})
adwordPixel("view_item_list",{
'ecomm_pagetype': 'category',
'ecomm_pcat': collection.products.map(item=>{
return item.product_type
}),
'ecomm_prodid': collection.products.map(item=>{
return item.spu
}),
})
},
purchase: function(order,getPrice) {
},
add_to_cart:function(ecdata){
trackingPixel("add_to_cart",{
'items': [{
"id": ecdata['ec_data_spu'],
"category": ecdata['ec_data_category'],
"variant": ecdata['ec_data_sku_name'] || ecdata['ec_data_sku_code'],
"item_name": ecdata['ec_data_sku_name'] || ecdata['ec_data_sku_code'],
"list_position": 1,
"quantity": ecdata['ec_data_quantity'],
"price": formatMoney(ecdata['ec_data_price'],_GET_C_SETTING_('base_currency'),'',false),
}],
"value": formatMoney( ecdata['ec_data_price'] * ecdata['ec_data_quantity'],_GET_C_SETTING_('base_currency'),'',false),
"currency":"USD"
})
adwordPixel('add_to_cart',{
'ecomm_pagetype': 'cart',
'ecomm_pname':ecdata['ec_data_name'],
'ecomm_pcat': [ecdata['ec_data_category']],
'ecomm_prodid': [ecdata['ec_data_spu']],
'ecomm_pvalue': formatMoney(ecdata['ec_data_price'],_GET_C_SETTING_('base_currency'),'',false),
'ecomm_totalvalue': ecdata['ec_data_price'] * ecdata['ec_data_quantity']
})
triggerConversion('add_to_cart')
},
remove_from_cart:function(ec_data){
trackingPixel("remove_from_cart",{
'items': [{
"id": ec_data['ec_data_spu'],
"category": ec_data['ec_data_category'],
"variant": ec_data['ec_data_sku_name'].replace(' ',', '),
"list_position": 1,
"quantity": ec_data['ec_data_quantity'],
"price": formatMoney(ec_data['ec_data_price'],_GET_C_SETTING_('base_currency'),'',false),
}],
"value": formatMoney(ec_data['ec_data_price'] * ec_data['ec_data_quantity'],_GET_C_SETTING_('base_currency'),'',false),
"currency":"USD"
})
adwordPixel('remove_from_cart',{})
},
share_product:function(ec_data){
trackingPixel("share_product",{
'event_category':ec_data['ec_data_category'],
'event_label':ec_data['ec_data_spu'],
"value": formatMoney(ec_data['ec_data_price'],_GET_C_SETTING_('base_currency'),'',false),
"currency":"USD"
})
adwordPixel('share_product',{})
},
generate_lead:function(){
trackingPixel("generate_lead",{})
adwordPixel('generate_lead',{})
},
sign_up:function(){
trackingPixel("sign_up",{})
adwordPixel('sign_up',{})
},
login:function(){
trackingPixel("login",{})
adwordPixel('login',{})
},
begin_checkout:function(cart){
trackingPixel("begin_checkout",{
'value': cart.total_price,
'items': cart.items.map(product=>{
return {
"item_id": product.product.id,
"item_name": product.title,
"quantity": product.quantity,
"price": product.price
}
})
})
adwordPixel('begin_checkout',{})
triggerConversion('initcheckout')
},
add_address_information:function(){
trackingPixel("checkout_progress",{
'checkout_step': 1
})
trackingPixel("add_address_information",{})
adwordPixel('add_address_information',{})
},
add_shipping_information:function(cart){
trackingPixel("checkout_progress",{
'checkout_step': 2
})
trackingPixel("add_shipping_info",{'value':cart.total_price,'currency': cart.currency_code,
'items': cart.items.map(product=>{
return {
"item_id": product.product.id,
"item_name": product.title,
"quantity": product.quantity,
"price": product.price
}
})
})
adwordPixel('add_shipping_info',{})
},
add_payment_information:function(cart){
trackingPixel("checkout_progress",{
'checkout_step': 3
})
trackingPixel("add_payment_information",{'value':cart.total_price,'currency': cart.currency_code,
'items': cart.items.map(product=>{
return {
"item_id": product.product.id,
"item_name": product.title,
"quantity": product.quantity,
"price": product.price
}
})
})
adwordPixel('add_payment_information',{})
}
})
})()
{% for sku in skus %}
{% assign keyIndex = forloop.index %}
{{ sku.name }}
{%- if sku.isImg -%}
{%- if productSkuStyle == "image" or productSkuStyle == "color" -%}
:{{sku.selected_value_label}}
{%- endif -%}
{%- endif -%}
{% for val in sku.value %}
{%- capture className -%}
{% if val.available == 0 %}product-sku-values-item-disable{% endif %}
{% if sku.selected_value == val.value %}product-sku-values-item-active{% endif %}
{%- endcapture -%}
{%- capture imageClassName -%}
{%- if val.image != "" and sku.isImg -%}
product-sku-values-item-image
{%- endif -%}
{%- endcapture -%}
{%- capture imageSizeClassName -%}
{%- if val.image != "" and sku.isImg -%}
{%- if productSkuStyle == "image" or productSkuStyle == "image_text" -%}
{{productSkuSize}}
{%- endif -%}
{%- endif -%}
{%- endcapture -%}
{%- capture colorClassName -%}
{%- if productSkuStyle == "color" and sku.isImg -%}product-sku-value-color{%- endif -%}
{%- endcapture -%}
{%- if val.available == 0 -%}
{%- endif -%}
{%- if productSkuStyle == "color" and sku.isImg -%}
{%- elsif val.image != "" and sku.isImg -%}
{%- if productSkuStyle == "image_text" -%}
{{ val.name }}
{%- endif -%}
{%- else -%}
{{ val.name }}
{%- endif -%}
{% endfor %}
{% endfor %}
{% for sku in skus %}
{% assign keyIndex = forloop.index %}
{{ sku.name }}
{% if checkedFirstSku == '2' %}
{{lang.product.please_select}}
{% endif %}
{% for val in sku.value %}
{%- capture disabled -%}
{% if val.available == 0 %}disabled{% endif %}
{% if sku.selected_value == val.value %} selected{% endif %}
{%- endcapture -%}
{{ val.name }}
{% endfor %}
{% endfor %}
{% for item in variant %}
{%- if productSkuStyle == "color" and item.colorCard -%}
{%- elsif item.image and item.colorCard -%}
{% endif %}
{{item.name}}
{% comment %}
Free Shipping {% endcomment %}
{{item.price | money}}
{% if item.price < item.compare_at_price %}
{{item.compare_at_price | money}}
{% endif %}
{% if item.ext1 and item.ext1 != '' %}
{{item.ext1}}
{% endif %}
{% endfor %}
{% for sku in skus %}
{% assign keyIndex = forloop.index %}
{% assign index = forloop.index0 %}
{% if sku.type == "multiple" %}
{{sku.name}}
{{lang.account.orders_detail.price | default:"Price"}}
{% if theme_config.global.product_inventory_status and inventory_tracking != 0 %}
{{lang.general.stock | default:"Stock"}}
{% endif %}
{{lang.general.qty | default:"QTY"}}
{{lang.general.reset | default:"Reset"}}
{% for val in sku.value %}
{% assign idx = forloop.index0 %}
{% if sku.isImg %}
{% if productSkuStyle == "color" %}
{% if val.colorValue != "" %}
{% endif %}
{% else %}
{% if val.image != "" %}
{% endif %}
{% endif %}
{% endif %}
{{val.name}}
{{val.formatPrice}}{% if theme_config.global.product_inventory_status and inventory_tracking != 0 %} | {{lang.general.stock | default:"Stock"}} {{val.quantity}}{% endif %}
{{val.formatPrice}}
{% if theme_config.global.product_inventory_status and inventory_tracking != 0 %}
{{val.quantity}}
{% endif %}
{% if val.available == 0 %}
{{lang.account.wishlist.product_offline}}
{% else %}
{% endif %}
{% endfor %}
{{lang.cart.list.total | default:"Total"}} (0 {{lang.general.variations | default:"variations"}} 0 {{lang.promotions.piece | default:"items"}})
{{0|money}}
{% else %}
{{ sku.name }}
{%- if sku.isImg -%}
{%- if productSkuStyle == "image" or productSkuStyle == "color" -%}
:{{sku.selected_value_label}}
{%- endif -%}
{%- endif -%}
{% for val in sku.value %}
{%- capture className -%}
{% if val.available == 0 %}product-sku-values-item-disable{% endif %}
{% if sku.selected_value == val.value %}product-sku-values-item-active{% endif %}
{%- endcapture -%}
{%- capture imageClassName -%}
{%- if val.image != "" and sku.isImg -%}
product-sku-values-item-image
{%- endif -%}
{%- endcapture -%}
{%- capture imageSizeClassName -%}
{%- if val.image != "" and sku.isImg -%}
{%- if productSkuStyle == "image" or productSkuStyle == "image_text" -%}
{{productSkuSize}}
{%- endif -%}
{%- endif -%}
{%- endcapture -%}
{%- capture colorClassName -%}
{%- if productSkuStyle == "color" and sku.isImg -%}product-sku-value-color{%- endif -%}
{%- endcapture -%}
{%- if val.available == 0 -%}
{%- endif -%}
{%- if productSkuStyle == "color" and sku.isImg -%}
{%- elsif val.image != "" and sku.isImg -%}
{%- if productSkuStyle == "image_text" -%}
{{ val.name }}
{%- endif -%}
{%- else -%}
{{ val.name }}
{%- endif -%}
{% endfor %}
{% endif %}
{% endfor %}
{{lang.coupons.available_num | replace: '{number}',coupons.size}}
{% for coupon in coupons %}
{%- if coupon.rule.discount.type == 1 -%}
{{ coupon.rule.discount.value }}% OFF
{%- else -%}
-{{ coupon.rule.discount.value | money }}
{%- endif -%}
{% if coupon.rule.condition.type == 0 %}
, {{lang.coupons.discount_rule_extra}}
{% elsif coupon.rule.condition.type == 1 %}
{% assign coupon_value = coupon.rule.condition.value %}
, {{lang.coupons.discount_rule_count | replace: '{condition}',coupon_value }}
{% else %}
{%- capture coupon_value -%}
{%- if coupon.rule.condition.max_value and coupon.rule.condition.value != 0 -%}
{{ coupon.rule.condition.value | money }} - {{ coupon.rule.condition.max_value | money }}
{%- endif -%}
{%- if coupon.rule.condition.max_value and coupon.rule.condition.value == 0 -%}
≤ {{ coupon.rule.condition.max_value | money }}
{%- endif -%}
{%- unless coupon.rule.condition.max_value -%}
{{ coupon.rule.condition.value | money }} +
{%- endunless -%}
{%- endcapture -%}
, {{lang.coupons.discount_rule_amount | replace: '{condition}',coupon_value }}
{% endif %}
{% endfor %}
{% if coupons.size > 6 %}
{% endif %}
Home
/
2025/2026 Premier League Crystal Palace Team Away Football Jersey Player Version
2025/2026 Premier League Crystal Palace Team Away Football Jersey Player Version