• Resolved codebot5000

    (@codebot5000)


    What the hell does this mean? There are product descriptions setup via woocommerce. I thought this plugin was designed to integrate with woocommerce why would it not recognize the description field???

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    the plugin is designed to integrate with WooCommerce. If you experience the error of product description required, there might be two reasons:
    1. Some product of your store doesn’t have the description set, just check the error message and click into the link appear under “Product #<id>: bla bla bla”
    2. You may be affected by a bug I recently discovered and fixed for the next version of the plugin that isn’t be released yet. You may test it immediately by downloading the plugin from the link below and replace it with the one you have activated on your website. Here the link: https://sendanywhe.re/69QZCYF2 After have activated this new version, try to refresh again the feed and, if you have a content in all product of your store, you shouldn’t receive any error.

    Let me know, thanks.

    Thread Starter codebot5000

    (@codebot5000)

    Hey, the issue is that it does not recognize the short description field. It would be great to see an update that allows it to pull in the short description if long description is not present.

    Best regards,
    Jeff

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    thank you for the hint. I’ll add this placeholder in the next version of the plugin, I hope to release tomorrow or within this week.

    federicogmpertz

    (@federicogmpertz)

    Hi Anton!

    Is it posible to only extract the information of the short description and not the long one?

    I ask because I have the emotional or more appealing copy in the short description, meanwhile the logical and more boring one is on the long description.

    Since people looking at the products on the facebook business page store seems to prefer shorter copy, would be awesome that one could tell pixel caffeine to only take the short description and not the longer one to create the product catalog.

    Thanks for checking this out!

    Best,
    Federico.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    unfortunately, there isn’t any way actually, but I get this as a suggestion and I hope to will be able to add this as an option in the general settings, in order to choose what kind of description used for the feed ??

    Nevertheless, there is a way to achieve this with a short piece of code. Put this following code at the end of the functions.php file of your active theme, or in a child theme or better in a new little custom plugin:

    add_filter( 'aepc_feed_item_description', function( $description, $item ) {
    	$post = get_post( $item->get_id() );
    	if ( ! empty( $post->post_parent ) ) {
    		$post = get_post( $post->post_parent );
    	}
    
    	$product = wc_get_product($post);
    	$description = $product->get_short_description();
    
    	return $description;
    }, 10, 2 );

    This code will catch the short description instead of long one.
    Let me know if it works for you.

    Hi!

    Sorry for the late response, it worked perfectly. You’re the best! ??

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Cool! Thank you for confirming this ??
    You’re very welcome, I’m glad it helped!

    I mark this topic as resolved. Would you love leave us 5 stars review sharing your experience with Pixel Caffeine? It would be much appreciated! ??
    Thank you very much!

    Have a nice day!

    Sure thing! I left a nice review ??

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Thank you very much, it’s very appreciated! ??
    All the best!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘the field “description” in must not be empty.’ is closed to new replies.