• Resolved couch

    (@couch)


    Support,

    I would wish to add a small product description under the TG product description widget so that now it will display:
    1) Product name
    2) Product Price
    3) Product Description

    Kindly let me know if this is possible.
    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi @couch,

    I’ve a confusion with your query, can you please provide us with the screenshot link pointing the portion you’re referring to for a better understanding?

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    My aplogies, below is the link:

    Sample link

    Hi @couch,

    To get the result as you desired, you must activate the child theme. You can get knowledge about the child theme and download eStore child theme from the link below.

    https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/

    If you can code on your own, then you can achieve it via the child theme.

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    Okay then.

    Can you just guide me on which file under “theme files” that i should edit for this?

    Hi @couch,

    I think you should edit inc/widgets/class-estore-woocommerce-product-grid.php file inside eStore theme, if you go for theme files.

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    found it. thank you so much.

    Just one final question.
    When adding a product, there is a an option to add “product short description”. Could you have an idea the function name given to call the “product short description”?
    for example, under inc/widgets/class-estore-woocommerce-product-grid.php the product title is being called by “the_title()” tag. My question is how the “product short description” can be called.

    Your response is truly appreciated.

    Hi @couch,

    I think get_short_description() function can be used to call the “product short description”.

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    Thanks Ankit.

    Unfortunately that didn’t work. Getting the Error: Call to undefined function get_short_description() error. Been looking as to where the function are defined but cant seem to find them. Any clues?

    Hi @couch,

    I apologize for the trouble before. Can you please add the below code in a file name inc/widgets/class-estore-woocommerce-product-grid.php before <div class="cart-wishlist-btn"> and check it once?

    <?php if ( $description = $product->get_description() ) : ?>
    <h3 class="product-list-title"><?php esc_html_e('Description: ', 'estore'); ?></h3><?php echo $description; ?>
    <?php endif; ?>

    And, we recommend you to do so using a child theme so that you won’t lose those changes when the theme’s next update rolls around. Please do let us know if there’s any confusion.

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    Ankit,

    Works like a charm!!!!!!! Thank you so much. Be blessed!

    Hi @couch,

    Great to hear it worked for you, if you liked our theme and enjoying the support we would be thrilled if you drop a review here: https://www.ads-software.com/support/theme/estore/reviews/#new-post. Your review would be an enormous help. And, if you ever have a query please let us know.

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    Ankit,

    When i click on the view all so at so view all items per category, a new page open “xx.com/product-category/category-name”. Am now looking for the code for the product category page as i need to add the “product-short-description” just like we did above. Any clue where its located?

    • This reply was modified 3 years, 5 months ago by couch. Reason: additonal information

    Hi @couch,

    We’d replied to you on the same query in your other support thread. So, can you please once check and confirm it?

    Sincerely,
    Ankit
    ThemeGrill Support Team

    Thread Starter couch

    (@couch)

    Ankit,

    Yes seen it. just that the response was a bit slow today hence was confused on whether to start a new ticket or continue it here.

    Hi @couch,

    Sorry for the late reply. We suggest you to resolve the current ticket and start a new support thread as you did before. It would be easier for us in such a case.

    Have a good time! ??

    Sincerely,
    Ankit
    ThemeGrill Support Team

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘How to add a product description to TG product widget’ is closed to new replies.