• Resolved Dave

    (@tlwh)


    Hello,

    I’ve just discovered this plugin and it seems to have a lot of potential.

    One issue I’m having is that when I choose it to appear at the bottom of a page is skips over some content I want displayed (social buttons etc).

    Is there a way to manually insert where the ratings area can go? eg. short code etc

    https://www.ads-software.com/plugins/wp-product-review/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Codeinwp

    (@codeinwp)

    Hi,

    I have created a shortcode in the pro version, but this display just the actual rating for a product, not the box. I will do something in the future.

    Hi there,

    this would really by useful. It can also be the code to put into a theme aswell.
    I would purchase the pro version if this was possible.

    Thanks a lot and keep up the good work ;).

    Plugin Author Codeinwp

    (@codeinwp)

    Hi,

    Probably we will add this also in the next version.

    Plugin Author Codeinwp

    (@codeinwp)

    Hi,

    We have release a new version which allow you to set to output the code manually and in code use : <?php echo cwppos_show_review(‘postid’); ?> to output the review box.

    I have added this in the FREE version for the developers, however any contribution will be appreciated and will help us to further maintain the product.

    In the PRO version you will be able to easily add the box inside a post/page or even multiple boxes using a shortcode : [P_REVIEW post_id=3067 visual=’full’]

    Hi there,

    well i am trying to manually insert the review box using the free version and the code “<?php echo cwppos_show_review(‘postid’); ?>” in my theme template.

    In the admin area “general settings”-area, i′ve chosen “manually”.

    This results in the single page not displaying the review box and not displaying the post content anymore.

    I′m using a custom post type.

    Any ideas?

    Thanks

    Plugin Author Codeinwp

    (@codeinwp)

    Hello,

    Are you using the proper post id right ? Are you sure that you are not within the php code right ?

    It can be : echo cwppos_show_review(12766);

    Can you share your page.php code by email ?

    Hi there,

    thanks for your quick reply.

    Ok, i misunderstood the function of the manually insert. Now it works… the box is shown on the page….

    BUT, why is the content (post-text) area disappearing when i choose “manually”?

    Thanks

    Plugin Author Codeinwp

    (@codeinwp)

    Hi,

    Could you be more specific regarding which content ? Maybe a link ?

    Hi there,

    ok. i figured out that the latest “cwp_frontpage.php” downloaded from www.ads-software.com is only 671 kb and the previous one was 7734 kb.

    when i upload the old version, the content is shown (post basis text field), BUT with the Review Box aswell. So when i choose manually in general settings and use the old version of “cwp_frontpage.php” the post text and the manually inserted Review Box (<?php echo cwppos_show_review(’22’); ?>) is shown… BUT also, the review box as if the setting was “after content”.

    I guess the cwp_frontpage.php file is not correct at the moment on www.ads-software.com?

    Thanks

    ps. it should be bites and not kb i guess ;)….

    Hi there,

    in the “old” – but working – file, it′s probably the area:

    if(@$cwp_review_stored_meta['cwp_meta_box_check'][0]  == 'Yes' && (is_single() || is_page()) ) {
            if(cwppos("cwppos_show_reviewbox") == 'yes') return $content.$return_string;
            if(cwppos("cwppos_show_reviewbox") == 'no') return $return_string.$content;
            return $content.$return_string;
        } else return $content;
    }else
    return $content;
    }

    where it′s not working correctly with the setting “manuel”

    Wenn i – for testing – just delete the “$return_string.” it′s working correctly for manuel… so the box is not loaded anymore.. But of course for the before content and after content this is not correct.

    Thanks

    hi there…

    the post is marked resolved… but it′s not… i guess?

    Because the code of the plugin on www.ads-software.com is not correct, is it?
    So when someone is trying to use the manuel function with the originally code it′s not working….

    Thanks

    Thread Starter Dave

    (@tlwh)

    Hello,

    Yea, bit lost here too.

    codeinwp Are you saying the

    <?php echo cwppos_show_review(‘postid’); ?> gets inserted into the template?

    Will the postid automatically fill where it says “postid”

    I’m only interested in it appear on pages not posts. Do I need to change this to “pageid”

    Also could you please post a link to your pro version? Thanks

    Hello Dave,

    yes you have to change your code to

    <?php echo cwppos_show_review('112'); ?> where 112 it a specific post ID.

    You can also use <?php echo cwppos_show_review($post_id); ?>
    to get the actual / current page / post id.

    Gr.

    Thread Starter Dave

    (@tlwh)

    Hi Kappa,

    Thanks for that – <?php echo cwppos_show_review($post_id); ?> did the trick!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How to place rating into page manually?’ is closed to new replies.