Remove Rate Review

More
10 years 9 months ago #18577 by grant
Remove Rate Review was created by grant
Hi I would like to remove the Rate/Review and Order Number links that are displayed in the VM My Products tab. Im not to familair with PHP but I can look for lines of code in the cbvmorders.php file if the changes need to be made there.

Many thanks

J 2.5
VM2
CB1.9

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #18579 by nordmograph
Replied by nordmograph on topic Remove Rate Review
Hello

Yes , you simply need to remove the column in the table:
remove the td or th in the table header
and the td in the content line.

You could also lighten the mysql query

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #18582 by grant
Replied by grant on topic Remove Rate Review
Hi, thanks for your reply.

Im not sure exactly what to remove? Do I remove the whole line as below where ever it occurs?

$return .= '<td><a href="'.$order_url.'"><img src="'.$livesite.'components/com_comprofiler/plugin/user/plug_cbvmorders/img/tar.png" alt="'._VMORDERS_RATEREVIEW.'" width="16" height="16"/> '.$order->order_number.'</a></td>';

many thanks

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #18583 by nordmograph
Replied by nordmograph on topic Remove Rate Review
Well

Follow this:
open cbvmorders.php
find this:
Code:
if($my_id == $user->id OR in_array($my_id, $administrators) ){ $return .='<div><a href="'.$item_url.'"><img src="'.$livesite.'components/com_comprofiler/plugin/user/plug_cbvmorders/img/special.png" alt="'._VMORDERS_RATEREVIEW.'" width="16" height="16"/> '._VMORDERS_RATEREVIEW.'</a></div>'; $return .='<div><img src="'.$livesite.'components/com_comprofiler/plugin/user/plug_cbvmorders/img/tar.png" alt="'._VMORDERS_RATEREVIEW.'" width="16" height="16"/> <a href="'.$order_url.'">'._VMORDERS_ORDER.' '.$order->order_number.'</a></div>'; }

Remove it or comment it out.

Hope it helps

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
The following user(s) said Thank You: grant

Please Log in or Create an account to join the conversation.

Time to create page: 0.316 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.