Opencart display Model Code in Search Page
问题 can anyone help?/Advise? I need to display [echo] the model, product code in the search.tpl page in Opencart, can anybody help? Has any one done this before? Thanks, 回答1: Follow below 4 steps. Step 1 /catalog/controller/product/search.php Find: 'name' => $result['name'], Add After: 'model' => $result['model'], Step 2 /catalog/view/theme/default/template/product/search.tpl Find: <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div> Add After: <b>