Post by chad » Sat Jan 23, 2010 9:19 pm

Hi

Does anyone know how to stop the home page showing latest products. I would rather show half a dozen images within the welcome page and have my viewer click on one of these to go to a specific category.

Also the shop I am setting up sells second hand guitars so I do not require the rating on these items - however guitar strings, tuners and plectrums need to have the rating. Can this be done.

Once again thanks in advance
Richard

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by bebaspromo » Sat Jan 23, 2010 10:20 pm

chad wrote:Does anyone know how to stop the home page showing latest products.
open your home.tpl, delete following codes :

Code: Select all

    <div class="heading"><?php echo $text_latest; ?></div>
    <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
        <td style="width: 25%;"><?php if (isset($products[$j])) { ?>
          <a href="<?php echo $products[$j]['href']; ?>"><img src="<?php echo $products[$j]['thumb']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><br />
          <a href="<?php echo $products[$j]['href']; ?>"><?php echo $products[$j]['name']; ?></a><br />
          <span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
          <?php if ($display_price) { ?>
          <?php if (!$products[$j]['special']) { ?>
          <span style="color: #900; font-weight: bold;"><?php echo $products[$j]['price']; ?></span><br />
          <?php } else { ?>
          <span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
          <?php } ?>
          <?php } ?>
          <?php if ($products[$j]['rating']) { ?>
          <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
          <?php } ?>
          <?php } ?></td>
        <?php } ?>
      </tr>
      <?php } ?>
    </table>
Deleting product rating?
... delete :

Code: Select all

          <?php if ($products[$j]['rating']) { ?>
          <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
          <?php } ?>
in :
- common/home.tpl (already deleted above?)
- product/category.tpl
- product/manufacturer.tpl
- product/product.tpl
- product/search.tpl
- product/special.tpl

User avatar
Active Member

Posts

Joined
Tue Dec 22, 2009 9:14 pm

Post by chad » Tue Jan 26, 2010 4:21 pm

Bebaspromo
I have now disabled latest products, thank you for that. For the ratings issue will your instructions remove the ability to rate all products? As a few products will still need this. I will disable for all products if this is not easily possible with my limited skills!!

You can see the site at www.mainlineguitars.co.uk

Thanks for your help
Richard

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by bebaspromo » Tue Jan 26, 2010 6:31 pm

chad wrote:For the ratings issue will your instructions remove the ability to rate all products?
Yup!
chad wrote: As a few products will still need this.
somebody ..... help us! ;D

User avatar
Active Member

Posts

Joined
Tue Dec 22, 2009 9:14 pm

Post by chad » Fri Feb 12, 2010 10:37 pm

Thanks Bebaspromo

I am struggling a bit removing the product rating. I have decided it will be best for me to disable this alltogether from the site. Your files you say need stuff deleting from do not contain the text that you say I should delete _!!!

If I am making any sense.

Can you OR INDEED ANYONE HELP me out with this one.

Thanks in advance
Richard

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by chad » Sat Feb 13, 2010 5:08 pm

No takers with this one - pretty desperate to remove all product rating feature, site is almost ready for live!

Any help appreciated.

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by burrito » Sat Feb 13, 2010 6:29 pm

chad wrote:No takers with this one - pretty desperate to remove all product rating feature, site is almost ready for live!

Any help appreciated.
why don't you just remove it from the templates, leave the backend stuff in place, easier to re-activate it in the future, if you'd want it back

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by chad » Sat Feb 13, 2010 9:25 pm

Thanks burrito

You say templates - where exactly are these, and I will do it your way.

Thanks

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by Qphoria » Sat Feb 13, 2010 9:32 pm

and its been answered a few times before.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by chad » Sat Feb 13, 2010 11:23 pm

Guys I am pretty new to all of this - and really just cannot see where to delete the ratings feature. I cannot find the indicated text in the template files. Unless I am looking at the wrong template files.

The answer may have been posted before but I cannot find it within the forums.

Any help is appreciated. I wish there was a diagram of the default installation - with arrows to all the parts on the page and the corresponding files that will alter them. I am learning bit by bit but sometimes simple things just floor me!

Regards
Richard

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by chad » Sun Feb 14, 2010 12:11 am

I found this
http://forum.opencart.com/viewtopic.php ... ab&start=0

but again the text it says delete - I cannot find!!

I am using 1.4 is this the problem?

New member

Posts

Joined
Mon Nov 02, 2009 11:48 pm
Location - Geordieland

Post by maxisgsm » Wed Oct 13, 2010 5:21 pm

in latest version, just disable on backoffice ..... that fantastic ...

New member

Posts

Joined
Tue May 11, 2010 8:44 am
Who is online

Users browsing this forum: No registered users and 7 guests