PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

fox integration with both translatepress, shoptimizer (theme) and wp-rocket

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

Hello Ole

Great! Welcome;)

Hi Again Pablo

Have not seen the site (staging.tibladin.dk and also the live site tibladin.dk) used woocommerce product add-on

and tried add this code to site, If I do this the site fail. I have also an answer I we add code like this to the plugin, what happen when plugin come with an update?

The Plugin URL: https://woocommerce.com/products/product-add-ons/

  • In file wp-content\plugins\woocommerce-product-addons\includes\class-wc-product-addons-cart.php add next code:
    if ($addon AND 'percentage_based' !== $addon AND class_exists('WOOCS')) {
        global $WOOCS;
        $currrent = $WOOCS->current_currency;
        if ($currrent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
            $currencies = $WOOCS->get_currencies();
            $rate = $currencies;
            $addon = $addon * $rate;
        }
    }
    

    Also in the same file add code:

    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currrent = $WOOCS->current_currency;
        if ($currrent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
            $currencies = $WOOCS->get_currencies();
            $rate = $currencies;
            $addon_price = $addon_price * $rate;
        }
    }

Hello

Perhaps you inserted this code incorrectly or this code does not fit in the new version of a third-party plugin. We can add this plugin to the adaptation queue - https://currency-switcher.com/woocs-labs -  and check it

what happen when plugin come with an update? - After every update of a third-party plugin you should add this code

Hi Pablo

I think I placed it the wrong place , i couldn't find the line and code like your example in https://currency-switcher.com/woocs-labs for woocommerce product addon, my newest version dont look like your example. Please review your code and tell me where to place the changes, thanks

regards

Ole

as I wrote earlier in this case you need to create a new adaptation request - https://currency-switcher.com/woocs-labs

12