-
AuthorPosts
-
August 21, 2016 at 2:06 am #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!
MAugust 21, 2016 at 11:29 am #675291Hey 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,
VinayAugust 21, 2016 at 11:51 am #675295Thanks 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.
August 22, 2016 at 11:18 pm #676075Hello,
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,
MAugust 24, 2016 at 4:29 am #676732Hi,
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,
IsmaelAugust 24, 2016 at 4:21 pm #677093Hello!
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.
August 28, 2016 at 7:05 am #678575Hey!
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,
IsmaelAugust 28, 2016 at 8:25 am #678591Hi,
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.
August 31, 2016 at 4:16 pm #680083Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.