• Hi

    I’m trying to customize request-quote-view.php to replace quantity with product category.

    In the code, I commented out all quantity lines and added these few lines, but it doesn’t work.

    $_product = wc_get_product( $product_id );
    $categ = $_product->get_categories();
    $term = get_term_by ( ‘name’ , strip_tags($categ), ‘product_cat’ );
    echo $term->description; ?>


    I’m not a PHP expert, so I’m not sure if this is correct, can you help me?
    Many Thanks

  • You must be logged in to reply to this topic.