• Resolved citarex

    (@citarex)


    Dear Support,

    Woocommerce product add-ons and extra options Version 4.3.1 is working properly and all newer version up tot he latest 4.9.3 have the problem mentioned below.

    With every order, we have a thermal printer that prints the order with all the correct information and options using Bizprint. Any newer version than 4.3.1 gives an incorect print where the option names are not generated. It then shows things like YWAPO-ADDON-77-0 where the number changes for different chosen option . So in the left column of the printout it shows the correct product name but the option’s name is weird like mentioned before. The actual chosen options by the customer are in the right column and those are correct. So we see for instance an order for a baguette meatball with the option the choose one or more sauces. The print will show the product correctly, the sauce options are printed like:

    YWAPO-ADDON-xx-x bbq-sauce
    YWAPO-ADDON-xx-x sweet chili

    etc, etc, etc.

    I use the sample template from Bizprint which is edited to meet customer’s wishes in layout.

    Since wordpress says that its now a vulnarability for the system and the fact that we are already on version 4.9.3 for this plugin, I think it’s time to address the issue.

    Hopefully you can fix this problem or guide me into solving it.

    Kind regards,
    Christian Rassin

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello there,

    Im facing same issue in the admin order email, it prints ywapo-addon-1-0: instead of the option text.

    https://i.postimg.cc/9M38mwx3/image.png

    Hopefully you can fix this problem or guide me into solving it.

    Kind regards,

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    Please add this code to the functions.php file of your active theme, at the end of the file. You can also find the file in Appearance > Editor > Theme Functions (functions.php)

    add_filter( 'yith_wapo_cart_item_meta_data_addon_key', 'yith_wapo_cart_item_meta_data_addon_key_custom', 10, 3 );function yith_wapo_cart_item_meta_data_addon_key_custom($key, $cart_item, $addon_name) {    return $addon_name;}add_filter( 'yith_wapo_cart_item_meta_data', 'yith_wapo_cart_item_meta_data_custom', 10, 4 );function yith_wapo_cart_item_meta_data_custom( $cart_item, $index, $key, $value ) {    if ( isset( $cart_item['yith_wapo_options'][$index][$key]['addon_id'] ) ) {        unset( $cart_item['yith_wapo_options'][$index][$key]['addon_id'] );    }    if ( isset( $cart_item['yith_wapo_options'][$index][$key]['option_id'] ) ) {        unset( $cart_item['yith_wapo_options'][$index][$key]['option_id'] );    }    if ( isset( $cart_item['yith_wapo_options'][$index][$key]['addon_value'] ) ) {        unset( $cart_item['yith_wapo_options'][$index][$key]['addon_value'] );    }    if ( isset( $cart_item['yith_wapo_options'][$index][$key]['display_label'] ) ) {        unset( $cart_item['yith_wapo_options'][$index][$key]['display_label'] );    }    if ( isset( $cart_item['yith_wapo_options'][$index][$key]['display_value'] ) ) {        unset( $cart_item['yith_wapo_options'][$index][$key]['display_value'] );    }    return $cart_item;}

    On future orders, it will display directly the addons.

    Please, try it and let me know.
    Best regards,

    Carlos R.

    Hello Carlos,

    This snippets works fine.

    Thank you.

    Plugin Support crodriguez1991

    (@crodriguez1991)

    You’re welcome
    Marking this topic as solved for the moment
    We are doing our best to improve our plugins. Our target is to develop and release the best free plugins for WooCommerce, but to achieve this we need your help. Please leave a good?review?to support us and help our growth ??

    Thread Starter citarex

    (@citarex)

    I tested the snippet as well together with the latest version of the plugin 4.11.0 and it worked. Although this is not a solution but a workaround, why does is not work without the snippet and why did it wok without the snippet? And why not alter the latest version to a newer subversion that includes this fix? We were thinking about buying the plugin for extra options but if the plugin has issues that weren’t there before, we are somewhat hesitant to go pro……

    Thread Starter citarex

    (@citarex)

    So we just got the last update 4.12.0 and the snippet to make it all work is not deployed in this version. Why not. If we can copy past it so can you, am I wrong?

    Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    In this new version, we haven’t introduced any change that might affect this code. We tested it in our site and we could see it working. However I consider is worth to mention that now this code is a workaround useful for plugins that use the API ( for example your printer plugin), for a definitive solution, your plugin requires an integration with ours. For emails of WooCommerce we already included some fixes to display them correctly.

    Please make sure you haven’t update your theme and lost the code we sent you.

    Have a great day.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.