Home Forums WoodMart support forum Custom Field Available/ Available in 1-3 days etc

Custom Field Available/ Available in 1-3 days etc

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #647503

    grcp
    Participant

    Hi support,

    Im using ACF field to appears on each product the availability.

    Is there any way to appears also the availability in products grid ?

    Now appears if you click in the product.

    best regards

    #647675

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, there are no options available in Theme Settings for it. You can try to use our Waitlist functionality, which help automatically notify customers when a product becomes available for purchase.

    https://xtemos.com/docs-topic/waitlist/

    Kind Regards

    #647783

    grcp
    Participant

    Problem solved after used the below code :
    function buytech_show_availability_on_archive() {
    global $product;
    $availability = get_field(‘product_availability’, $product->get_id());

    if ($availability) {
    echo ‘<p class=”product-availability”>’ . esc_html($availability) . ‘</p>’;
    }
    }
    add_action(‘woocommerce_after_shop_loop_item_title’, ‘buytech_show_availability_on_archive’, 15);

    #647879

    Luke Nielsen
    Keymaster

    Hello,

    Glad that you found a solution.

    Always remember that you can reach out to us with any questions you may have.

    Wish you all the best.

    Kind Regards

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

The topic ‘Custom Field Available/ Available in 1-3 days etc’ is closed to new replies.