ASTRA_Ext_WooCommerce_Markup::add_updated_cart_price( string $fragments )

Update cart total on button and order review mobile sction.


Description


Parameters

$fragments

(string) (Required) shipping message.


Return

(array) $fragments updated Woo fragments.


Source

File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php

		public function add_updated_cart_price( $fragments ) {

			if ( ! defined( 'CARTFLOWS_VER' ) && is_checkout() && ! is_wc_endpoint_url( 'order-received' ) && 'modern' === astra_get_option( 'checkout-layout-type' ) ) {

				$fragments['.ast-order-review-total'] = "<div class='ast-order-review-total'>" . WC()->cart->get_total() . '</div>';

			}
			return $fragments;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.