{"id":384,"date":"2020-02-28T16:06:40","date_gmt":"2020-02-28T16:06:40","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-popup-login-v1-x-developers-guide-and-api-reference"},"modified":"2021-09-24T09:08:41","modified_gmt":"2021-09-24T13:08:41","slug":"magento-popup-login-v1-x-developers-guide-and-api-reference","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide","title":{"rendered":"Magento 1 Popup Login v1.x Developer Guide &#038; API Reference"},"content":{"rendered":"\n<h2 id=\"h-display-popup-manually\">Display Popup Manually<\/h2>\n\n\n\n<p>In order to configure the <a href=\"\/magento-1-popup-login\">Popup Login Extension<\/a> for a particular page element you will have to select <strong>Manually<\/strong> for the option <strong>Display Popup<\/strong> in the extension as shown below: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png\" alt=\"\"><\/figure>\n\n\n\n<p><strong>Method 1:<\/strong>&nbsp;You will also have to add a class&nbsp;<strong>&#8220;show_popup_login&#8221;<\/strong>&nbsp;to the object to trigger the popup login.<\/p>\n\n\n\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;a href=\"\/seespecialevent\"  onclick=\"return showPopupLogin(this)\"&gt;See Special Event&lt;\/a&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<p><strong>Method 2:<\/strong>&nbsp;You will also have to write an event&nbsp;<strong>onclick=&#8221;return showPopupLogin(this)&#8221;<\/strong>&nbsp;in the code for the chosen page element.<\/p>\n\n\n\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;a href=\"\/seespecialevent\"  onclick=\"return showPopupLogin(this)\"&gt;See Special Event&lt;\/a&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<h2 id=\"h-disable-popup-manually\">Disable Popup Manually<\/h2>\n\n\n\n<p>If you want to disable Popup for some pages, you will have to add the following code to the appropriate section of xml file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;update handle=\"popuplogin_remove\" \/><\/code><\/pre><\/div>\n\n\n\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;catalog_category_default translate=\"label\"&gt;\n     &lt;update handle=\"popuplogin_remove\" \/&gt;\n     ....\n    &lt;\/catalog_category_default&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<p>If you want to disable Popup only for a particular element on the page, you will have to add the parameter data-popup=&#8221;yes&#8221; to the selected element. For instance, if you want to disable Pop up for the &#8220;About Us&#8221; link, you will have to edit the code.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;a href=\"\/about\/\">About Us&lt;\/a><\/code><\/pre><\/div>\n\n\n\n<p>making the following changes:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;a href=\"\/about\/\" data-popup=\"yes\">About Us&lt;\/a><\/code><\/pre><\/div>\n\n\n\n<p>You can also deactivate Popup for a particular controller or block (without disabling it completely), if you set the &#8220;Manually&#8221; mode for it. As a result, popup will not be displayed on the page. It is very convenient if you want to hide popup due to certain conditions, input parameters and session values.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">$this->loadLayout()->getLayout()->getBlock('popup.login')->setMode(4);<\/code><\/pre><\/div>\n\n\n\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <p>If you want to hide popup on the &#8220;Contact us&#8221; page, add the following code in the page template:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">public function indexAction()\n    {\n     $this-&gt;loadLayout();\n     $this-&gt;getLayout()-&gt;getBlock('contactForm')-&gt;setFormAction( Mage::getUrl('*\/*\/post') );\n     \n     $this-&gt;getLayout()-&gt;getBlock('popup.login')-&gt;setMode(4);}} \/\/ add this line to set popup login to manual mode on this page\n     \n     $this-&gt;_initLayoutMessages('customer\/session');\n     $this-&gt;_initLayoutMessages('catalog\/session');\n     $this-&gt;renderLayout();\n    }<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option Display Popup in the extension as shown below: Method 1:&nbsp;You will also have to add a class&nbsp;&#8220;show_popup_login&#8221;&nbsp;to the object to trigger the popup login. Code Example &lt;a href=&#8221;\/seespecialevent&#8221; onclick=&#8221;return showPopupLogin(this)&#8221;&gt;See &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 1 Popup Login v1.x Developer Guide &#038; API Reference&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[276],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento Popup Login v1.x Developer Guide &amp; API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 1 Popup Login v1.x Developer Guide &amp; API Reference\" \/>\n<meta property=\"og:description\" content=\"Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:06:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-24T13:08:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Magento Popup Login v1.x Developer Guide & API Reference - Plumrocket Documentation","description":"Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento 1 Popup Login v1.x Developer Guide & API Reference","og_description":"Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option","og_url":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:06:40+00:00","article_modified_time":"2021-09-24T13:08:41+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png","contentUrl":"\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide","name":"Magento 1 Popup Login v1.x Developer Guide & API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#primaryimage"},"datePublished":"2020-02-28T16:06:40+00:00","dateModified":"2021-09-24T13:08:41+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Display Popup Manually In order to configure the Popup Login Extension for a particular page element you will have to select Manually for the option","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento Extensions","item":"https:\/\/plumrocket.com\/magento-1-extensions"},{"@type":"ListItem","position":2,"name":"Magento Popup Login","item":"https:\/\/plumrocket.com\/magento-1-popup-login"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1"},{"@type":"ListItem","position":5,"name":"Developer Guide"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/384"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=384"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":24436,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/384\/revisions\/24436"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}