ASTRA_Ext_WooCommerce_Markup::add_two_step_next_btn()

Display Two Step Nav Next Button.


Description


Return

(void)


Source

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

		public function add_two_step_next_btn() {

			$button_title     = astra_get_option( 'two-step-checkout-modern-button-text' );
			$button_sub_title = astra_get_option( 'two-step-checkout-modern-button-sub-text' );

			$two_step_next_btn_html = '';

			$two_step_next_btn_html .= '<div class="ast-embed-checkout-form-nav-btns">';

				$two_step_next_btn_html     .= '<a href="#ast-order-wrap" class="button ast-next-button" >';
					$two_step_next_btn_html .= '<span class="ast-next-button-content">';

			if ( '' != $button_title ) {
						$two_step_next_btn_html     .= '<span class="ast-next-button-icon-wrap">';
							$two_step_next_btn_html .= '<span class="dashicons dashicons-arrow-right-alt"></span>';
							$two_step_next_btn_html .= '<span class="ast-button-text">' . esc_html( $button_title ) . '</span>';
						$two_step_next_btn_html     .= '</span>';
			}

			if ( '' != $button_sub_title ) {
						$two_step_next_btn_html .= '<span class="ast-button-sub-text">' . esc_html( $button_sub_title ) . '</span>';
			}
					$two_step_next_btn_html .= '</span>';
				$two_step_next_btn_html     .= '</a>';

			$two_step_next_btn_html .= '</div>';

			echo $two_step_next_btn_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		}

Changelog

Changelog
Version Description
3.9.0 Introduced.

User Contributed Notes

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