Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2990265
Hiding price and product links of child items in cart
Closed

Comments

  • Erica Thumma started the conversation

    I'd like to hide the prices of the child products of a composite product. It looks as though they currently have 50% opacity. Is there CSS I can add to either change the opacity to 0% or the color to white?

    Also, how can I remove the product links from the child products of a composite product? Some of the products are not available for retails sale (gift box and crinkle paper) but the link allows buyers to click through to the product and add it to the cart. They buyer also incorrectly assumes that they can change this particular line item of the composite product by clicking the link, which is not true. Is there php code or CSS that I can add to my child theme to hide these particular links?

    Thank you!

  •  767
    Janilyn replied

    Hi Erica,

    Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.

    For your information: You can unlink those products from the main composite in the plugin setting under WPClever >> Composite Products >.choose No for Link to individual products option.

    You can read more about that here: https://doc.wpclever.net/wooco/faqs/question-12-unlink-individual-products/

    About hiding the prices, may I have a link to your published product for checking? 

    We need to check the frontend in order to provide the proper CSS code for your needs.

    After receiving your information, I'll proceed to the next step. 

    Best regards. 

    Janilyn T. - WPClever Support Agent

  • Erica Thumma replied

    Hi - Sorry for the delay! I responded to the email. 

    I had "no" selected for "Link to individual product"(see attached). This works in the product itself but not in the cart. 

    Here are the links to the two composite products.

    https://www.cooketavernsoups.com/product/you-choose-3-soup-gift-box/

    https://www.cooketavernsoups.com/product/you-choose-6-soup-gift-box/

    I tried changing "Hide component product on cart & checkout page" from "No" to "Yes, but show component product names under the composite". This removes the link but with 5-8 products in each composite, it makes it hard to read - both for the customer and for staff fulfilling the order (see attached). If the component products could be listed rather than in paragraph form, this could work. 

    Thank you!

  •  767
    Janilyn replied

    Hi Erica,

    Thank you for the feedback.

    I will assign one of our developers to help you with separating the component listing into paragraphs in cart, checkout as well as order details. He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  • Erica Thumma replied

    Hi Janilyn - I appreciate that you'll have someone get back to me. Thank you! I'll watch for their email...

  •  1,226
    Dustin replied

    Hi Erica,

    Please add the below custom code (How to add custom code?)

    add_filter( 'wooco_order_component_product_names', 'your_wooco_order_component_product_names', 99, 1 );
    function your_wooco_order_component_product_names( $names ) {
        return '<ul>' . str_replace( '; ', '', html_entity_decode( $names ) ) . '</ul>';
    }
    add_filter( 'wooco_order_component_product_name', 'your_wooco_order_component_product_name', 99, 1 );
    function your_wooco_order_component_product_name( $name ) {
        return '<li>' . $name . '</li>';
    }

    Then the component product names will be listed as one per line.

    Best regards,
    Dustin