• Resolved tvalades

    (@tvalades)


    Hi all. I have some custom products that include an image to choose from. I would like that image not appear on the invoice, would it be possible?

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

Viewing 1 replies (of 1 total)
  • Hi,

    please add this code into your theme’s functions.php:

    add_filter('ppom_images_html', 'ppom_no_image_thumb_in_cart', 99, 2);
    function ppom_no_image_thumb_in_cart($ppom_html, $images){
       
        $ppom_html =  '<table class="table table-bordered">';
    foreach($images as $id => $images_meta) {
    
    $images_meta = json_decode(stripslashes($images_meta), true);
    $image_url = stripslashes($images_meta['link']);
    $image_label = $images_meta['raw'];
    
    $ppom_html .= '<td><a href="'.esc_url($image_url).'">' .esc_attr(ppom_files_trim_name( $image_label )) . '</a></td>';
    $ppom_html .= '</tr>';
    
    }
    
    $ppom_html .= '</table>';
    
    return $ppom_html;
        }
Viewing 1 replies (of 1 total)
  • The topic ‘remove image from invoice’ is closed to new replies.