Solved

Add multple functions to an existing function in Woocmmerce

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
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…

760 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

26 Experts available now in Live!

Get 1:1 Help Now