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

    Hi

    My shop offers products of the type “variable”.

    I would like to hide the name of the “attribute” (but not the variable) of these products in the shopping cart and in the checkout page.

    Example:

    An item comes in different colors (blue, green, red)

    Attribute = Color

    Variables = Blue / Green / Red

    If a user selects the blue item, I want the shopping cart and the checkout page to show “Blue” only, instead of “Color: Blue”.

    Is there a way to achieve this?

    Thanks

    Bruno

    #102681

    Hi Bruno,

    Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    #top.woocommerce-cart td.product-name dl.variation dt {
    display: none;
    }
    #top.woocommerce-checkout td.product-name dl.variation dt {
    display: none;
    }

    This will remove them from both the cart and the checkout screen.

    Regards,

    Devin

    #102682

    Hi Devin

    yes, it works.

    Thanks,

    Bruno

    #102683

    Great :)

    Glad we could help. Let us know if you have any other issues or questions.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Hide name of a variable product's attribute on the cart and the checkout page’ is closed to new replies.