• Resolved stick31

    (@stick31)


    Hi !

    Thanks for this plugin and sorry for my bad english..

    Actually i want to open “More” in a popup. Is it possible ? Or i have to code this by myself ?

Viewing 1 replies (of 1 total)
  • Thread Starter stick31

    (@stick31)

    I’ve wrote my own function jQuery to do that :

    $("#productCartFullcube div.sp_td a").each(function(){ 
    	if($(this).html() == "more") // maybe a better way to do that
    	{ 
    		var lien = $(this).attr("href"); // I take the link
    
                    // Event click on a
                    $(this).click(function()
                    { 
                            // gif wait                         
                            $("#dialog").html("<div style='width: 100%;text-align:center'><img src='wp-content/uploads/2017/02/77443320c6509d6b500e288695ee953502ecbd6d_m.gif' /></div>");
                            // load the content in popup
    			$("#dialog").load( lien + " #spider_catalog_div", function() { jQuery("#back_to_spidercatalog_button").hide(); } );
                            $('#dialog').dialog("open");
                    });
    	} 
    });
Viewing 1 replies (of 1 total)
  • The topic ‘More info in popup’ is closed to new replies.