Reply To: Section doesn’t populate, suspected plugin needs initialization

#10035147
Support
Keymaster

Hello,

You are right. Is needed initialize the masonry plugin.

Please try changing the getprices() function to:

function getprices(post){

    $.ajax({
        type: 'POST',
        url: 'getprices.php',
        data: {post: post},
        dataType: 'html', 
        success: function(response) {

        	$('#products-grid').isotope('destroy');
			$('#products-grid').removeData('__masonry');

			$('#products-grid').append(response);

			$(function() {
				$('[data-plugin-masonry]').each(function() {
					var $this = $(this),
						opts;

					var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
					if (pluginOptions)
						opts = pluginOptions;

					$this.themePluginMasonry(opts);
				});
			});

        }
    });
}

Please try that and let us know if you need further assistance.

Kind Regards,

Rodrigo.


If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads