Okay
  Public Ticket #2091965
Product image at checkout
Closed

Comments

  •  3
    Eugen started the conversation

    Hello,
    Is it possible to have also product thumbnail image near, or under, the product title in checkout page, in Karo theme?

    screenshot-websitedev6.tk-2019.07.24-12-28-38.png

    Thanks!

  •  2,573
    Kevin replied

    Hi Eugen !

    Add the following code to your function (Appearance-> Editor-> function.php) Your request will be resolved

    add_action('woocommerce_cart_item_name', 'displays_cart_products_feature_image', 10, 2);
    function displays_cart_products_feature_image($cart_item_name, $cart_item) {

        return (is_checkout ()) ? $cart_item ['data'] -> get_image(array (100,100)). $cart_item_name: $cart_item_name;

    }

    thank you

  •  3
    Eugen replied

    Wonderful! Thank you!

    A small fix: is it possible to add a few pixels of spacing between thumb and title via css padding?

    screenshot-websitedev6.tk-2019.07.25-12-03-24.png

    Thanks again!

  •  2,573
    Kevin replied

    Hi Eugen !

    Add this css attribute to the style.css file (Appearance-> Editor-> style.css) or Appearance-> Customize-> additonal your CSS to create a space between them
    td.product-name img {
        padding-right: 10px;
    }

    thank you

  •  3
    Eugen replied

    Great! Thanks!

  •  2,573
    Kevin replied

    thank you, have  a good day

  • sanne replied

    Hi, is this also possible in the wibar theme? Look very nice!

  •  2,573
    Kevin replied

    Hi sanne !

    Yes thank you, if you use our wibar theme, I will help you add it to your site

    thank you