Plugin link: https://codecanyon.net/item/wootour-woocommerce-travel-tour-and-appointment-booking/19404740
In file \plugins\woo-tour\inc\functions.php add next code:
1 2 3 4 5 6 | if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price = $WOOCS->woocs_exchange_value(floatval($price)); } } |
In file plugins\woo-tour\inc\class-woo-booking.php add next code:
1 2 3 4 5 6 7 8 9 10 11 12 13 | }else if (class_exists('WOOCS')){ global $WOOCS; $currency = $WOOCS->current_currency; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $def_curr = $WOOCS->default_currency; if ($cart_object->cart_contents[$key]['_crc_when_book']!=$def_curr) { $conversion_rate = $currencies[$cart_object->cart_contents[$key]['_crc_when_book']]['rate']; $pr_b = $pr_b / $conversion_rate; $cart_object->cart_contents[$key]['_crc_when_book'] = $def_curr; } } }; |
And to the same file:
1 2 3 4 5 | }else if(class_exists('WOOCS')){ global $WOOCS; $currency = $WOOCS->current_currency; $cart_object->cart_contents[$key]['_crc_when_book'] = $currency; } |
