Post by tickedo » Sun Apr 05, 2009 2:16 pm

Hi guys, I have to get a website up in about 2 weeks and it is very important that I know how to/change the following:

1) How to change the background color/image

2) How to update the color values (I go to update it using the administrator tools and it just doesn't update)

3) How to take off Product Reviews (I will be selling t-shirts and don't want them)

4) How to edit the tab image

Someone please respond to this A.S.A.P. or else I might not be able to get my website up:(
Last edited by i2Paq on Mon Feb 22, 2010 7:50 pm, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Sun Apr 05, 2009 2:06 pm

Post by tickedo » Sun Apr 05, 2009 2:37 pm

I also wanted to know how the whole coupon code worked? I don't see it on my page. And also is there any way I can get the calculator to compute having free shipping on orders over a certain amount of money?

Newbie

Posts

Joined
Sun Apr 05, 2009 2:06 pm

Post by tickedo » Sun Apr 05, 2009 11:25 pm

I have figured out how to change everything in my original question. This is the only thing I've been stuck on:

Taking Reviews COMPLETELY off - I took off the reviews feature, there is now no review link on the site. But when you click on a product, there is still a button that says "reviews". So open cart took off the review links on the side, but it didn't take off the review buttons on the product pages. Can someone please help me change this?

Newbie

Posts

Joined
Sun Apr 05, 2009 2:06 pm

Post by MarkF » Mon Apr 06, 2009 9:08 pm

Hi,

I have completely removed Ratings/Reviews from the system as I don't need it either (an on/off switch in Admin would be cool!)

Here are the changes I made to the Products page (v1.2.5) -

1. Top Right -

catalog/view/theme/default/template/product/product.tpl - removed at line 32

Code: Select all

<tr>
          <td><b><?php echo $text_average; ?></b></td>
          <td><?php if ($average) { ?>
            <img src="catalog/view/theme/default/image/stars_<?php echo $average . '.png'; ?>" alt="<?php echo $text_stars; ?>" style="margin-top: 2px;" />
            <?php } else { ?>
            <?php echo $text_no_rating; ?>
            <?php } ?></td>
</tr>
2. Reviews Tab remove -

upload/catalog/view/theme/default/template/product/product.tpl - removed at line 64

Code: Select all

<a tab="#tab_review"><?php echo $tab_review; ?></a>
3. Reviews Tab main content -

upload/catalog/view/theme/default/template/product/product.tpl - removed from line 66

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; margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="2" style="margin: 0; margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="3" style="margin: 0; margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="4" style="margin: 0; margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="5" style="margin: 0; margin: 0;" />
      &nbsp; <span><?php echo $entry_good; ?></span><br />
      <br />
      <b><?php echo $entry_verification; ?></b><br />
      <input type="text" name="verification" value="" />
      <br />
      <img src="index.php?route=product/product/verification" id="verification" /></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>
4. Linked Products are at bottom (if using Linked Products Contrib) -

catalog/view/theme/default/template/product/product.tpl - removed from line 106

Code: Select all

<?php if ($products[$j]['rating']) { ?>

            <img src="catalog/view/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />

            <?php } ?>
Hope that helps!

You'll also need to make changes to the Specials page, the Manufacturer page & the Category page - don't forget the 'Sort By' on those pages!

Regards
Mark :)

New member

Posts

Joined
Tue Mar 17, 2009 9:54 pm

Post by delite163 » Thu Apr 23, 2009 8:42 am

Thanks so much for the the edit job. It worked like a charm ;o)
delite163

New member

Posts

Joined
Fri Apr 03, 2009 12:40 pm

Post by ogmedina » Wed Jul 08, 2009 9:36 am

Thank you for posting the changes to products.tpl. It worked very nicely in v 1.2.9.

I'm not real familiar with PHP. Could you post the changes that need to be made to 'special', 'manufacturer', etc. Thanks.

Oscar

Newbie

Posts

Joined
Tue Jul 07, 2009 8:40 am

Post by brianteeman » Mon Jul 13, 2009 8:03 pm

Really would be great if reviews could be enabled/disabled by an option rather than hacking the core files. I hate to modify core files as I lose the modifications when I do an update to a new version.

User avatar
Newbie

Posts

Joined
Thu Mar 05, 2009 5:33 pm

Post by neildem » Fri Jul 24, 2009 11:56 pm

brianteeman wrote:Really would be great if reviews could be enabled/disabled by an option rather than hacking the core files. I hate to modify core files as I lose the modifications when I do an update to a new version.

could this not be done easily?

Newbie

Posts

Joined
Fri Jul 24, 2009 8:31 pm

Post by readyman » Sat Jul 25, 2009 4:22 am

Yeah, pretty easy...
Database changes - add new row to hold setting
Admin files - add a checkbox for enable/disable reviews (globally, but you could probably do it for each product too with a little more logic)
Product files - get setting in the controller, if enabled - show it, if not enabled - don't show it.
Done...

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by zooto68 » Sun Aug 09, 2009 6:15 am

Hopefully these will be added as a feature into the next update.

New member

Posts

Joined
Sun Aug 09, 2009 1:12 am

Post by gws » Tue Aug 25, 2009 11:26 pm

I just had to do this on the latest version 1.3.2 catalog/view/theme/default/template/product/product.tpl
I just commented out line 96 with <!--
and line 176 with --> and this has removed it all for me.

gws
Newbie

Posts

Joined
Tue Aug 25, 2009 2:23 am

Post by inmalagadesign » Tue Sep 01, 2009 5:44 am

Can anyone advise how to remove the reviews and rating for 1.3.2. i have tried the advise here but it doesn't work it affects the layout and colour of the back ground for the left and right sidebars as well.

