• Resolved avik194

    (@avik194)


    All I’am Having a Trouble regarding my search. My search querry runs fin it gives result as it should be, but the probem is its alsso creates dummy product of the first searched product. Like this as per image attached =? https://i.stack.imgur.com/IJuoR.png

    $posts = get_posts(array(
        'numberposts'   => -1,
        'post_type'     => 'product',
        'meta_query'    => array(
            'relation'      => 'OR',
            array(
                'key'       => 'property_add_location_property_add_country',
                'value'     => $_POST['property_add_location_property_add_country'],
                'compare'   => 'IN',
            ),
            array(
                'key'       => 'property_add_location_property_add_state',
                'value'     => $_POST['property_add_location_property_add_state'],
                'compare'   => 'IN',
        ),
        array(
            'key'       => 'property_add_location_property_add_city',
            'value'     => $_POST['property_add_location_property_add_city'],
            'compare'   => '=',
        ),
    )));

    and it is my code whichi I runon to my archie-product.php

    Please help me out am doing to solve it for over 4 dys but cant find a proper way and result

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @avik194 ??

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Please kindly note, at the moment, there’s no default option for that in WooCommerce, and setting that as the default would require quite a bit of additional coding. Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Cheers!

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    Since this thread has been inactive for a bit, I’m going to mark it as Resolved now for the overall health of the forums. Please feel free to check out the resources listed above for additional assistance.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocomerece Product Search problem’ is closed to new replies.