Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 549 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Woocommerce - description in products page

#1
I need to add little excerpt from description on my "product" in Woocommerce plugin.
I have page like this:

[To see links please register here]

and I need to have some description text under the name of each person... is there any way to do it?

Reply

#2
That category page with the products inside is:
woocommerce >> templates >> content-product.php

And you can find that only function to show the Title inside this page as:

<h3><?php the_title(); ?></h3>

After that line you can add your own lines:

<br /><?php echo $product->get_sku(); ?> <br /><?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>

These will display the SKU and the short-description of the product.

Btw, this is just a quick hard-coded method, you can try to add these functions to the hook on that page in your theme's functions.php.

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

As it is mentioned in that hooks comments section that the PRICE is already hooked in there.
Reply

#3
Maybe this can help you

<?php wc_get_template( 'single-product/short-description.php' ); ?>


from this link

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through