stylise
Forum Replies Created
-
Forum: Plugins
In reply to: [Site Reviews] Round up star rating@geminilabs Thank you for optimizing the code! Tested and working.
Forum: Plugins
In reply to: [Site Reviews] Round up star rating@geminilabs Thanks so much for pointing me in the right direction!
Here’s the full code for anybody who wants to do the same–
// Round up star rating images
add_filter('site-reviews/defaults/star-rating', function (array $values) {
$rating = $values['rating'] ?? 0;
// Apply conditions for different rating ranges
if ($rating >= 4.8) {
$values['num_full'] = 5;
$values['num_half'] = 0;
}
else if ($rating >= 4.3) {
$values['num_full'] = 4;
$values['num_half'] = 1;
}
else if ($rating >= 3.8) {
$values['num_full'] = 4;
$values['num_half'] = 0;
}
else if ($rating >= 3.3) {
$values['num_full'] = 3;
$values['num_half'] = 1;
}
else if ($rating >= 2.8) {
$values['num_full'] = 3;
$values['num_half'] = 0;
}
else if ($rating >= 2.3) {
$values['num_full'] = 2;
$values['num_half'] = 1;
}
else if ($rating >= 1.8) {
$values['num_full'] = 2;
$values['num_half'] = 0;
}
else if ($rating >= 1.3) {
$values['num_full'] = 1;
$values['num_half'] = 1;
}
else if ($rating >= 1) {
$values['num_full'] = 1;
$values['num_half'] = 0;
}
else {
$values['num_full'] = 0;
$values['num_half'] = 0;
}
return $values;
});Forum: Plugins
In reply to: [Site Reviews] Round up star rating@geminilabs That’s correct, I only want to adjust the star images.
Forum: Plugins
In reply to: [Site Reviews] Round up star rating@geminilabs Okay, that’s fair. My example was arbitrary in order to demonstrate a point.
I have a product that has a total rating of 4.9, but the star rating is 4.5. (https://ibb.co/YpYgBJV)
I would like the ratings of 4.8 or higher to round up to 5 stars, 4.3 rounds up to 4.5, etc.
For clarification, this has nothing to do with bayesian related sorting.
Forum: Plugins
In reply to: [Site Reviews] How can I “Enable reviews” for our entire catalogThat did the trick, thanks a lot! I’ll be leaving a plugin review soon.
Forum: Plugins
In reply to: [Site Reviews] How can I “Enable reviews” for our entire catalog@geminilabs First off, I realize that this request is essentially out of the scope of Site Reviews, especially considering this is the free support forums, so I appreciate your willingness to help.
- Yes
- Yes
- Using the Code Snippets plugin and the instructions provided
- Yes, the box remains unchecked
Forum: Plugins
In reply to: [Site Reviews] How can I “Enable reviews” for our entire catalog@geminilabs Thank you for the detailed suggestion, but unfortunately that doesn’t seem to have worked.
Forum: Plugins
In reply to: [Site Reviews] Issue with “Import Reviews” tool@geminilabs Thanks, you’re correct. Not all months/days were in the two digit format.
What’s the best way to get these other reviews into the system? Update the invalid dates to the correct format then upload a separate CSV with the missing reviews?
Some clarification on how/if it can detect duplicates would be appreciated.
Forum: Plugins
In reply to: [WooCommerce ShipStation Integration] v4.4.5 Woo Product Bundles import issueFor anybody else who might be effected by this, here’s the response I received from support–
“I can confirm that the developers have been made aware as other more complex product types have also been affected by this. While we cannot give you an ETA on the fix, our developers are working on it.”
Forum: Plugins
In reply to: [WooCommerce ShipStation Integration] v4.4.5 Woo Product Bundles import issue@doublezed2 I can’t post that publicly for security reasons, but I did submit the system status report via a WooCommerce technical support request.
Forum: Plugins
In reply to: [Site Reviews] Don’t show empty reviews with [site_reviews] shortcode@geminilabs Thank you, it appears to be working now!
I greatly appreciate your assistance.
Forum: Plugins
In reply to: [Site Reviews] Don’t show empty reviews with [site_reviews] shortcode@geminilabs That part of the code was removed before posting.
Edit: Okay sorry, I didn’t make the category first. Testing now.
- This reply was modified 2 weeks ago by stylise.
Forum: Plugins
In reply to: [Site Reviews] Don’t show empty reviews with [site_reviews] shortcodeThank you for the suggestion and custom code. We aren’t using titles for what it’s worth. Just rating, review, name, and email.
Unfortunately it doesn’t appear to be working as expected, both with form submitted reviews and manually created reviews. Review with no content still shows up under [site_reviews].
Forum: Plugins
In reply to: [WooCommerce ShipStation Integration] v4.4.5 Woo Product Bundles import issue@doublezed2 That’s correct, and yes that’s the bundle plugin in reference.
Here’s some v4.4.5 errors that might prove useful–
[05-Nov-2024 14:31:05 UTC] PHP Warning: include(): Failed opening '/.../.../.../wp-content/plugins/woocommerce-shipstation-integration/includes/data/data-settings.php' for inclusion (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear') in /.../.../.../wp-content/plugins/woocommerce-shipstation-integration/includes/class-wc-shipstation-integration.php on line 158
[05-Nov-2024 19:11:20 UTC] PHP Fatal error: Trait "WooCommerce\ShipStation\Order_Util" not found in /.../.../.../wp-content/plugins/woocommerce-shipstation-integration/includes/class-wc-shipstation-integration.php on line 17Forum: Plugins
In reply to: [Video Gallery for WooCommerce] Dequeue Font Awesome 5@martinvalchev It’s working great, thanks a lot!