• Resolved appsys

    (@appsys)


    I have a problem with products that don’t have an image attached.
    I would like to see the standard image placeholder in the ajax search results if necessary. Is this possible? Is it theme-related?

    If you search for ‘licht’ on https://lichtgeluidhuren.nl you’ll see what I mean.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had same problem, and I need to modify the plugin to make it work.

    In file: includes/Product.php modify lines 91:97 (function getThumbnailSrc) change to that code:

    if ( ! empty($imageID)) {
    $imageSrc = wp_get_attachment_image_src($imageID, 'dgwt-wcas-product-suggestion');
    
    if ( ! empty($imageSrc[0])) {
    $src = $imageSrc[0];
    }
    } else $src = wc_placeholder_img_src();

    I hope that the plugin author will fix it in the next update.

    Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    It will be fixed in the next plugin release.
    The solution of @manverupl is nice! Thank you.

    Best
    Damian

    Thread Starter appsys

    (@appsys)

    @manverupl & @damian-gora, thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ajax search not showing placeholder for products without image’ is closed to new replies.