The modals of demo-shop in Niche Demos

4 replies · opened Jul 12, 2020

HhiumanJul 12, 2020

Hi,

I found threes problems from the demo-shop in Niche Demos.

  1. The subscription modal (with the text "Join Our Newsletter & Get”) pops up 2-3 times, when the browser loads the webpage at the very first time.

The subscription modal just shows up for around 1 second and then disappears.
After that, it shows up again (the 2nd time), and works as expected.
What should I do to stop this annoying behaviour of the subscription modal?

  1. The modal called by the quick view button only show up for a few seconds and disappear.

After that, the subscription modal will show up. It is just like the subscription modal trying to replace the modal called by the quick view button.
What should I do to make the modal called by the quick view button to work properly?

  1. One more question.

If I unzip the whole package, and view the page "demo-shop" (located in my pc) directly with my browser, I found that the modal called by the quick view button will just cannot show up. It is just keep loading.
I am not sure why it happens.

SSemicolon WebSTAFFJul 13, 2020

Hello,

Thanks for reporting these issue to us.

  1. We acknowledge this issue and we are already working on this. We will provide you with an updated file for this shortly.

  2. This is related to the previous issue.

  3. AJAX Functionalities do not work on Local File Systems due to Browser Restrictions. You will need to use a Localhost Server like XAMPP/MAMP or Online Web Servers.

Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFJul 13, 2020

Hello,

Thanks for your Continued Patience!

We are still actively working on this and will provide you with the solution as soon as we find a fix for this. We apologize about the delays.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFJul 14, 2020

Hello,

Thanks for your Patience!

Please consider replacing the existing execPlugin: function( element, settings ) Function Block in the js/functions.js File entirely with the following JS Code:


execPlugin: function( element, settings ) {
	window.scwEvents	= window.scwEvents || {};
	let pluginActive	= false;

	if( settings.trigger && !scwEvents[settings.trigger] ) {
		let pluginLinkingInterval = setInterval( function(){
			let pluginFnExec = Function( 'return ' + settings.pluginfn )();
			if( pluginFnExec ) {
				$(window).trigger( settings.trigger );
				scwEvents[settings.trigger] = true;
				clearInterval( pluginLinkingInterval );
			}
		}, 1000);
	} else {
		pluginActive = true;
	}

	if( settings.execfn ) {
		if( settings.trigger && !pluginActive ) {
			$(window).on( settings.trigger, function(){
				SEMICOLON.initialize.execFunc( settings.execfn, window, element );
			});
		} else {
			SEMICOLON.initialize.execFunc( settings.execfn, window, element );
		}
	}

	if( settings.class ) {
		$body.addClass( settings.class );
	}
},

This should fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

HhiumanJul 15, 2020

Thanks. It works now.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard