[Skip to main content](#vessel-content)

#   rating disable

##

- **[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")**
- [![nabukadnezar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile") Topic Author
- [ Offline](/forum/user/36575-nabukadnezar)

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 4 months ago [\#208364](#208364) by [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")  *[rating disable](/forum/4-how-to/878155-rating-disable#208364 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi, I override my orders page (order&#95;listing.php) and search results (default&#95;results.php) page and now I am able to show images and vote datas of the products and orders. How can I disable rating in these pages and how can I get the custom fields data of a product.  Thank you.")* was created by *[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37

Hi,
I override my orders page (order_listing.php) and search results (default_results.php) page and now I am able to show images and vote datas of the products and orders.
How can I disable rating in these pages and how can I get the custom fields data of a product.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODE1NS1yYXRpbmctZGlzYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

11 years 4 months ago [\#208371](#208371) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[rating disable](/forum/4-how-to/878155-rating-disable#208371 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi, I override my orders page (order&#95;listing.php) and search results (default&#95;results.php) page and now I am able to show images and vote datas of the products and orders. How can I disable rating in these pages and how can I get the custom fields data of a product.  Thank you.")*

Hi,

Your message is not clear so it's going to be hard to answer you directly.

You said that you customized these files to display the votes and you're asking how to disable the votes on these pages.
So I suppose that you don't want to just remove the votes that you added with custom code, but modify the way it looks so that you can still see the vote results, but not be able to vote on these pages.
As these are not standard things of HikaShop (the default_results.php file is not even an HikaShop view), we don't know the code that you're using to display the votes and thus cannot say how to do that or even if what we deduced from your message is correct.

So before moving forward and answering you, we first need to understand the situation and what you want to do where.
Could you provide some screenshots of the pages you're talking about and tell us what code you changed where exactly so that we can understand where you're coming from ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODE1NS1yYXRpbmctZGlzYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")**
- [![nabukadnezar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile") Topic Author
- [ Offline](/forum/user/36575-nabukadnezar)

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 3 months ago [\#208948](#208948) by [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")  Replied by *[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")* on topic *[rating disable](/forum/4-how-to/878155-rating-disable#208948 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi, I override my orders page (order&#95;listing.php) and search results (default&#95;results.php) page and now I am able to show images and vote datas of the products and orders. How can I disable rating in these pages and how can I get the custom fields data of a product.  Thank you.")*

Yes, what you understand about rating display is correct, sorry if my question was unclear. I want just to show the rating value but I don't want user to be able to vote in these pages ( "search result" and "my orders" pages). To show rating stars, I used the way of product page (show_tabular.php). You can find the screenshot of search results page is attached.

The second thing I want to learn is how to get data of custum fields of products in order_listing.php. For example, for each product there is a custom field for the autor of the course. I want to get this data in order_listing.php.

I hope my question is clear now ![:)](/media/kunena/emoticons/3.png ":)")

- [ ![search&#95;results.png](/forum/attachment/25590) ](/forum/attachment/25590 "...ch&#95;results.png") [ ](/forum/attachment/25590?download=1 "...ch&#95;results.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODE1NS1yYXRpbmctZGlzYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 3 months ago [\#209021](#209021) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[rating disable](/forum/4-how-to/878155-rating-disable#209021 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi, I override my orders page (order&#95;listing.php) and search results (default&#95;results.php) page and now I am able to show images and vote datas of the products and orders. How can I disable rating in these pages and how can I get the custom fields data of a product.  Thank you.")*

Hi,

So I guess that you are calling the view "mini" of the "vote" layout.
What could be done is just use that kind of code instead: Code:

for($i = 1; $i &lt;= $row-&gt;hikashop_vote_average_score_rounded; $i++) { echo '&lt;span class="ui-rating-star ui-rating-full"&gt;&lt;/span&gt;'; } for($i = $row-&gt;hikashop_vote_average_score_rounded; $i &lt; $row-&gt;hikashop_vote_nb_star; $i++) { echo '&lt;span class="ui-rating-star ui-rating-empty"&gt;&lt;/span&gt;'; }

To get the "author" value you should just have to use the following code: Code:

echo $row-&gt;CUSTOMFIELD_NAME; // so in your case potentially: echo $row-&gt;author;

The following user(s) said Thank You: [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODE1NS1yYXRpbmctZGlzYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
