• Resolved anzgar

    (@anzgar)


    Hello,

    in my web shop I am using PPOM an I am satisfied so far, except for some issues with the looks in the cart:
    1. I use an image selector for my products. When on the cart page, they are displayed as separate tables within the product table, displaying a weird line underneath. Is it possible to change this behaviour? Also I would prefer to show only the text and not the image in the cart if that would be possible.
    2. Every PPOM field and its value is each displayed in a separate line, which makes the whole cart really bulky. Is there a way to change this as well? So that a field with its value is displayed in the same line?

    Thanks in advance ??

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

Viewing 1 replies (of 1 total)
  • Hi,

    you can use remove the images from cart using this code into your current theme’s functions.php file:

    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 ‘Change variation appearance in cart’ is closed to new replies.