Solved

Add multple functions to an existing function in Woocmmerce

Posted on 2016-09-21
1
70 Views
Last Modified: 2016-09-26
I have created a plugin from a tutorial and it's allowing me to show the Short Description of a product in a Woo Commerce site on the Shop page.  Plugin code below.

<?php

 function tutsplus_excerpt_in_product_archives() {
     
    the_excerpt();
	  
}

add_action( 'woocommerce_after_shop_loop_item_title', 'tutsplus_excerpt_in_product_archives', 10 );

Open in new window


How can I get it to show additional information on the shop page.  Ie. SKU # or Long Description or any other field?
0
Comment
Question by:livewirewebsolutions
1 Comment
 
LVL 12

Accepted Solution

by:
William Nettmann earned 500 total points
ID: 41810238
As you're doing a tutorial, I am assuming you are trying to learn something, so I will try not to tell you how to do what you want to do, but rather point you to where you can find the information.

First off, make sure you understand "The Loop". Read that page to get context.

Once you understand that, you will be able to do almost anything on a WordPress page.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question