Support » Plugin: WooCommerce » How to add Product Description to Category or shop page

Viewing 13 replies - 16 through 28 (of 28 total)
  • oksanaar

    (@oksanaar)

    Hey guys!

    Is there any way to pull custom attributes for the product, instead of the short description?

    Thank you!

    forgetfuljames

    (@forgetfuljames)

    @oksanaar: This probably should be a new thread, but

    …from within the WooCommerce cart contents loop (the $_product variable is then available to you) you can use the get_attributes( 'attribute-slug' ) function to retrieve any product attribute, where 'attribute-slug' is any attribute slug, like so:

    <?php echo $_product->get_attribute( 'attribute-slug' );?>

    oksanaar

    (@oksanaar)

    Thanks! I will start a new thread and comment my response there.

    Hi there,

    Can anyone please let me know how can i get the product category along with product name on the cart page?

    This is how I need and modify :

    <tr>
    <th class="product-remove"> </th>
    <th class="product-thumbnail"> </th>
    <th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
    
    ******This is the update that i need on cart page********
    <th class="product-cat"><?php _e( 'Category', 'woocommerce' ); ?></th>
    
    <th class="product-price"><?php _e( 'Price', 'woocommerce' ); ?></th>
    <th class="product-quantity"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
    <th class="product-subtotal"><?php _e( 'Total', 'woocommerce' ); ?></th>
    </tr>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thanks a lot

    Thanks ManusH

    add_action(‘woocommerce_after_shop_loop_item_title’,’woocommerce_template_single_excerpt’, 5);

    this code is working for me.

    hi
    i am trying to add a short descibtion line or two under the product item-name befor the price line in the shop page
    i am using woocommerce
    i have in my content-product.php this code:

    <?php if($product_page_productname): ?>
        		  <div class="product-name"><a>"><?php the_title(); ?></a></div>
                <?php endif; ?>
    
                <?php if($product_page_price): ?>
                    <?php do_action( 'woocommerce_after_shop_loop_item_title' ); ?>
                <?php endif; ?>
                <?php if($product_page_addtocart): ?>
                    <?php do_action(
     'woocommerce_after_shop_loop_item' ); ?>
                <?php endif; ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    what do i have to do?

    Hi! That’s just what i’m lookin. Only a little question, it is possible to do the same with product attributes? Height and Weight.

    Thanks!

    This solution worked for me:
    http://stackoverflow.com/questions/15479712/woocommerce-description-in-products-page

    But isn’t this something for the woocommerce options?

    I managed to do this, so that the product description shows on the category pages, however I now need to remove this functionality but I can’t remember how I did this. Would anyone would have any idea how to do this. Here’s the test link http://www.test.vbs4u.com/covingdirect/shop/

    Search for this in your functions.php:

    add_action('woocommerce_after_shop_loop_item_title','woocommerce_template_single_excerpt', 5);

    and delete it or just edit the excerpts of your products end empty them.

    New here – sorry if this comes off a bit amateur or in the wrong place. I’m trying to add short product descriptions to our shop page in WooCommerce. Our items are loaded with full and short desc. but can NOT find a place to add a short item title to each of item images in a specific category. Here’s one of the pages:
    http://sidebarbeverage.com/product-category/6500-series-horizontal/

    Any guidance would be appreciated.

    Hi owcv,
    Thank you for your reply! I tried checking it but there’s nothing like that in my functions.php. I’ve checked the archive-product.php page also…. Do you know of any other pages where it could be? I feel so stupid that I’ve forgotten where I’ve put it!

    Hello,
    I’m building a website to sell food and wine.
    I’m looking for a tool that allows me to create a list of features that can be displayed beside my products in form of icon.
    For instance, I would like to be able to show the icon “BIO” beside one of my products if that product is a natural or a another icon (something like a medal) if the product has been awarded.
    Is there a plugin can help me?
    Thank you very much!

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘How to add Product Description to Category or shop page’ is closed to new replies.