News:

AbanteCart v1.4.2 is released.

Main Menu

Hide the model details from product page

Started by mike3314, September 27, 2017, 10:04:08 AM

Previous topic - Next topic

mike3314

Hi,
I would like to hide the model number from the customer on the product page as I will be using this just for my own reference.
Any help would be much appreciated.

Sam_78

Go to line public_html/storefront/view/default/template/pages/product/product.tpl  line #L301
remove this code:
<?php if ($model){ ?>
                     <li><span class="productinfoleft"><?php echo $text_model; ?></span> <?php echo $model; ?>
                     </li>
                  <?php } ?>

mike3314

Thats worked great...Thanks!
I'm now trying to remove the model from the cart page as well, I've managed to find where the code is in the /public_html/storefront/view/default/template/pages/checkout/cart.tpl but if I remove the lines which I've found which contain the word 'model'
Line 32  <th class="align_left"><?php echo $column_model; ?></th>
and
Line 54 <td class="align_left"><?php echo $product['model']; ?></td>
it does actually remove the model number but still leaved the heading 'title' and the price is now listed under the model  :-\
Any ideas again much appreciated.

mike3314

Just gone through the above procedure again to remove model from the 'cart' and this time it seems to have worked so don't know what I'd done wrong the first time  - thanks again for your help

Forum Rules Code of conduct
AbanteCart.com 2010 -