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 15 total)
  • Author
    Posts
  • in reply to: terms filter on custom page #52607
    gavriel_wtTjgavriel_wtTj
    Participant

    great. Ernest, i really want to thank you for the top support!!

    in reply to: terms filter on custom page #52605
    gavriel_wtTjgavriel_wtTj
    Participant

    beautiful! that seems to have done the trick

    this will work on any filter now . .right?

    in reply to: terms filter on custom page #52594
    gavriel_wtTjgavriel_wtTj
    Participant

    Good morning
    see attached screenshot. I just tried with this custom field setup and this works. But i would have to show the settings and one has to click on it to make it work.

    So i tried with adding 1737621233 in the hidden value (when using the hidden field setup) and this works.. which makes sense as 0 is the 1970 🙂 and i want to show events with expiration more or equal that TODAY. Do you have any macro that I can add to the value field for today/current datetime?

    in reply to: terms filter on custom page #52587
    gavriel_wtTjgavriel_wtTj
    Participant

    dosnt seem like it does anything. I still get the results of old products that have the expiration_date in the past (see screenshot)

    in reply to: terms filter on custom page #52578
    gavriel_wtTjgavriel_wtTj
    Participant

    yes i have set it as you mentioned . see attached image

    could it have anything to do with the fact that this is a jetengine metafield?

    in reply to: terms filter on custom page #52573
    gavriel_wtTjgavriel_wtTj
    Participant

    sorry, didnt see you replied as it was on page 2 😉

    i just tried your set but it’s not working 🙁 Could it be because my field is a timestamp and it’s checking against the value 0?

    in reply to: terms filter on custom page #52569
    gavriel_wtTjgavriel_wtTj
    Participant

    do you think this is possible?

    in reply to: terms filter on custom page #52511
    gavriel_wtTjgavriel_wtTj
    Participant

    i think we will be creating our own filter for this as there is alot of customization that we need.

    I haev another question: on the homepage im using the live search. Is there any option or hook to only include products that have a timestamp metafield in the future?
    In my products i have a metafield expiration_date which is saved as timestamp. I would like to only return items that have this date in the future.

    thanks

    in reply to: terms filter on custom page #52484
    gavriel_wtTjgavriel_wtTj
    Participant

    thanks alot.
    i just made the changes and now it does filter, but breaks the main query.
    Im trying a couple of things with custom code and if i dont manage I would really appreciate your assistance. Thanks

    in reply to: terms filter on custom page #52481
    gavriel_wtTjgavriel_wtTj
    Participant

    i added it to the UL and it did nothing. If i add it to the li, it triggers something only on the first item

    in reply to: terms filter on custom page #52479
    gavriel_wtTjgavriel_wtTj
    Participant

    hi, first of all, thanks alot for the support

    i implemented all 3 steps but allas its still not working
    https://woocommerce-707975-4987928.cloudwaysapps.com/tickets/music/

    nothing happens when filtering

    in reply to: terms filter on custom page #52476
    gavriel_wtTjgavriel_wtTj
    Participant

    ah great 🙂 thanks. looking forward to hearing back from you then!

    in reply to: terms filter on custom page #52474
    gavriel_wtTjgavriel_wtTj
    Participant

    any idea? 🙂

    in reply to: terms filter on custom page #52468
    gavriel_wtTjgavriel_wtTj
    Participant

    and note that it’s not an archive template, these are pages

    in reply to: terms filter on custom page #52467
    gavriel_wtTjgavriel_wtTj
    Participant

    its a custom loop.
    we are using jetengine query builder to create the query and then this is our code in the template:

    if (!empty($product_ids)) {
    // Convert the comma-separated product IDs into an array
    $product_ids_array = explode(‘, ‘, $product_ids);

    // Query the products based on the retrieved IDs
    $args = array(
    ‘post_type’ => ‘product’, // Ensure you’re querying WooCommerce products
    ‘post__in’ => $product_ids_array,
    ‘orderby’ => ‘post__in’, // Preserve the order from the JetEngine query
    ‘posts_per_page’ => -1, // Adjust the number of products as needed
    );

    $product_query = new WP_Query($args);

    if ($product_query->have_posts()) :
    ?>
    <ul id=”products-grid” class=”products-grid” style=”–width: 45%;”>
    <?php while ($product_query->have_posts()) : $product_query->the_post(); ?>

    <!– Include the product-card loop template from the loops folder –>
    <?php get_template_part(‘template-parts/product-loop’, ‘loop’); ?>

    <?php endwhile; ?>

    <?php wp_reset_postdata();
    else :
    echo ‘No products found for the selected query.’;
    endif;

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