This topic is: resolved

Woocommerce checkout display

  • ricardogp
    Participant
    Post count: 170
    # 7 months ago

    Hello,

    I started this converstation with Vipinn when I thought that I wanted a custom request on Woocommerce checkout (to include featured image on woocommerce product on checkout page).

    I’ve got a reply saying that what I wanted should be working by default. I think, if you have 30 seconds, that this video explains what I mean.

    https://screencast-o-matic.com/watch/cFhQrmbUEI

    What do you think?

    Thanks in advance,
    Ricardo Pons

    AuthorAuthor
    Keymaster
    Post count: 26641
    # 7 months ago

    Hi there

    I have assigned this thread to my developer and he will be assisting you soon.

    Thanks

    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 7 months ago

    Hello

    I am looking into this and let you know why featured image is not showing for Woocommerce pages.

    Thanks

    Nitin SharmaNitin Sharma
    Moderator
    Post count: 10327
    # 7 months ago

    Hello

    You need to edit wc_functions.php file near line# 270
    replace
    function eventer_remove_permalink_thumb( $image, $cart_item, $cart_item_key ) {
    $product_id = $cart_item['product_id'];
    if(!has_term('eventer', 'product_cat', $product_id) && !has_term('eventer_services', 'product_cat', $product_id)) return $image;
    return get_the_post_thumbnail($product_id);
    }
    with
    function eventer_remove_permalink_thumb( $image, $cart_item, $cart_item_key ) {
    $product_id = $cart_item['product_id'];
    $event_id = $cart_item['wceventer_id'];
    if(!has_term('eventer', 'product_cat', $product_id) && !has_term('eventer_services', 'product_cat', $product_id)) return $image;
    return get_the_post_thumbnail($event_id);`
    }

    Thanks

    ricardogp
    Participant
    Post count: 170
    # 6 months, 4 weeks ago

    Hello!

    It is working great!

    Thank you for your attention.

    Best regards,
    Ricardo Pons

    AuthorAuthor
    Keymaster
    Post count: 26641
    # 6 months, 4 weeks ago

    Thanks for your assistance here @nitin
    [CLOSING THREAD]

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

The topic ‘Woocommerce checkout display’ is closed to new replies.