HEX
Server: Apache
System: Linux vpshost0528.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: novoprovisorio2 (10002)
PHP: 7.4.11
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: /home/storage/f/44/55/novoprovisorio2/public_html/wp-content/themes/thegem/js/thegem-checkout.js
function update_price_order_code(elem) {
	if ( jQuery( elem ).data( 'order_button_text' ) ) {
		jQuery( '#place_order' ).html( jQuery( elem ).data( 'order_button_text' ) );
	} else {
		jQuery( '#place_order' ).html( jQuery( '#place_order' ).data( 'value' ) );
	}
}

(function($) {
	$(function() {
		$('.checkout-as-guest button').click(function() {
			$('.checkout-steps .checkout-step[data-tab-id="checkout-billing"]').click();
			$('input#createaccount').prop('checked', false).trigger('change');
		});

		$('.woocommerce .create-account-popup').click(function(event) {
			if($(event.target).is('a')) return ;
			event.preventDefault();
			return false;
		});

		$('.woocommerce .checkout-create-account-button button').click(function(event) {
			$('.checkout-steps .checkout-step[data-tab-id="checkout-billing"]').click();
			$('.woocommerce .create-account-popup').hide();
			event.preventDefault();
			return false;
		});

		$('.woocommerce .create-account-inner input').keypress(function (e) {
			if (e.which == 13) {
				event.preventDefault();
				return false;
			}
		});

		$('.checkout-create-account button').click(function(event) {
			$('.woocommerce .create-account-popup').css('opacity', '0').show().animate({
				opacity: 1
			}, 400);
			$('body')
				.unbind('click.checkout-create-account')
				.bind('click.checkout-create-account', function() {
					$('.woocommerce .create-account-popup').animate({
						opacity: 0
					}, 400, function() {
						$(this).hide();
					});
				});
			event.preventDefault();
			return false;
		});

		$('.checkout-show-login-popup').click(function() {
			$.fancybox.open({
				src  : '#checkout-login-popup',
				type : 'inline',
				touch: {
					vertical: false,
					momentum: false
				}
			});
			return false;
		});

		function init_checkout_navigation() {
			$('.checkout-navigation-buttons .checkout-prev-step').unbind('click').click(function() {
				var $active = $('.checkout-steps .checkout-step.active');
				if ($active.length == 0) {
					$('.checkout-steps .checkout-step:first').click();
				}

				$active.prev('.checkout-step').click();
			});

			$('.checkout-navigation-buttons .checkout-next-step').unbind('click').click(function() {
				var $active = $('.checkout-steps .checkout-step.active');
				if ($active.length == 0) {
					$('.checkout-steps .checkout-step:first').click();
				}

				$active.next('.checkout-step').click();
			});
		}
		window.init_checkout_navigation = init_checkout_navigation;
		init_checkout_navigation();
	});
})(jQuery);