Forum Replies Created

Viewing 15 replies - 16 through 30 (of 279 total)
  • Thread Starter andyt1980

    (@andyt1980)

    Yes _sku custom field is still set up in the indexing settings. Would the main wordpress debugging file help identify any issues?

    Thread Starter andyt1980

    (@andyt1980)

    Hi,

    Any update on this please?

    Also there is another accessibility issue that has been flagged:

    Certain ARIA roles must contain particular children
    Ensures elements with an ARIA role that require child roles contain them
    It needs one of the following addressed:

    • Element has children which are not allowed (see related nodes)
    • Element has no aria-busy=”true” attribute
    Thread Starter andyt1980

    (@andyt1980)

    Any response appreciated on this please

    Thread Starter andyt1980

    (@andyt1980)

    Thanks, I’ve tried the code below and it seems to be working, although I’m not sure how relevant the first results are:

    /* Order search results so in stock items first */

    add_filter( 'relevanssi_modify_wp_query', 'rlv_adjust_search' );
    function rlv_adjust_search( $query ) {
      $query->set( 'meta_key', '_stock_status' );
      $query->set( 'orderby', 'meta_value_num' );
      $query->set( 'order', 'ASC');
      return $query;
    }

    However, you mentioned relevance on the orderby. How would I add ‘meta_value_num’ and ‘relevance’ parameters to the same argument?

    Thanks,

    • This reply was modified 1 year, 11 months ago by andyt1980.
    Thread Starter andyt1980

    (@andyt1980)

    Thank you for this, I think the custom field option may be the way to go for us.

    Just one other query please. I’m using the following code to make sure out of stock items are shopwn at the end of any product listings/archives:

    add_filter( 'woocommerce_get_catalog_ordering_args', 'bbloomer_first_sort_by_stock_amount', 9999 );
     
    function bbloomer_first_sort_by_stock_amount( $args ) {
       $args['orderby'] = 'meta_value';
       $args['meta_key'] = '_stock_status';
       return $args;
    }

    However, this is not working for search results as I’m still seeing out of stock items first.

    Is there any way around this?

    Thread Starter andyt1980

    (@andyt1980)

    Thank you, working great now!

    Is there some way to make the search prioritise the product title.

    Currently if someone searches for ‘Pans’ its returning search results with products like ‘Induction Hob’ because it has the word ‘Pans’ in the product description. However, any actual pan product such as ‘Steel Induction Frying Pan’ is showing much further down the results list.

    Thread Starter andyt1980

    (@andyt1980)

    Thank you I will try this and get back to you.

    Any idea why the drop-down icon would stop displaying on one specific parent item only?

    Thanks.

    Thread Starter andyt1980

    (@andyt1980)

    Hi,
    I’ve tried clearing browser and server cache but it doesn’t help, even tried using a different computer which has never visited the website and it still shows that ghost 37 orders.

    Thread Starter andyt1980

    (@andyt1980)

    Thank you, I’ve tried following those steps but with that extra line in the wp-config.php file the plugin wont delete, it just hangs on ‘Deleting…’

    If I remove that line then the plugin deletes successfully but still leaves that ghost ‘All (37)’.

    Thread Starter andyt1980

    (@andyt1980)

    Thanks that works, but can it not pull through captions from the caption metadata field thats already been entered in the media library?

    Thread Starter andyt1980

    (@andyt1980)

    Thanks that sounds great!
    Would it also be possible to have those fields pre-selected ready for export?

    Thread Starter andyt1980

    (@andyt1980)

    I’ve removed the offending code from that line and now I’m getting the same error but it references line 166 which is the start of the CF7 filter.

    Can you please double-check if this is correct?:

    add_filter( ‘cf7_2_post_status_orders’, ‘publish_new_post’,10,3);
    function publish_new_post($status, $ckf7_key, $submitted_data){
    return ‘publish’;
    }
    • This reply was modified 3 years, 3 months ago by andyt1980.
    Thread Starter andyt1980

    (@andyt1980)

    After checking the debug.log I’m seeing alot of these PHP errors:

    PHP Warning:  Use of undefined constant ‘cf7_2_post_status_orders’ - assumed '‘cf7_2_post_status_orders’' (this will throw an Error in a future version of PHP) in /home/site/public_html/orders/wp-content/themes/hello-elementor-child/functions.php on line 25
    [26-Aug-2021 10:01:22 UTC] PHP Warning:  Use of undefined constant ‘publish_new_post’ - assumed '‘publish_new_post’' (this will throw an Error in a future version of PHP) in /home/site/public_html/orders/wp-content/themes/hello-elementor-child/functions.php on line 25

    Any ideas?

    • This reply was modified 3 years, 3 months ago by andyt1980.
    Thread Starter andyt1980

    (@andyt1980)

    How would I check that? I’m presuming its not working because posts are being set as draft still.

    Thread Starter andyt1980

    (@andyt1980)

    As I mentioned I’ve tried switching to the default Twenty-Twenty theme but it didn’t help.

Viewing 15 replies - 16 through 30 (of 279 total)