Viewing 6 replies - 1 through 6 (of 6 total)
  • Please post the url to your website.

    Thread Starter rafinkarki

    (@rafinkarki)

    actually i used following code but whenever i use this nothing happens.
    <?php echo ‘<p class=”item-desc”>’.$_product->get_post_data().$woocommerce->cart->get_post_excerpt( $cart_item ).'</p>’?>

    is there any other better option to display product description?

    Thread Starter rafinkarki

    (@rafinkarki)

    on the other hand, i am creating website on my local computer in localhost

    To debug your php, put in temporary lines with var_dump(); for each variable to check that your variables contain what you think they should. Start with var_dump($_product);, then var_dump($_product->get_post_data()); and so on.

    Thread Starter rafinkarki

    (@rafinkarki)

    i completely followed you and finally problem solved. I used following code after debugging with var_dump().

    echo $_product->post->post_excerpt;

    Thread Starter rafinkarki

    (@rafinkarki)

    thank you so much

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘cart item description’ is closed to new replies.