digitalberry
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Getting a Fatal error when searchingThank you!
/**
- Add price sorting to relevanssi search results
*/
function rlv_price_sort( $hits ) {
if ( is_search() ) {
$ordering = WC_Query::get_catalog_ordering_args();
if ( ( $ordering[‘orderby’] != ‘date ID’) && ($ordering[‘meta_key’] == ”) ) {
$prices = array();
foreach ( $hits[0] as $hit ) {
$price = get_post_meta( $hit->ID, ‘_price’, true);
if ( !isset( $prices[$price] ) ) {
$prices[$price] = array();
}
array_push($prices[$price], $hit);
}
$priceorder = strtolower( $ordering[‘order’] );
if ( $priceorder == ‘desc’ ) {
ksort($prices);
} else {
krsort($prices);
}
$sorted_hits = array();
foreach ( $prices as $price => $year_hits ) {
$sorted_hits = array_merge( $sorted_hits, $year_hits );
}
$hits[0] = $sorted_hits;
}
return $hits;
}
}add_filter( ‘relevanssi_hits_filter’, ‘rlv_price_sort’ );
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Getting a Fatal error when searchingNot, sure I didn’t built the site, I’ve inherited it to try and fix!
Hi,
Thanks for all the efforts, I can get other widgets working just fine with ACF and Elementor dynamic tags, so I’m going to cut my losses and just use a different widget.
They are a standard ACF Image and text field respectively and all the dynamic fields are correctly loaded.
Images are here – https://imgur.com/a/Ar6p52m
I tried the different ACF image Return Format options, but nothing seems to help/improve things.It’s very odd, as is a simple setup, which I’ve done before (not using JKit image box, so was surprised at it not working first time.
Hi,
Thanks for the file, unfortunately it made no change to the dynamic options showing.
Here’s a link to the page with the issue – https://cuckfield-golf-club.staging-digitalberry.co.uk/members/The left Jkit image box (mens captain) is using the dynamic tags and pulling data from an ACF (6.1.4) CPT for the image and persons name. The two examples on the right use the normal Jkit image box with manual data added.
I’m trying to do as the OP asked in the first post with the free version, but I cannot see these options to add a price to a variation, is it possible with the free version?
Forum: Plugins
In reply to: [WP LinkedIn Auto Publish] Featured Image not postingYes looks to be working now, maybe the LinkedIn cache was being slow or something. Thanks for the support!
Forum: Plugins
In reply to: [WP LinkedIn Auto Publish] Featured Image not postingNo, I tried multiple times with different posts and none would show the featured image.
Hereβs a post link – https://oj-partners.staging-digitalberry.co.uk/blog/are-you-looking-for-a-new-job/
Ahhh OK, I’ll change the Lottie then. Thanks for the quick reply.
Forum: Plugins
In reply to: [ECS - Ele Custom Skin for Elementor] Pro Update Breaks SiteSame issue, although only affecting some accounts not being able to login…
Fatal error: Uncaught TypeError: Unsupported operand types: int - string in /nas/content/live/happrod/wp-content/plugins/ele-custom-skin/includes/ecs-notices.php:95 Stack trace: #0 /nas/content/live/happrod/wp-content/plugins/ele-custom-skin/includes/ecs-notices.php(105): ecs_days_old() #1 /nas/content/live/happrod/wp-content/plugins/ele-custom-skin/includes/ecs-notices.php(81): ecs_load_notifications() #2 /nas/content/live/happrod/wp-includes/class-wp-hook.php(303): ecs_check_for_notification('') #3 /nas/content/live/happrod/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /nas/content/live/happrod/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /nas/content/live/happrod/wp-settings.php(578): do_action('init') #6 /nas/content/live/happrod/wp-config.php(134): require_once('/nas/content/li...') #7 /nas/content/live/happrod/wp-load.php(50): require_once('/nas/content/li...') #8 /nas/content/live/happrod/wp-admin/admin.php(34): require_once('/nas/content/li...') #9 /nas/content/live/happrod/wp-admin/index.php(10): require_once('/nas/content/li...') #10 {main} thrown in /nas/content/live/happrod/wp-content/plugins/ele-custom-skin/includes/ecs-notices.php on line 95Forum: Plugins
In reply to: [Contact Form 7] 5.4 Causing Warning and site errorsI’m still having issues with this, now on more sites…
https://www.pdmotorservices.co.uk/
Its definitely to do with 5.4, as older versions are not throwing this error.
- This reply was modified 5 years, 1 month ago by digitalberry.
Forum: Plugins
In reply to: [Contact Form 7] 5.4 Causing Warning and site errorsThis is the site – https://surveyorsinlondon.co.uk/
But as it is a live site I have had to roll back to version 5.3.2 as this is working just fine.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay not displaying on CheckoutRuns and hides…..
Thanks for pointing out my stupidity! I’ll just go now… D’oh! π
Forum: Plugins
In reply to: [WooCommerce] Price display errorHi Mouli,
Thanks for the thorougher feedback and support.I carried out all your suggested bug checks and have narrowed it down to ACF and ACF pro plugins causing the conflict.
I ended up working out that ACF used on the variable product were conflicting with the Simple products and so setup a rule to exclude the ACF’s from all but required products and it looks to have fixed it! Phew!
Thanks again for everyones help!
Forum: Plugins
In reply to: [WooCommerce] Price display errorYeah it’s pretty odd, and I’ve tried to check all settings to just make sure it’s not something “simple”. i.e. taxes, shipping zones, etc… Never had this one any other build, and have done dozens of ecom sites before.
Here’s the product dashboard – https://snipboard.io/ToMZ32.jpg you see the Β£51,486 price on the top item.
Here’s Quick View – https://snipboard.io/KF8hOI.jpg Price show correct in here.
Here’s Product edit screen – https://snipboard.io/q4IYPh.jpg displays correct price.
There is no “sale price” needed for these items, it just seems to fix the glitch when in Quick View if you add a random price and then update. Go back again and put correct vale back in “price” field, delete sale price, save.
It’s like the other “Variable” products that are in the store are making this “Simple” one glitch or something, or the Virtual or Download option is throwing it out.
All very odd, but need to find a fix as the client is chasing….
Thanks for your response so far.
- Add price sorting to relevanssi search results