• Resolved aussieles

    (@aussieles)


    Hi Guys,

    Awesome plug-in.
    I am trying to use [cusrev_reviews] to show the reviews box in an alternative page without success. I have placed it inside a text box which normally works with these type of codes but not showing on the page. My test page is :

    https://www.biomintoothpaste.com.au/prod-biominf-1-pk/ .

    Ultimately I am wanting to provide info to populate google rich cards. With a review score and number of reviews.

    Any suggestions much appreciated.

    Les

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author cusrev

    (@ivole)

    Thanks for using our plugin!

    Unfortunately, this shortcode has very limited functionality and it only works on WooCommerce single product pages. I see that you tried to add the shortcode on a regular WordPress page and this is why it doesn’t work.

    We are working on adding a larger variety of shortcodes to the plugin. They should be available with one of the next updates.

    Thread Starter aussieles

    (@aussieles)

    Hi Guys,

    Awsome support. Looking forward to the updates.

    Regards

    Les

    When is the update? I plan on doing the same, non Woo page with the review.

    Plugin Author cusrev

    (@ivole)

    We are working on it. As soon as they are ready, they will be publicly available. We don’t want to release half-baked features, so it takes time to prepare and test everything. Also, WooCommerce released a new version recently, so we have to do additional work to make sure that our plugin is fully compatible with the latest version of WooCommerce.

    Hey Aussieless… how I hacked it:

    <?
    	$args = array(
    		'p'         => $product_ID,
    		'post_type' => 'any'
    	);
    	$orig_product = new WP_Query( $args );
    	while ( $orig_product->have_posts() ): $orig_product->the_post();
    		if( $post->comment_status == 'open' ):
    ?>
    <div class="content page reviews">
    	<? echo do_shortcode('[cusrev_reviews]'); ?>
    </div>
    <?
    		endif;
    	endwhile;
    ?>
    

    I’m loading mine into a single-[custom post type] then using ACF to input the Product ID. It could be as simple as [cusrev_reviews product_ID=”xxx”], hopefully they just add that at some point. I might try to modify the shortcode to allow that at some point if I get time but this works well for now.

    Oh and add:

    wp_enqueue_script('customer-reviews-woocommerce-js', '/wp-content/plugins/customer-reviews-woocommerce/js/frontend.js','',NULL,false);
    wp_enqueue_style('customer-reviews-woocommerce-css', '/wp-content/plugins/customer-reviews-woocommerce/css/frontend.css','',NULL,false);
    wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js', array(), null, true );
    

    To your functions.php to load the scripts and CSS.

    • This reply was modified 6 years, 9 months ago by consumedesign.

    Also interested in this:
    -having the shortcode working in a normal page
    -being able to filter from which category of products to pull reviews from
    -have the rich snippets / schema in that page so that for the new page that uses shortcode is pulling all reviews, the stars appear on google search.

    I hope this update can be asap!

    Same here : great plugin + looking forward to the shortcodes update ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[cusrev_reviews] Not working’ is closed to new replies.