Syntax error on php code -
please me code
<?php if (!empty($this->product->customfieldssorted['youtube'])) { $this->position = 'youtube'; echo '<button class="shop_tablinks tab2" onclick='"openspecs(event, 'specs3')"' >'; echo jtext::_('video'); echo '</button>'; } // product custom ontop end ?>
it seems don't wrote ok
onclick='"openspecs(event, 'specs3')"' >'
replace code below:
<?php if (!empty($this->product->customfieldssorted['youtube'])) { $this->position = 'youtube'; echo '<button class="shop_tablinks tab2" onclick="openspecs(event, \'specs3\')">'; echo jtext::_('video'); echo '</button>'; } // product custom ontop end ?>
need use escape operator ''
if want use in html code while echoing echoing ''
. in html code taking concat operator.
Comments
Post a Comment