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

Okay
  Public Ticket #2594651
Hide Composite from cart
Closed

Comments

  •  1
    Sven Möller Solis started the conversation

    Hello,

    I wanted to ask you if it was possible to hide the Composite producto (the main one) and just leave the Components on Cart, checkout and Emails.


    Best regards,


    Sven Moller

  •  767
    Janilyn replied

    Hi Sven,

    Thanks for contacting us here.

    FIY: This would be a very difficult thing to be achieved since the main product (Composite) is needed for buyers to add, remove or change quantity in cart page & mini-cart. Removing the main one might cause errors in the pricing & discounts as well. 

    Moreover, your settings for quantities might be broken, too. Specifically, When you have a composite product with fixed default quantities (Custom Quantity disabled) and fixed base price, when buyers add this to the cart, they won't be able to change the total quantity for the whole composite without the main product. It's also difficult to manage to make sure buyers choose the right units and the pricing/discounts are properly calculated with this. Using the main product will allow users to buy products with an acceptable combination that you have set. 

    You can see this image for more information: https://www.screencast.com/t/gH9xLZTt

    I'm afraid, this answer means a No for your question. It's impossible to hide the main product on mini-cart or cart page, checkout page or Order emails.

    Hope my explanations are clear enough.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1
    Sven Möller Solis replied

    I understand.

    1- I wanted to notify a possible problem. For example in the following product: https://www.chilevapo.cl/producto/vaporesso-gen-kit/ the required product is out of stock. So the Add to cart appears disabled. But if someone modifies the classes of the button and deletes the "wooco-disabled" class he will be able to actually add the Composite product to the cart and do the payment. This can be extremely problematic.

    Would you consider adding a verification on the 'add to cart' process?


    2- Is there a way if there is no required product in stock, to modifiy the Composite and leave it "Out of Stock"? And return the stock availability when required component is back in stock?


    Best regards!

  •  767
    Janilyn replied

    Hi Sven,

    Thank you for contacting WPClever Support Forum. We've just been back from the Tet Holiday vacation (9-17th Feb). So today, I am able to reach and process your ticket.

    Thanks for reporting this issue to us. I have added this to the backlog of our developers' dashboard. We will try to consider this soon and make adjustments in the coming updates. It's not possible for us to offer a specific date but we're trying our best. Lately, the workloads were too heavy so our working speed is a bit slow. 

    I will keep you posted when there is any response or news about this.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1
    Sven Möller Solis replied

    Dear Janilyn,


    I wanted to ask something else. Would it be possible to change the default image when "No thanks" option is selected. Currently it shows a "woocommerce-placeholder-246x246.png", but what if would like to just show another image by default (because that one is not very pretty at all)


    Thank you very much! :D

  •  767
    Janilyn replied

    Hi Sven,

    Thank you for reaching back.

    I have assigned one of our developers to help you with that. 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

  •  1,226
    Dustin replied

    Hi Sven,

    To change the "option none image", please add below code to current-theme (or child-theme) / functions.php

    add_filter( 'wooco_option_none_img_src', 'wooco_change_option_none_img', 99 );
    add_filter( 'wooco_option_none_img_full', 'wooco_change_option_none_img', 99 );
    function wooco_change_option_none_img( $img ) {
        return 'new-image-link.jpg';
    }

    Best regards,
    Dustin