Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Add multple functions to an existing function in Woocmmerce

Posted on 2016-09-21
1
Medium Priority
?
101 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
While Plesk offers many potential benefits to website administrators, including compatibility with Windows Server and other leading technologies, the company has also been working to differentiate it from other control panels for content management…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses

926 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