Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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. #3
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    We hates when you touches da code ...

    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 ...
    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!

  5. #5
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default 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)

  7. #7
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    We hates when you touches da code ...
    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

  8. #8
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

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

    For few users it will be

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

  9. #9
    Join Date
    Nov 2010
    Posts
    9
    Plugin Contributions
    0

    Default 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 ?
    how to set WIDTH = ?

    Code:
    <!--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 -->

  10. #10
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default 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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  2. Replies: 0
    Last Post: 15 May 2008, 01:51 PM
  3. Modify "add to cart" "write a review" "tell a friend"
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 10 May 2008, 12:05 PM
  4. Remove "Write a Review" and "Tell a Friend" buttons
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Apr 2007, 02:33 AM
  5. "write a review" and "tell a friend" on the same side
    By aagraphics in forum General Questions
    Replies: 4
    Last Post: 3 Feb 2007, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg