Forums / Templates, Stylesheets, Page Layout / remove "review product" and "tell a freind" buttons

remove "review product" and "tell a freind" buttons

Locked

Started by beppo5 on 2 Dec 2006, 11:22 PM · Views: 15,126

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
2 Dec 2006, 11:22 PM
#1
beppo5 avatar

beppo5

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

remove "review product" and "tell a freind" buttons

How can I most efficiently and properly remove the "write a review" and "tell a friend" buttons at the bottom of each page it shows up on?

2 Dec 2006, 11:24 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: remove "review product" and "tell a freind" buttons

To remove the Tell a Friend and Review button ...

Catalog ...

Product Type ...

Pick a Product type ... Click the EDIT LAYOUT button ...

Turn them off ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Dec 2006, 2:07 PM
#3
beppo5 avatar

beppo5

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

Re: remove "review product" and "tell a freind" buttons

no kidding,
that was easy,
I am new to this and there is so much going on in the admin section. My impulse is to go to the code, but everytime I do a little research I find a lot of stuff can be controlled in the admin.
Thanks

3 Dec 2006, 2:15 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: remove "review product" and "tell a freind" buttons

We hates when you touches da code ... :eek:

Always look for a switch or some built in logic that is controlled by a condition or a switch surrounding something you want changed ...

If you do dig into the code, be aware, that IF or CASE statement has some purpose and something controlling it ...

Often times this will lead you to the configuration_key ...

The Tools ... Developer's Tool Kit ... can help locate where code, defines, configuration_key etc. are defined, set, used, etc.

If it is in caps, that is either something in a define or something in the configuration_key ...

Try the top input box with none selected and click search to search the database ...

Try the bottom input box with Catalog/Admin selected and click search to search the php files ...

Just don't be too quick to touch the code ... when pressing a simple key is so much safer ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Dec 2006, 7:20 PM
#5
beppo5 avatar

beppo5

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

Re: remove "review product" and "tell a freind" buttons

Just don't be too quick to touch the code ... when pressing a simple key is so much safer ...
yes, agreed thanks for the advice
Best

5 Dec 2006, 2:38 AM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: remove "review product" and "tell a freind" buttons

Turn them off in:

admin -> catalog -> product types -> product general (click the edit layout button and turn them off set to 0)

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

14 Dec 2006, 4:31 PM
#7
dnuttall avatar

dnuttall

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

Re: remove "review product" and "tell a freind" buttons

Ajeh:

We hates when you touches da code ... :eek:

I can live with that mindset for a long time!

But instead of a "Call for Pricing" button, is there an easy way to attach a "Request Quote by eMail" option?

One use for such an option would be when the cart's item is professional services and it's inappropriate or not advantageous to publish prices for a number of reasons.

My instinct is to look for ways to reuse the "Contact Us" scripts, but ideally it would be an option that gets toggled at the time the product is created/updated.

Sorry if this hijacks the thread, 'cuz I'm sure you probably hate hijacked threads almost as much as despoiling da code!

TIA.
Dave Nuttall
San Antonio, Texas

29 Nov 2010, 12:43 AM
#8
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: remove "review product" and "tell a freind" buttons

For few users it will be

Catalogue >> item types >> product general >> edit layout

Believe it or not But My existence is illusional

29 Nov 2010, 3:12 AM
#9
roymain avatar

roymain

New Zenner

Join Date:
Nov 2010
Posts:
9
Plugin Contributions:
0

Re: remove "review product" and "tell a freind" buttons

instead of removing them, i just want to change their position..

here is a snippet from the tpl_product_info_display.php

how to FLOAT = left or right ? :wacko:
how to set WIDTH = ? :no:

<!--bof Tell a Friend button -->
<?php
  if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
  }
?>
<!--eof Tell a Friend button -->
2 Dec 2010, 5:54 AM
#10
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: remove "review product" and "tell a freind" buttons

You can change class either "buttonRow back" or "buttonRow forward" This will move it left and right.

Believe it or not But My existence is illusional