Post by Fishgun » Sat Aug 15, 2009 10:28 pm

Hello All:

I've just started with OpenCart and I love it. I tried one of the other popular carts first and was I very sorry. My mood was not at all zen-like...

Using version 1.3.2

I would like to remove login from the home page. I do not want to require customers to login and I don't want them to get the idea that they need to.

I would also like to eliminate reviews. I found an entry for doing this on an older version but it looks like things have changed a lot since then.

Any help would be greatly appreciated.

David

Newbie

Posts

Joined
Sat Aug 15, 2009 10:21 pm

Post by joxxxe » Tue Aug 25, 2009 5:18 am

Hi,

for eliminate login link go to

catalog\view\theme\default\template\common

open header.tpl file and

and remove the following code:

Code: Select all

   <?php if (!$logged) { ?>
    <a href="<?php echo $login; ?>"><img src="catalog/view/theme/default/image/icon_login.png" alt="" /><?php echo $text_login; ?></a>
    <?php } else { ?>
    <a href="<?php echo $logout; ?>"><img src="catalog/view/theme/default/image/icon_logout.png" alt="" /><?php echo $text_logout; ?></a>
    <?php } ?>
for remove reviews

go to

catalog\view\theme\default\template\product

open product.tpl

and remove the following code

Code: Select all

<div id="tab_review" class="page">
    <div id="review"></div>
    <div class="heading" id="review_title"><?php echo $text_write; ?></div>
    <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><b><?php echo $entry_name; ?></b><br />
      <input type="text" name="name" value="" />
      <br />
      <br />
      <b><?php echo $entry_review; ?></b>
      <textarea name="text" style="width: 99%;" rows="8"></textarea>
      <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
      <br />
      <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span>&nbsp;
      <input type="radio" name="rating" value="1" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="2" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="3" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="4" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="5" style="margin: 0;" />
      &nbsp; <span><?php echo $entry_good; ?></span><br />
      <br />
      <b><?php echo $entry_captcha; ?></b><br />
      <input type="text" name="captcha" value="" />
      <br />
      <img src="index.php?route=product/product/captcha" id="captcha" /></div>
    <div class="buttons">
      <table>
        <tr>
          <td align="right"><a onclick="review();" class="button"><span><?php echo $button_continue; ?></span></a></td>
        </tr>
      </table>
    </div>
  </div>

and remove this too

Code: Select all

<a tab="#tab_review"><?php echo $tab_review; ?></a>



its all, hope this can help you, regards

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm

Post by Qphoria » Tue Aug 25, 2009 6:52 am

That will remove the login on the homepage, but doesn't mean that logging in is gone. For checkout without login, I have a commercial mod for that. PM for quote if interested.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 12 guests