php error in file ParseError: syntax error, unexpected end of file in /home/devsteck/web/live/public_html/app/design/frontend/Smartwave/porto_child/Magento_Catalog/templates/product/list.phtml:1441 Stack trace: #0
Budget: $10 – $30 USD
you can see the error here: https://dev.smartteck.co.uk/pc-components/components/development-board-accessories.html
this php file ends
<?php
}
// For Game & Gadgets
if(in_array("Gaming & Gadgets", $parent_array) || $current_cat_name == "Gaming & Gadgets") { ?>
<script>
require(['jquery', 'jquery/ui'], function($){
jQuery(document).ready(function(){
var lihtml = '';
var listAttributes = ["Connectivity technology","Device interface","Product colour","Device type","LED indicators","Battery type","USB connector type","Display","Touch technology","Compatibility","Game edition","Game genre","ESRB rating","Multiplayer mode","Product type","Gaming platforms supported","Platform","Cables included","Material"];
var attributesLabelReplace = {"Connectivity technology":"Connectivity","Device interface":"interface","Product colour":"Colour","Device type":"Device","LED indicators":"LED indicators","Battery type":"Battery","USB connector type":"USB connector","Display":"Display","Touch technology":"Touch technology","Compatibility":"Compatibility","Game edition":"Game edition","Game genre":"Game genre","ESRB rating":"ESRB rating","Multiplayer mode":"Multiplayer mode","Product type":"Product","Gaming platforms supported":"platforms supported","Platform":"Platform","Cables included":"Cables","Material":"Material"};
var attributesIcon = {"Connectivity technology":"bullet_blue.png","Device interface":"bullet_blue.png","Product colour":"bullet_blue.png","Device type":"bullet_blue.png","LED indicators":"bullet_blue.png","Battery type":"bullet_blue.png","USB connector type":"bullet_blue.png","Display":"bullet_blue.png","Touch technology":"bullet_blue.png","Compatibility":"bullet_blue.png","Game edition":"bullet_blue.png","Game genre":"bullet_blue.png","ESRB rating":"bullet_blue.png","Multiplayer mode":"bullet_blue.png","Product type":"bullet_blue.png","Gaming platforms supported":"bullet_blue.png","Platform":"bullet_blue.png","Cables included":"bullet_blue.png","Material":"bullet_blue.png"};
var countProduct = '<?php echo isset($k) ? $k : 0;?>';
var labelText = '';
var icon = '';
var attrArray = [];
for(var i=0; i<countProduct; i++){
jQuery('.spec-div-'+i).find('tr').each(function(index, tr) {
if (jQuery.inArray(jQuery(this).children('td:first').text(), listAttributes) != -1){
if (jQuery.inArray(jQuery(this).children('td:first').text(), attrArray) != -1){
}else{
labelText = jQuery(this).children('td:first').text();
icon = '/media/icons/'+attributesIcon[labelText];
lihtml += '<li style="background-image:url('+icon+');background-repeat: no-repeat;">'+jQuery(this).children('td:last').text()+'<span> '+attributesLabelReplace[labelText]+'</span></li>';
attrArray.push(labelText);
}
}
});
jQuery('.spec-div-'+i).html('<ul class="item-bullet">'+lihtml+'</ul>');
lihtml = '';
attrArray = [];
jQuery('.spec-div-'+i).show();
}
})
})
</script>
<?php
}
?>
this php file ends
<?php
}
// For Game & Gadgets
if(in_array("Gaming & Gadgets", $parent_array) || $current_cat_name == "Gaming & Gadgets") { ?>
<script>
require(['jquery', 'jquery/ui'], function($){
jQuery(document).ready(function(){
var lihtml = '';
var listAttributes = ["Connectivity technology","Device interface","Product colour","Device type","LED indicators","Battery type","USB connector type","Display","Touch technology","Compatibility","Game edition","Game genre","ESRB rating","Multiplayer mode","Product type","Gaming platforms supported","Platform","Cables included","Material"];
var attributesLabelReplace = {"Connectivity technology":"Connectivity","Device interface":"interface","Product colour":"Colour","Device type":"Device","LED indicators":"LED indicators","Battery type":"Battery","USB connector type":"USB connector","Display":"Display","Touch technology":"Touch technology","Compatibility":"Compatibility","Game edition":"Game edition","Game genre":"Game genre","ESRB rating":"ESRB rating","Multiplayer mode":"Multiplayer mode","Product type":"Product","Gaming platforms supported":"platforms supported","Platform":"Platform","Cables included":"Cables","Material":"Material"};
var attributesIcon = {"Connectivity technology":"bullet_blue.png","Device interface":"bullet_blue.png","Product colour":"bullet_blue.png","Device type":"bullet_blue.png","LED indicators":"bullet_blue.png","Battery type":"bullet_blue.png","USB connector type":"bullet_blue.png","Display":"bullet_blue.png","Touch technology":"bullet_blue.png","Compatibility":"bullet_blue.png","Game edition":"bullet_blue.png","Game genre":"bullet_blue.png","ESRB rating":"bullet_blue.png","Multiplayer mode":"bullet_blue.png","Product type":"bullet_blue.png","Gaming platforms supported":"bullet_blue.png","Platform":"bullet_blue.png","Cables included":"bullet_blue.png","Material":"bullet_blue.png"};
var countProduct = '<?php echo isset($k) ? $k : 0;?>';
var labelText = '';
var icon = '';
var attrArray = [];
for(var i=0; i<countProduct; i++){
jQuery('.spec-div-'+i).find('tr').each(function(index, tr) {
if (jQuery.inArray(jQuery(this).children('td:first').text(), listAttributes) != -1){
if (jQuery.inArray(jQuery(this).children('td:first').text(), attrArray) != -1){
}else{
labelText = jQuery(this).children('td:first').text();
icon = '/media/icons/'+attributesIcon[labelText];
lihtml += '<li style="background-image:url('+icon+');background-repeat: no-repeat;">'+jQuery(this).children('td:last').text()+'<span> '+attributesLabelReplace[labelText]+'</span></li>';
attrArray.push(labelText);
}
}
});
jQuery('.spec-div-'+i).html('<ul class="item-bullet">'+lihtml+'</ul>');
lihtml = '';
attrArray = [];
jQuery('.spec-div-'+i).show();
}
})
})
</script>
<?php
}
?>