Tagged: x
-
AuthorPosts
-
November 17, 2016 at 9:25 am #1261128
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
November 17, 2016 at 11:43 am #1261298Hello 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!
November 18, 2016 at 10:59 am #1262701Hey,
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!November 18, 2016 at 3:42 pm #1262972Hi 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.
November 21, 2016 at 12:58 pm #1265828I 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.
November 21, 2016 at 3:17 pm #1265958Hi again,
Can you please provide the URL so we can take a look?
Thanks!
November 22, 2016 at 3:02 am #1266577This reply has been marked as private.November 22, 2016 at 3:35 am #1266601Hi 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.
November 26, 2016 at 5:19 am #1271389Hey,
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.
November 26, 2016 at 1:39 pm #1271599Hi 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!
November 27, 2016 at 4:10 am #1272013Ok, so I figured out a easy way to solve this: Better WooCommerce Stars Shortcode Plugin
Cheers
November 27, 2016 at 4:19 am #1272019Glad you’ve sorted it out.
-
AuthorPosts