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/[login to view URL] Stack trace: #0
$10-30 USD
Paid on delivery
you can see the error here: [login to view URL]
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":"[login to view URL]","Device interface":"[login to view URL]","Product colour":"[login to view URL]","Device type":"[login to view URL]","LED indicators":"[login to view URL]","Battery type":"[login to view URL]","USB connector type":"[login to view URL]","Display":"[login to view URL]","Touch technology":"[login to view URL]","Compatibility":"[login to view URL]","Game edition":"[login to view URL]","Game genre":"[login to view URL]","ESRB rating":"[login to view URL]","Multiplayer mode":"[login to view URL]","Product type":"[login to view URL]","Gaming platforms supported":"[login to view URL]","Platform":"[login to view URL]","Cables included":"[login to view URL]","Material":"[login to view URL]"};
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 ([login to view URL](jQuery(this).children('td:first').text(), listAttributes) != -1){
if ([login to view URL](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>';
[login to view URL](labelText);
}
}
});
jQuery('.spec-div-'+i).html('<ul class="item-bullet">'+lihtml+'</ul>');
lihtml = '';
attrArray = [];
jQuery('.spec-div-'+i).show();
}
})
})
</script>
<?php
}
?>
Project ID: #35957553
About the project
Awarded to:
Hi, I am an expert web programmer. i can fix right now this bug. Besides Core PHP / Laravel. I have experience in Javascript, HTML, Vue, and MYSQL. I can start right away. I want to discuss this project in detail. Don More
10 freelancers are bidding on average $31 for this job
Dear Sir/Madam, I have been carrying out projects with php for 25 years, Magento for 11 years (Also, Certified Adobe/Magento Commerce Developer), Shopify for 5 years, Wordpress for 12 years, Laravel for 6 years and Vu More
Hi, I am available right now to help you in fixing the error in your PHP Code. Shall we start and get this fixed? Also, could you please confirm if this code is pushed on Github or it has be fixed somewhere else? Lo More
Hey there! I saw your requirements and totally understood what you want in your project. Lets get in message and discuss further about your project
Hi, We are a team of experienced PHP developers who specialize in resolving technical issues and improving the performance of PHP applications. We understand the importance of resolving errors quickly and efficiently, More
Hi, I have 17 years of experience in web development with PHP. I have lot of experience in VueJS, HTML, CSS, Jquery and Javascript. Equally, I have a very good hands-on experience with MySQL. I have worked on multiple More