• Resolved xitromedia

    (@xitromedia)


    Hello

    When having a product bundle with a variable product (with discount, unit price and price labels), the legal info is not applied correctly. There seem to be two bugs:

    1. Price Labels:
    There are always the labels of the parent product applied to the prices but not the more specific of the bundled products.

    2. Legal Info Text
    Is not applied as it should. The output in my test case is:
    ——————————
    Old Price: 10,00 € 1,00 €
    Unit Price: 0,10 €
    New Price: 1,00 €
    Unit Price: 0,10 € 0,01 €
    ——————————
    But it should be:
    ——————————
    Old Price: 10,00 €
    New Price: 1,00 €
    Unit Price: 0,10 € 0,01 € / L
    ——————————

    As i could investigate the problem is as follows:
    The unit price is added to the price html before the labels are applied. The unit price contains a DEL- and an INS-tag, and when added the price html contains now two DEL and INS tags. When the price labels are applied now by abstract-wc-gdz-product.php -> add_labels_to_price_html(), that method searches for the beginning and end of each tag and places the labels in front. This method works fine if there is only one of each tag in the price html but not if there are two of them, because then it places the text in front of all the html between the starting price tag and ending unit price tag.

    Thanks for solving in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi there,

    could you please provide screenshots of the relevant product (bundle parent + included variable product) configuration? I’ll need to be able to reproduce that locally.

    Cheers

    Thread Starter xitromedia

    (@xitromedia)

    I can’t upload a screenshot here. Is my description not concrete enough? It should be very easy to reproduce the use case also without screenshot:

    1. create product bundle
    2. create a variable product (with discount, unit price and price labels)
    3. add variable product or variation of that product to bundle (with “priced individually”=on)
    4. have a look at the frontend

    Plugin Author vendidero

    (@vendidero)

    You can link to a screenshot (e.g. via https://imgbb.com/). The thing is that the product bundle plugin offers a lot of options – so does Woo. Please do also add a screenshot of your frontend.

    By default (as what my tests have brought up) there is not unit price being shown for individual priced variable products included in bundles. That is not yet supported. The price labels show up correctly within my tests. Please disable all plugins but Woo, Germanized and the bundle plugin and activate a default theme for testing purposes.

    Cheers

    Thread Starter xitromedia

    (@xitromedia)

    All disabled but wooc, wooc product bundles and germanized. Theme is default storefront.

    In my config the unit price is shown for variants in a bundle, so it seems to be supported by your plugin.

    And here the screenshots:

    https://ibb.co/DGdtR79
    https://ibb.co/M85MLBZ
    https://ibb.co/Wx3Df64
    https://ibb.co/Fw9G5m6
    https://ibb.co/nf0rwRz
    https://ibb.co/v11Cm1y

    BTW: Does it make sense to display the unit price twice for the bundle product, one time at the top and a second time below the bundled items section?

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    thanks for providing the screenshots. Seems to be a special case in combination with the optional + variation filter options for the bundled item. We won’t be able to attach the right price labels as the price HTML next to the checkbox seems to be constructed from the variable parent product – that’s why the context is not right and the actual price labels from the child are not available.

    Currently there is no nice way to add the shopmarks in case the variations are filtered to a single variation only. There are no hooks available to properly place shopmarks here. We will need to contact the WooCommerce support and ask for new hooks to be introduced here.

    We’ve furthermore added quite some improvements while handling variations/variable products for bundles here: https://github.com/vendidero/woocommerce-germanized/commit/0a57af99da2f8d9d32a09ecde98a24892bd80d47

    Cheers

    Thread Starter xitromedia

    (@xitromedia)

    Hi

    When you get in contact with woocommerce, i have one more suggestion for an improvement:

    If the bundled product is optional, there is a checkbox which must be checked to add the product to the bundle/cart. The decision whether a customer adds such a product or not will mostly base on the detailed infos about the product. But all these detailed infos are only displayed after the checkbox has been checked. I think it would be better if the customer can read all the product details without the requirement of first checking the checkbox that is yet in fact the decition to buy the product.

    Or alternatively there could be the checkbox and one more button with label “Details” which opens the details.

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    I guess you may need to report that yourself as this is a UI/UX feature the bundles product should solve itself and is not related to Germanized.

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin “Woocommerce Product Bundles” compatibility’ is closed to new replies.