From: soufiane Date: Wed, 5 Feb 2025 11:04:10 +0000 (+0100) Subject: wait #7304 @8:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bc02bdfdc102247ddba9dc9e7d5ac95647bcc960;p=physioassist-wordpress.git wait #7304 @8:00 --- diff --git a/wp-content/themes/physioassist/resources/functions.php b/wp-content/themes/physioassist/resources/functions.php index 3f5f0d9a..a406ce29 100644 --- a/wp-content/themes/physioassist/resources/functions.php +++ b/wp-content/themes/physioassist/resources/functions.php @@ -128,3 +128,45 @@ function flux_posts() die(); } + +add_filter('wps_sfw_show_sync_interval', function() { + return ''; +}); + + +add_filter('wps_sfw_price_html', function(){ + global $product; + global $woocommerce; + $symbol = get_woocommerce_currency_symbol(); + $price = apply_filters('wps_rbpfw_price',$product->get_regular_price()); + $suffix = $product->get_price_suffix(); + return "$symbol$price$suffix"; +}); + +add_filter('wps_rbpfw_price', function($price){ + return $price; +}); + +add_filter('wps_sfw_show_one_time_subscription_price', function($price) { + return $price; +}); + +add_action('woocommerce_after_add_to_cart_quantity', function() { + global $product; + $product_id = $product->get_id(); + $wps_price_html = "
"; + $wps_price_html .= "

Frequency

"; + $wps_price_html .= '
'; + $wps_price_html .= '
'; + $wps_price_html .= '
'; + $wps_price_html .= '
'; + // translators: placeholder is price_discount_percentage. + $wps_price_html .= '
'; + $wps_price_html .= '
'; + + $wps_price_html .= "
"; + echo $wps_price_html; +});