Okay
  Public Ticket #1420023
Long title in cart
Closed

Comments

  • phonylux started the conversation

    Hi,

    I have an issue when adding to cart a long title product (on 2 lines), it does not appear as the other products (see attachment 1)

    Also I would like to know how to specify a variation of the product appears under the name in cart page like the demo (see attachment 2) because all my variations appears in title which make it longer.

    And last, is it possible to also add the unit price under the title instead of another column in cart page like the demo for Aurum cart page (see attachment 3)

    Thanks again,

    Best

  •  1,560
    Laborator replied

    Hi there,

    Can you please send us your site URL first, so we can investigate your site and then get back to you with possible solution.

    P.S. make sure you've disabled the Maintenance/Coming Soon mode

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1,560
    Laborator replied

    Hi again,

    1. Adding the following CSS to Custom CSS is the only thing I can do to help you: 

    .header-cart .cart-items .cart-item .details .title {
        width: 175px;
        white-space: nowrap;
        overflow: hidden;
    }

    A better fix for this is, if you make your titles shorter and not so long.

    2. That will automatically show when you have variable products, in this case when added to cart the item has been added in the XXL version.

    3. Unfortunately not, the Oxygen cart is built upon a table while the Aurum cart page is built on a different layout.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • phonylux replied

    Thank you, I will try to shorter titles, however concerning point 2, I think that's more than just setting variable product because all my products are variable ones and I can't see the attributes under the title in my cart as shown in the screenshot.

    Moreover, in the demo, there are 2 attributes for the product, color and size, but ONLY the size attribute is shown under the title in cart, I think it may be a setting but I can't find it ..

    example product : http://demo.oxygentheme.com/product/frame-cardigan/?attribute_color=Red&attribute_size=M

    Only the attribute size is shown under title.

  •  1,560
    Laborator replied

    Hi phonylux,

    Can you please change the theme to any other theme to see if this happens also in the other theme, if it does then it is how WooCommerce works and not a problem of the theme, I checked our other themes also and it shows the same.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • phonylux replied

    I changed different themes but it was the same so I do not think it is a theme issue, you are right. I found some issues about this on woocommerce github and the solution I found is adding in child theme file functions.php this line to force attributes below product title :

    add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_false' );
    


    PS: I still do not understand how you got only one of the attribute below title in your demo

  •  1,560
    Laborator replied

    Hi phonylux,

    We will have a look about this and talk with the team if we can add it as a theme feature, even though I don't think it will be in our list since we have other priorities about the theme, anyway thank you for suggesting the code.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group