Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #675131

    Hello!
    I’m using Woocommerce, with a Category grid set to “Minimal (no borders or button)”. It looks great, but below the Product Title, I need to remove the price, and add the Product Short Description instead.
    Could you help me out?
    Thank you. Great theme!
    M

    #675291

    Hey shakshuka,

    It might not be easy to add the description if the option is not provided but we can help you remove the price. Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Vinay

    #675295

    Thanks Vinay.
    Here is the link:
    http://www.domain.com/product-category/houses/
    I need to add some more information below the product title, that’s why I need the “Short Description” saved in WooCommerce.
    Otherwise maybe the brand name, and/or the product tags?
    Best,
    M

    • This reply was modified 8 years ago by Yigit.
    #676075

    Hello,
    I have to set the site on maintenance mode.
    Can you send me your IP address and I will give you access to the site?
    Thank you again for your help.
    Best,
    M

    #676732

    Hi,

    I’m sorry but we don’t provide that kind of info here. Please disable any security blocks temporarily so that we check the issue. And post the login details here so that we can get past the maintenance mode page.

    Remove the price with the following css code:

    .woocommerce-Price-amount.amount {
        display: none !important;
    }

    And the short description with this code in the functions.php file:

    add_action('init', 'ava_woocommerce_mod');
    function ava_woocommerce_mod() {
    	add_action('woocommerce_template_single_excerpt', 'woocommerce_single_product_summary', 6);
    }
    

    Best regards,
    Ismael

    #677093

    Hello!
    Thank you for the codes. I was able to remove the price information with it.
    But I still have to add the “Product Short Description” below the Product Names on all category pages:
    http://www.domain.com/product-category/houses/
    I’ll send the login credentials below.
    Thank you,
    M

    • This reply was modified 8 years ago by Yigit.
    #678575

    Hey!

    Replace the code in the functions.php file with the following:

    add_action('init', 'ava_woocommerce_mod');
    function ava_woocommerce_mod() {
    	add_action('woocommerce_template_single_excerpt', 'woocommerce_single_product_summary', 6);
            add_action('woocommerce_shop_loop_item_title', 'woocommerce_single_product_summary', 12);
    }

    Best regards,
    Ismael

    #678591

    Hi,
    Thank you… but it didn’t work yet.
    It added the following text under the product titles:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘woocommerce_single_product_summary’ not found or invalid function name in /home/rdam0204/public_html/domain.com/wp-includes/plugin.php on line 524

    Please let me know.
    Thank you,
    M

    • This reply was modified 8 years ago by Yigit.
    #680083

    Hi,

    Please change the code to following one

    add_action( 'woocommerce_before_shop_loop_item_title', 'avia_shop_overview_extra_header_div_new', 20);
    function avia_shop_overview_extra_header_div_new()
    {
           echo the_excerpt();
    }

    Best regards,
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.