Solved

Add multple functions to an existing function in Woocmmerce

Posted on 2016-09-21
1
54 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The viewer will learn how to count occurrences of each item in an array.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now