• Hello,

    I am new, so apologies for any mistakes with the posting etiquette. I am using “Product Add-ons & Extra Options” and I want to configure it somehow that it only takes into account the extra option price when calculating the full price and doesn’t add the product price. Right now, it adds the extra option price to the standard set product price(i know this is normal). In my case, this is not ok because It’s basically a pre-order food menu selector for each day of the week. (for example Monday and Friday is selected, so the price should be 2x product price because it is basically 2 menus but right now it is 3x product price because it takes into account the 2 extra options + the standard product price)

    Scenario: The chef writes down the menu 1 week in advance, and it is advertised somewhere on the web (social media, external websites etc.) On the restaurant website, clients have the option to pre-order for any day of the next week and get it delivered or pick it up in any day they selected from the extra add-on options.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    In this case, you should have to set the product price as free.

    Try it and let us know.

    Have a great day!

    Thread Starter mk2pronat

    (@markering2)

    Thank you for the reply. This solution was so obvious to try out that I missed it!:) It solves the problem of the added price, but now the product has 0.0 price everywhere else where it appears. Perhaps I went the wrong way to achieve what I needed. If you have any another solution for this matter, I’m happy to try it out, but in the meantime I went on a different route to achieve this. I used the default commerce settings and made a group product than made products for every day of the week and linked them to the main product. The style is not the best, but it works.

    Once again, if there is any other solution for this plugin, for people that might need it in the future than write it out, if not, we can consider this topic closed.

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    Try to add this custom code in the functions.php file of your active theme:

    if ( ! function_exists( 'yith_wapo_free_price' ) ) {
        function yith_wapo_free_price( $price, $product ){
    
            $product_price = $product->get_price();
    
            if ( '' === $product_price || 0 == $product_price ) {
                $price = '<span class="woocommerce-Price-amount amount"></span>';
            }
    
            return $price;
    
        }
    
        add_filter( 'woocommerce_get_price_html', 'yith_wapo_free_price', 99, 2 );
    }

    Let us know if that did the trick.

    Have a nice day!

    • This reply was modified 1 year, 3 months ago by Iván Sosa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product Add-ons & Extra Options configuration’ is closed to new replies.