This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 33 total)
  • Author
    Posts
  • in reply to: Doesn`t work enter button #17007
    fespigadofespigado
    Participant

    Hi Ernest.
    I have deleted as you indicate. Now it does not find the attributes and returns “no results”.

    I have to set it up somewhere else?

    Thanks

    in reply to: Doesn`t work enter button #16985
    fespigadofespigado
    Participant

    Hi Ernest.
    Thanks for the code. I’ll try this weekend.

    The taxonomies are configured.
    The problem is that instead of showing the products with the image, title, etc. As you see in the image if you are looking for sku. It shows the attribute and thus it can not be.

    in reply to: Doesn`t work enter button #16972
    fespigadofespigado
    Participant

    Sorry, one more thing.

    How to configure in index table when searching by attribute, results in products and not the attribute.

    Attached image.

    Thank you

    Fernando

    in reply to: Doesn`t work enter button #16971
    fespigadofespigado
    Participant

    Ok Ernest.
    How can i get the previous version? Can you send me?

    Thanks

    in reply to: Atributes with variable characters #16307
    fespigadofespigado
    Participant

    More images…

    in reply to: Atributes with variable characters #16302
    fespigadofespigado
    Participant

    Good morning Ernest,
    after setting the table index we found two problems. The first problem is that it does not identify the new attribute “Test” to include it in the list of “Source2”, as you can see in the image. Second problem, not find the product if I add (4), (45) or (456). What solution can we apply?

    I attach images, if you need something else do not hesitate to ask me.

    in reply to: Atributes with variable characters #16007
    fespigadofespigado
    Participant

    Hi Ernest,

    I need to finish the work of my Client.
    I need your guidance to make the searches discussed above work. I have already created the index table. What is the next step?

    Fernando

    in reply to: Atributes with variable characters #15856
    fespigadofespigado
    Participant

    Hi Ernest,

    It has not been clear to me how I should proceed to get the search configuration.
    Can you help me please.

    in reply to: Atributes with variable characters #15339
    fespigadofespigado
    Participant

    Good morning Ernest,
    is this release the one we need?
    If yes, where can I see the information I need to deploy index table and configure the searches?

    Fernando

    in reply to: Atributes with variable characters #15068
    fespigadofespigado
    Participant

    Hi Ernest,

    The new release is not yet available. True?
    You already have the documentation to be able to configure table engine to get what we are looking for?

    Best regards,

    Fernando

    in reply to: Atributes with variable characters #14865
    fespigadofespigado
    Participant

    Hi Ernest,

    I send you an image of how it works now. Everything is correct. If I look for rbj102440 look for correct product. What I need is that if we put a value between the parentheses, when the user searches without the parenthesis find it. Example: Attribute rbj102440 (123) the user searches for rbj102440123 and finds it.

    Thanks

    in reply to: Include Atributes in search #13554
    fespigadofespigado
    Participant

    As promised, I share the code to show the stock in the search results if it is greater than 0. thanks for your help

    add_filter( ‘asp_results’, ‘asp_stock_to_content’, 1, 1 );

    function asp_stock_to_content( $results ) {
    $custom_field = “_stock”;

    foreach ($results as $k=>$v) {
    if ($v->content_type != “pagepost” || $v->post_type != “product”)
    continue;
    if ( function_exists(‘get_field’) )
    $meta_value = get_field( $v->id, $custom_field, true ); // ACF support
    else
    $meta_value = get_post_meta( $v->id, $custom_field, true );
    // Modify the post title to add the meta value

    if ( $meta_value > 0)
    $results[$k]->content .= ‘<br>Stock: ‘ . intval($meta_value) . ‘‘;
    else
    continue;
    }

    return $results;
    }

    in reply to: Include Atributes in search #13426
    fespigadofespigado
    Participant

    Hi Ernest,
    thanks for the information.
    The project I’m talking about is not on the wordpress platform.
    It’s an adhoc project.

    in reply to: Include Atributes in search #13424
    fespigadofespigado
    Participant

    Hi,

    sorry for my bad english.
    What I mean is that the stock does not appear but the product should appear.

    in reply to: Include Atributes in search #13408
    fespigadofespigado
    Participant

    Sorry Ernest,
    but still looking for products in stock 0 searches.

    I´ve add added 1 more condition but it does not work.

    **********************************************************

    add_filter( ‘asp_results’, ‘asp_stock_to_content’, 1, 1 );

    function asp_stock_to_content( $results ) {
    $custom_field = “_stock”;

    foreach ($results as $k=>$v) {
    if ($v->content_type != “pagepost” || $v->post_type != “product”)
    continue;
    if ( function_exists(‘get_field’) )
    $meta_value = get_field( $v->id, $custom_field, true ); // ACF support
    else
    $meta_value = get_post_meta( $v->id, $custom_field, true );
    // Modify the post title to add the meta value
    if ( !empty($meta_value) || $meta_value <=0)
    $results[$k]->content .= ‘<br>Stock: ‘ . intval($meta_value) . ‘‘;
    }

    return $results;
    }

Viewing 15 posts - 1 through 15 (of 33 total)