Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ste9890

    (@ste9890)

    Hi there,

    Thanks for your response – I’m just revisiting this now.

    Does HTML Forms’s JavaScript success event contain the form data at all like CF7?

    I’ve logged the event to my console but can’t see the form data in there anywhere.

    If not, how can I populate this response property with the form submission data? Would I need to use AJAX?

    contactForm.addEventListener('hf-success', function(e) {

    window.dataLayer.push({
    "event" : "contact_form_submission",
    "formId" : contactForm.getAttribute('data-id'),
    "response" : e.detail.inputs // This is where CF7 stores the form data
    });

    });

    Any help much appreciated.

    Thanks

    Ste

    Thread Starter ste9890

    (@ste9890)

    Ah that’s amazing – I almost didn’t bother asking because I was sure it wouldn’t be possible!

    Big thanks for your help and the speedy response!

    Thread Starter ste9890

    (@ste9890)

    Hi @alexmigf,

    Thanks for your reply!

    Can you confirm which extension I’d need to purchase? You mentioned the Premium Templates extension but then linked to this ‘Professional‘ extension.

    Can I add the pickup details to packing slips using just the Premium Templates extension?

    Thanks!
    Stephen

    Thread Starter ste9890

    (@ste9890)

    Sorted it.

    I have a function which moves jQuery to the footer – it seems this was stopping plugins from include their JS files.

    ste9890

    (@ste9890)

    I know this thread is slightly old now but I am desperately struggling with the same issue. My host is Crazy Domains who provide no access to the MX Records.

    When you say, “delete the existing MX Record for the domain and then add 2 new ones; the zero and the 10 and get the values for each from your client”, do I get these values from the people who are hosting the emails? And what should they look like? An IP address or like a nameserver?

    Any help would be greatly appreciated!

    This doesn’t work for me. It just seems to be impossible to disable Fancybox when Photoswipe is in use on mobile. Despite the fact it is supposed to be achieved with a simple checkbox in the plugin settings!

    Can you provide any more help on this?

    Seriously is this issue ever going to get some support?

    It’s very frustrating.

    Thread Starter ste9890

    (@ste9890)

    Bump!

    Thread Starter ste9890

    (@ste9890)

    Thanks for your reply.

    I’m using the Starkers theme: https://starkerstheme.com/

    The code for the comments is in functions.php. The comments function is as follows:

    if ( ! function_exists( 'twentyten_comment' ) ) :
    
    function twentyten_comment( $comment, $args, $depth ) {
    	$GLOBALS['comment'] = $comment;
    	switch ( $comment->comment_type ) :
    		case '' :
    	?>
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    		<div id="comment-<?php comment_ID(); ?>">
    		<div class="comment-author vcard">
    			<?php echo get_avatar( $comment, 40 ); ?>
    			<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
    		</div><!-- .comment-author .vcard -->
    		<?php if ( $comment->comment_approved == '0' ) : ?>
    			<em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    			<br />
    		<?php endif; ?>
    
    		<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    			<?php
    				/* translators: 1: date, 2: time */
    				printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    			?>
    		</div><!-- .comment-meta .commentmetadata -->
    
    		<div class="comment-body"><?php comment_text(); ?></div>
    
    		<div class="reply">
    			<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    		</div><!-- .reply -->
    	</div><!-- #comment-##  -->
    
    	<?php
    			break;
    		case 'pingback'  :
    		case 'trackback' :
    	?>
    	<li class="post pingback">
    		<p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p>
    	<?php
    			break;
    	endswitch;
    }
    endif;

    You can see that the first two lines of the html are an li with id=”li-comment-<?php comment_ID(); and a div with id=”comment-<?php comment_ID(); ?>”.

    This all works correctly, apart from when you click reply to a particular post… the form header doesn’t change to ‘Leave a Reply to [correct username]’.

    Curiously, if I change the id of the div to “li-comment-<?php comment_ID(); ?>” it does change the form header appropriately. But then the form isn’t moved up to the correct comment!

Viewing 9 replies - 1 through 9 (of 9 total)