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?
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?
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!
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
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!
yes, agreed thanks for the adviceJust don't be too quick to touch the code ... when pressing a simple key is so much safer ...
Best
Turn them off in:
admin -> catalog -> product types -> product general (click the edit layout button and turn them off set to 0)
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
For few users it will be
Catalogue >> item types >> product general >> edit layout
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 -->
You can change class either "buttonRow back" or "buttonRow forward" This will move it left and right.