• Resolved harute125

    (@harute125)


    we are using astra and elementor and we may also have this similar issue but with this shortcode [cusrev_reviews comment_file=”/product-reviews.php”]

    on elementor it shows the custom template content correctly https://prnt.sc/10s80os

    but on the page it shows the review default template https://prnt.sc/10s81sh

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support cusrev

    (@cusrev)

    Thanks for trying our plugin!

    Your second screenshot does not show what shortcode is used there. Can you please provide a better screenshot?

    Thread Starter harute125

    (@harute125)

    Hi,

    The first screenshot is from elementor editor and the 2nd screenshot is the preview, so both are on the same product page/template.

    As for testing the content of product-reviews.php is plain text “12345” as seen on screenshot 1(on elementor editor) https://prnt.sc/10s80os, the preview(product page) shows that its the default custrev review template.

    Update:
    Using the same shortcode [cusrev_reviews comment_file=”/product-reviews.php”] we tested both using elementor on a product template and a page:
    1. on a product page/single product elementor the preview shows cust rev default review https://prnt.sc/10s81sh http://wako.webmedic-demo.com/product/the-ordinary-copy-4/
    2. on a page/page elementor its showing our custom template https://prnt.sc/10t1kti http://wako.webmedic-demo.com/test/

    Thread Starter harute125

    (@harute125)

    Hi,

    Is there a fix or update on this?

    Thank you

    Thread Starter harute125

    (@harute125)

    Hi,

    Just following up..

    Thanks

    Plugin Support cusrev

    (@cusrev)

    Sorry, I’m still not sure what fix is expected here. [cusrev_reviews] shortcode works only on WooCommerce single product pages. If you put it on a generic non-WooCommerce page, it will not work.

    Can you please clarify what exactly is the issue now? Does it happen only when you use the bespoke template or with the standard template as well?

    Thread Starter harute125

    (@harute125)

    Hi,

    We are using this shortcode [cusrev_reviews comment_file=”/product-reviews.php”] and the content of the file is simply “12345”. The custom page is located at child-theme folder. This is on Astra theme using Elementor.

    Using the shortcode on elementor single product template http://wako.webmedic-demo.com/product/the-ordinary-copy-4/ its showing the default review template shown here https://prnt.sc/10s81sh

    Using the same shortcde on an ordinary wp page http://wako.webmedic-demo.com/test/ the “12345” content is showing https://prnt.sc/10t1kti

    Thank you

    Plugin Support cusrev

    (@cusrev)

    Thanks for providing additional information!

    As I mentioned above, [cusrev_reviews] shortcode works only on WooCommerce single product pages. If you put it on a generic non-WooCommerce page, it will not work. So, I am not sure what you are trying to achieve by putting it on http://wako.webmedic-demo.com/test/.

    If you get the default reviews template on this page: http://wako.webmedic-demo.com/product/the-ordinary-copy-4/, it could be for various reasons. For example, you didn’t create the custom template with the correct name or in the correct folder. Elementor might also change the default path where WordPress looks for templates.

    [cusrev_reviews] shortcode is very simple. It just calls the standard WordPress function: https://developer.wordpress.org/reference/functions/comments_template/. Please refer to the documentation of this function to understand where $file should be located and which hooks might potentially change this location.

    Thread Starter harute125

    (@harute125)

    Hi,

    Thanks for the info. We are changing the design and will use cusrev template but with some updates. https://prnt.sc/1118qnc

    Is it possible if we can add custom like review Title and a dropdown?

    Thanks

    Plugin Support cusrev

    (@cusrev)

    Please refer to this solution from our support portal: How to Override Default Templates.

    Thread Starter harute125

    (@harute125)

    Hi,

    We tried https://help.cusrev.com/support/solutions/articles/43000608018-how-to-override-default-templates but cant overide this shortcode [cusrev_reviews]. We also tried editing directly on main plugin templates folder with ivole-single-product-reviews.php but its not reflecting any changes.

    Though we can overide [cusrev_reviews_grid] using reviews-grid.php and [cusrev_reviews_slider] using reviews-slider.php.

    Thread Starter harute125

    (@harute125)

    Hi,

    Any update for this?

    Thanks

    Plugin Support cusrev

    (@cusrev)

    Thanks for providing additional information.

    The customization you are trying to implement requires development skills. Please ask a developer with PHP and WordPress experience to help you with it. It is really difficult to troubleshoot this kind of problems on a forum because there are so many different things that you can do wrong when it comes to editing PHP code.

    For example, you mentioned that you cannot achieve the desired results even by making the changes directly in our plugin’s files. The problem could be as simple as that you just didn’t upload the updated files to your FTP server or as complex as that there is something in the PHP code that prevents it from execution.

    As a next step, can you please get a developer to implement this enhancement? If they find any bug in the plugin, please let me know and we will be happy to fix it.

    Thread Starter harute125

    (@harute125)

    Hi,

    FYI, i am a PHP/Wordpress developer and my expertise is coding and troubleshooting.

    I copied the entire template file on the child theme already and modified and tested them, though as ive said on my last comment, only [cusrev_reviews_grid] using reviews-grid.php and [cusrev_reviews_slider] using reviews-slider.php are working and they are reflecting the changes,but with [cusrev_reviews], not sure if this is the correct file product-reviews.php which is also copied and modified but doesnt work or not reflecting the changes.

    Modifying the file plugins is just for testing purposes only, to test if same changes made to the templates on the child theme files will reflect.

    Plugin Support cusrev

    (@cusrev)

    Thanks for providing additional information.

    If you a developer, can you please enable debugging (see https://wordpress.org/support/article/debugging-in-wordpress/) and check what happens with the [cusrev_reviews] shortcode on your site? You should be able to see what template file is passed to the https://developer.wordpress.org/reference/functions/comments_template/ function (see my explanation about it in one of the replies above).

    Plugin Support cusrev

    (@cusrev)

    We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If this is not the case, please let us know and we’ll be happy to help.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Issues with elementor’ is closed to new replies.