Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1261128

    warhost
    Participant

    Hey,

    I am using YITH Advanced Reviews on my Woocommerce products.
    Now I want to display the combined star rating not only in the Ratings Tab, but also at the top right below the Title of the product.
    How can I achieve this?
    I know I have to edit the php file, but the question is which one? And what do I have to put in?

    Regards

    #1261298

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Before proceeding with core customization we recommend you to setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Copy this file title.php from /wp-content/plugins/woocommerce/templates/single-product/ to your child theme’s WooCommerce template (eg. /wp-content/themes/x-child/woocommerce/single-product/ ).

    Please note that the customization you are looking for isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

    #1262701

    warhost
    Participant

    Hey,

    I just need to know which php file is used for displaying the product on the product page. I have the code for showing the star rating, so I just need to paste it below the title’s code.

    Are you suggesting I should put it in title.php?
    I am aware that its outside of your scope, but I just need the information which php file is responsible for displaying the product page (so that I can work on it). That should be within the support scope.
    Thanks!

    #1262972

    Friech
    Moderator

    Hi There,

    Yes, its the title.php, paste your code just below the line:

    the_title( '<h1 itemprop="name" class="product_title entry-title">', '</h1>' );

    That file has no closing php tag ?> so add it if your star code is not an php.

    Thanks.

    #1265828

    warhost
    Participant

    I am sorry but this does not work. It just simply doesn’t change anything.

    I went a step further and made changes in the title.php inside the woocommerce plugin folder. Even that did not change anything. I am clearly missing something here.

    #1265958

    Nabeel A
    Moderator

    Hi again,

    Can you please provide the URL so we can take a look?

    Thanks!

    #1266577

    warhost
    Participant
    This reply has been marked as private.
    #1266601

    Christopher
    Moderator

    Hi there,

    There are multiple files that, each one displays one part of product page.
    If you want to display rating under product title, you should edit title.php file.

    Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    #1271389

    warhost
    Participant

    Hey,

    as said before, making any changes to the files in x/woocommerce has no effect! I even deleted the cart.php, and the cart still shows on my cookie-cleaned browser. What is this? I don’t understand how changes there can have no effect.

    #1271599

    Rad
    Moderator

    Hi there,

    If editing the plugin (main templates) isn’t taking effect either then it might be related to cache. As by checking your site, it has active W3 Total Cache, but I’m not sure if your hosting has built-in cache feature.

    Please disable all caching features while you’re developing your site. The purpose of caching is to serve same content over and over for faster performance. It should be utilize only when your site is on production, and not on development.

    Thanks!

    #1272013

    warhost
    Participant

    Ok, so I figured out a easy way to solve this: Better WooCommerce Stars Shortcode Plugin

    Cheers

    #1272019

    Christian
    Moderator

    Glad you’ve sorted it out.