WOOCS - WooCommerce-Währungsumschalter

SUMO-Prämienpunkte - WooCommerce-Prämiensystem

Plugin-Link: https://codecanyon.net/item/sumo-reward-points-woocommerce-reward-system/7791451

  • im Ordner wp-content\plugins\rewardsystem\includes\class-fp-common-functions.php Code hinzufügen:
    if (class_exists('WOOCS') AND $Type != 'price') { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $Value = round($Value / $rate, 2); } } } $ConvertedValue = ($Type == 'Preis') ? (((float) $Value / $PointValue) * $RedeemPercent) : (((float) $Value * $PointValue) / $RedeemPercent); //Bsp:10 * 2 = 20 if (class_exists('WOOCS') AND $Type == 'price') { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $ConvertedValue = $ConvertedValue * $Rate; } } }
  • UND Code hinzufügen:
    if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $regulärer Preis = $regulärer Preis / $rate; } } }

  • Im Ordner wp-content\plugins\rewardsystem\includes\frontend\tab\modules\class-rs-fpredeeming-frontend.php Code hinzufügen:
    if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $aktuell = $WOOCS->aktuelle_Währung; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent]['rate']; $Angewandte_Punkte = $Angewandte_Punkte / $Rate; } } }