Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @alexliii !

    Hope you’re having a good day!

    At the moment Hustle doesn’t come with a trigger for popups on hover event (note that this will likely only work on desktops, not on devices with a touch screen).

    I’ve asked our Second Line Support team if they can provide a snippet that would trigger a popup also on hover. We’ll update you here as soon as we hear back from them.

    Best regards,
    Pawel

    Thread Starter alexliii

    (@alexliii)

    Oh, great thanks, and I understand the situation.

    If so, click a button event trigger still should be preferred, I mean that I am looking for an alternative way of “add to cart” event trigger, because I can not make it work, and please check at https://www.ads-software.com/support/topic/add-to-cart-trigger/

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @alexliii,

    You can try the following snippet as a workaround:

    <?php
    
    add_action( 'wp_footer', function(){
    	?>
    	<script type="text/javascript">
    	jQuery(document).ready(function($){
    		let hover_elem = $('.entry-title');
    		if( hover_elem.length ){
    			let _hustle = '.module_id_14';
    			if( $(_hustle).length ){
    				hover_elem.on('mouseenter', function(){
    					HUI.popupLoad($(_hustle));
    				});
    			}
    		}
    	});
    	</script>
    	<?php
    }, 9999 );

    You’ll have to update the elements class name in the following line:
    let hover_elem = $('.entry-title');

    Suppose the class name is “hello-world” the above line will change to:
    let hover_elem = $('.hello-world');

    You’ll also have to update your popup ID in the following line:
    let _hustle = '.module_id_14';

    If the popup ID Is 123 then the above line will be:
    let _hustle = '.module_id_123';

    I mean that I am looking for an alternative way of “add to cart” event trigger, because I can not make it work

    Without testing it out it’s tough to say whether the above code would help replace the workflow you have mentioned in the other ticket.

    It would be better to stick with any one of the codes, please do the test and follow up on which code snippet you are looking to move forward with so that we could assist further if needed.

    Kind Regards,
    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @alexliii,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Best Regards
    Nithin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hover element trigger?’ is closed to new replies.