WordPress.org

Forums

WooCommerce - excelling eCommerce
Custom Attributes size, color on the cart page (1 post)

  1. mmaumio
    Member
    Posted 1 year ago #

    I'd like to add the custom attributes size, color to the cart page.

    global $product;
    $terms = get_the_terms( $product->id, 'pa_color');
    foreach ( $terms as $term ) {
    echo $term->name;
    }

    That bunch of codes didn't work.

    Any help appreciated.

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic