Post by dfinches » Thu Sep 02, 2010 5:08 am

Hi,

Just had OpenCart installed and its GREAT!!!! :D

I just want to tremove the 'Model' option from each product, I've searched the site and tried whats on here but that only returns errors.

Any help on how to remove this option will be greatlly appreciated.

Thanks in Advance

Dan

Newbie

Posts

Joined
Sat Aug 28, 2010 1:19 am

Post by SteveSherry » Thu Sep 02, 2010 6:53 am

Hi Dan,

Do you just need the model number to be removed from the product page?


Steve...

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by dfinches » Thu Sep 02, 2010 6:56 am

I mean the model bit next to the product image, so that it just reads Price, Stock and Reviews.


Dan

Newbie

Posts

Joined
Sat Aug 28, 2010 1:19 am

Post by cmebd » Thu Sep 02, 2010 7:47 am

The easiest way is to edit your /catalog/view/template/yrtemplate/product/product.tpl and comment out the following (as below):

Code: Select all


<!-- <tr>
                <td><b><?php echo $text_model; ?></b></td>
                <td><?php echo $model; ?></td>
              </tr>-->
this way if you ever want to revert you just remove the <!-- and -->

HTH

A stupid question is the one you -don't- ask.........(Anon)

)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia

Post by dfinches » Thu Sep 02, 2010 3:58 pm

Hi HTH,

Thanks mate, its worked!! :D How would I remove the 'Model' option form the gallery view and on the cart/invoice pages??

Dan

Newbie

Posts

Joined
Sat Aug 28, 2010 1:19 am

Post by cmebd » Thu Sep 02, 2010 6:18 pm

Haven't done that one myself yet but am assuming that you would need to go into the relevant .tpl files.

No sure what you mean by "gallery view", sorry. But anything that is visible at the front end is under /catalog/view/theme/default/template - then select the relevant directory eg for Invoice :

/catalog/view/theme/default/template/account/invoice.tpl

FIND

Code: Select all

<th align="left"><?php echo $text_model; ?></th>
and comment it out as you did before <!-- before the <th.. and --> after the /th>

If you have grepWin (a great tool for searching multiple folder/files) then you should be able to search for the string <?php echo $text_model; ?>.

I would select just the /catalog/view/theme/default/template/ to find what you want. The beauty of just commenting out is that if something goes awry you can just go back and "uncomment".

Hope this helps.

Cheers

A stupid question is the one you -don't- ask.........(Anon)

)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: Amazon [Bot], Baidu [Spider] and 14 guests