How can I show the average of "visitors multiset rating in the archive page?
-
Hi
How can I show the average of “visitors multiset rating” in the archive.php?thx
-
Hello, thank you for using Yasr!
It should already work on archives pages; do you have a link so I can check this further?
Best,
DarioHere is the archive page link sample:
http://m.doradu.com/lo/isfahanand category link sample:
http://m.doradu.com/restaurants/foodcourt/Is therre any php code or shortcode to display the average? I can put it on archive.php
Tnx 4 support
Hello! Your plugin is very good and it suits me the parameters. But there was a problem setting. I can not configure multiple choice. I type the name of the multiple-choice, I type nazvniya elements to create a shake, appears next to the window in which only 2 of 5 scored multiple-choice items, pridobavlenii element button, a window against MDM stait not even the window where the crows are placed while maintaining it disappears.As a result, you receive a message that something is wrong and please report it. Please help to solve this problem. I tried to restart the plugin to remove and put it zanogo but it did no good.
Hello! Your plugin is very good and it suits me the parameters. But there was a problem setting. I can not configure multiple choice. I type the name of the multiple-choice, I type name elements to create a shake, appears next to the window in which only 2 of 5 scored multiple-choice items, pridobavlenii element button, a window against MDM stait not even the window where the crows are placed while maintaining it disappears. As a result, you receive a message that something is wrong and please report it. Please help to solve this problem. I tried to restart the plugin to remove and put it Again but it did no good.
Sorry for my English
Do you use any cache plugin?
It’s okay, I understand and fix it. The plugin is really good, and most importantly, intuitive. I would like to setup was that people could vote only 1 time in the overall assessment, or the result of a multi choice of visitors make the main rating. Thank you for your product.
Hi Dudo
My issue still not solved.
Is therre any php code or shortcode to display the average? I can put it on archive.phptnx
You’re right, sorry.
You’ve to edit your template, and place this
<?php echo do_shortcode('[yasr_visitor_multiset]'); ?>
on your archive.php page where you want to display it. (this shortcode must be inside the loop)
Best,
DarioI put this code on archive.php
See it on linke below:The code show empty stars & a submit button.
I want to display only stars with the average value.
Tnx 4 support
Sorry, fisrt you’ve to pass the setid parameter in the code I’ve put above, eg:
<?php echo do_shortcode('[yasr_visitor_multiset setid="XXX"]'); ?>
Instead of XXX you’ve to use the set id, (you can just copy and paste the shortcode you use in the post)
But you can’t put only the stars, the “submit” button will always appear
I put the code below:
<?php echo do_shortcode(‘[yasr_visitor_multiset setid=”<?php echo the_ID(); ?>”]’); ?>
but still stars are empty.
I test the shortcode: [yasr_visitor_multiset setid=”6690″] on post Id 6695 and i see the empty stars.
And another problem is Sbmit button, on archive page. I dont want to show that.
thank u
Hello, I said the setid and not the postid π
You’ve just to copy and paste the shortcode that you’re using in the post
It should work, later we’ll work on how to hide the button
For anyone wants do the same, put code below in your theme’s function.php.
remove_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_rating’, 5 );
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘nam_yasr_shop’, 20 );
function nam_yasr_shop() {
echo do_shortcode(“[yasr_multiset setid=0]”);
}And do some CSS modification.
Yes, just take care about the setid π
Best,
DArio
- The topic ‘How can I show the average of "visitors multiset rating in the archive page?’ is closed to new replies.