[Resolved] A couple of feature suggestions/improvements and one bug?

Home Forums Support [Resolved] A couple of feature suggestions/improvements and one bug?

Home Forums Support A couple of feature suggestions/improvements and one bug?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #629035
    Paul

    Customizing > Layout > WooCommerce

    ‘Display short description’
    – Is it possible to have an option to limit the amount of text displayed, and an option to add/remove HTML from description (ie, just plain text).

    Customizing > Layout > Primary Navigation

    – Possible to add a ‘Sub-Menu Item Width’ and sub-menu items with long titles don’t display very well.
    – Alternatively, have a sub-menu which is auto-resizing to length of items.

    Other Issues

    Shortcodes do not seem to be working when using the ‘Sections’ feature. Namely I’m trying to use [featured_products] from WooCommerce to display featured products on my homepage in their own section.

    #629262
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    1. Great idea! Made a note of this.

    2. This is planned in GP 2.2.

    3. Can you try this shortcode instead?: https://docs.woocommerce.com/document/woocommerce-shortcodes/#scenario-2-featured-products

    Thank you!

    #634563
    Paul

    That’s great. Thanks Tom.

    Do you have a rough timescale for when the following will be implemented?

    Customizing > Layout > WooCommerce

    ‘Display short description’
    – Is it possible to have an option to limit the amount of text displayed, and an option to add/remove HTML from description (ie, just plain text).

    Cheers,
    Paul

    #634662
    Tom
    Lead Developer
    Lead Developer

    It probably won’t make it in until GPP 1.8.

    For now, you could try something like this:

    add_filter( 'woocommerce_short_description', function( $excerpt ) {
        if ( function_exists( 'is_product' ) && is_product() ) {
            return substr( $excerpt, 0, 10 ); // 10 being the limit
        }
    
        return $excerpt;
    } );
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.