Does anyone know the best way to do it.

Thanks tim

Active Member

Posts

Joined
Mon Jul 06, 2009 2:54 pm

Post by inmalagadesign » Tue Sep 01, 2009 11:17 pm

I have managed to get rid of the reviews and review tab but i can't get rid of the average rating text on the product page does anyone have any ideas?

I would really appreciate any help you could give

cheers

tim

Active Member

Posts

Joined
Mon Jul 06, 2009 2:54 pm

Post by vimal » Wed Sep 02, 2009 5:04 pm

1) How to change the background color/image
In the stylesheet add the following (additions in red)

body {
margin: 0px;
padding: 0px;
text-align: center;
/*background: url('../image/top_talling.gif') repeat; /* use this if you hae a graphic to load as main page background */
background: #585039; /*colour for the main page background*/


2) How to update the color values (I go to update it using the administrator tools and it just doesn't update)

All colour values should be in the stylesheet

3) How to take off Product Reviews (I will be selling t-shirts and don't want them)

Answered by many above.

4) How to edit the tab image

All the images like graphics for the webpage (not products) are saved in opencart\catalog\view\theme\default\image. Use any grahics software e.g. photoshop to edit it.

Hope it helps.
Vimal.

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Active Member

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by coolnammy1 » Wed Sep 16, 2009 6:13 pm

MarkF's steps on removing the codes can still be applied to 1.3.2. I just followed his step by step and was successful in removing the ratings tab.

New member

Posts

Joined
Wed Sep 16, 2009 9:28 am

Post by nosleephotel » Thu Sep 24, 2009 5:50 am

gws wrote:I just had to do this on the latest version 1.3.2 catalog/view/theme/default/template/product/product.tpl
I just commented out line 96 with <!--
and line 176 with --> and this has removed it all for me.
Thanks for the tip, gws. I wanted the Description, Additional Images and Related Products so this is what I commented out:

Code: Select all

<!-- Comment out Average Rating
            <tr>
              <td><b><?php echo $text_average; ?></b></td>
              <td><?php if ($average) { ?>
                <img src="catalog/view/theme/default/image/stars_<?php echo $average . '.png'; ?>" alt="<?php echo $text_stars; ?>" style="margin-top: 2px;" />
                <?php } else { ?>
                <?php echo $text_no_rating; ?>
                <?php } ?></td>
            </tr> -->
Line 35-42: This is commented out to hide the "Average Rating" above the "Add to Cart" button.

Code: Select all

<!-- Comment out Review Tab <a tab="#tab_review"><?php echo $tab_review; ?></a> -->
Line 97: Hides the "Reviews" tab.

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> -->
Line 99-133: Hides the div that displays the reviews submission form and any submitted reviews.

Hope this helps someone! :)

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA

Post by deeve » Thu Dec 31, 2009 5:39 pm

Many thanks, nosleephotel, this has helped me greatly to understand & remove the Reviews feature. My client's stock are mostly one-offs & therefore this feature was pretty redundant to his customers.

I did have one other question, which I've posted on a separate, but related thread regarding how to adjust the drop-down Select order box within Categorys:

http://forum.opencart.com/viewtopic.php ... 036#p43036

In a nutshell, have utilized the rating variable to display 'Latest Arrivals' in each category but would now care to delete the $rating_DESC option as is now redundant & wondered where this resides in the code..

Active Member

Posts

Joined
Tue Oct 20, 2009 4:31 pm

Post by nosleephotel » Sat Jan 02, 2010 4:38 am

deeve wrote:Many thanks, nosleephotel, this has helped me greatly to understand & remove the Reviews feature. My client's stock are mostly one-offs & therefore this feature was pretty redundant to his customers
Glad I could help.
deeve wrote:I did have one other question, which I've posted on a separate, but related thread regarding how to adjust the drop-down Select order box within Categorys:

http://forum.opencart.com/viewtopic.php ... 036#p43036

In a nutshell, have utilized the rating variable to display 'Latest Arrivals' in each category but would now care to delete the $rating_DESC option as is now redundant & wondered where this resides in the code..
Not sure how to do this. Hopefully someone else here can tell you. Did you search the forum to see if it had already been answered? If you get no reply from this thread or the other you posted in, I would recommend starting a new thread (others may disagree with me >:D ) with a descriptive title to try to catch the eye of someone who may know.

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA

Post by Gaxas » Fri Feb 19, 2010 2:05 am

Anyone have idea, how to remove Reviews in 1.4 version ? Thank's

Newbie

Posts

Joined
Fri Feb 19, 2010 2:01 am

Post by Kalen » Mon Feb 22, 2010 7:03 pm

Gaxas wrote:Anyone have idea, how to remove Reviews in 1.4 version ? Thank's
go to product.tpl and comment (<!--code-->) this lines

line 41 to 48

Code: Select all

<tr>
                <td><b><?php echo $text_average; ?></b></td>
                <td><?php if ($average) { ?>
                  <img src="catalog/view/theme/default/image/stars_<?php echo $average . '.png'; ?>" alt="<?php echo $text_stars; ?>" style="margin-top: 2px;" />
                  <?php } else { ?>
                  <?php echo $text_no_rating; ?>
                  <?php } ?></td>
              </tr>
line 103

Code: Select all

<a tab="#tab_review"><?php echo $tab_review; ?>
line 105 to 139

Code: Select all

<div id="tab_review" class="tab_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>
I hope this was usefull

cheers ;)

Newbie

Posts

Joined
Mon Feb 22, 2010 6:53 pm
Who is online

Users browsing this forum: No registered users and 33 guests