{"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 class=\"wp-block-heading\" id=\"h-display-popup-manually\">Display Popup Manually<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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 decoding=\"async\" src=\"\/docs\/wp-content\/uploads\/2020\/12\/Popup_Login_Display_Manually1.png\" alt=\"\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><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 class=\"wp-block-paragraph\"><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\" data-line=\"\">&lt;a href=&quot;\/seespecialevent&quot;  onclick=&quot;return showPopupLogin(this)&quot;&gt;See Special Event&lt;\/a&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><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 class=\"wp-block-paragraph\"><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\" data-line=\"\">&lt;a href=&quot;\/seespecialevent&quot;  onclick=&quot;return showPopupLogin(this)&quot;&gt;See Special Event&lt;\/a&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-disable-popup-manually\">Disable Popup Manually<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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\" data-line=\"\">&lt;update handle=&quot;popuplogin_remove&quot; \/&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><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\" data-line=\"\">&lt;catalog_category_default translate=&quot;label&quot;&gt;\n     &lt;update handle=&quot;popuplogin_remove&quot; \/&gt;\n     ....\n    &lt;\/catalog_category_default&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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\" data-line=\"\">&lt;a href=&quot;\/about\/&quot;&gt;About Us&lt;\/a&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">making the following changes:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">&lt;a href=&quot;\/about\/&quot; data-popup=&quot;yes&quot;&gt;About Us&lt;\/a&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">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\" data-line=\"\">$this-&gt;loadLayout()-&gt;getLayout()-&gt;getBlock(&#039;popup.login&#039;)-&gt;setMode(4);<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><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\" data-line=\"\">public function indexAction()\n    {\n     $this-&gt;loadLayout();\n     $this-&gt;getLayout()-&gt;getBlock(&#039;contactForm&#039;)-&gt;setFormAction( Mage::getUrl(&#039;*\/*\/post&#039;) );\n     \n     $this-&gt;getLayout()-&gt;getBlock(&#039;popup.login&#039;)-&gt;setMode(4);}} \/\/ add this line to set popup login to manual mode on this page\n     \n     $this-&gt;_initLayoutMessages(&#039;customer\/session&#039;);\n     $this-&gt;_initLayoutMessages(&#039;catalog\/session&#039;);\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=&quot;\/seespecialevent&quot; onclick=&quot;return showPopupLogin(this)&quot;&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,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[276],"tags":[],"class_list":["post-384","post","type-post","status-publish","format-standard","hentry","category-magento-1-popup-login-v1","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\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 name=\"author\" content=\"Plumrocket\" \/>\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","author":"Plumrocket","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide"},"author":{"name":"Plumrocket","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"headline":"Magento 1 Popup Login v1.x Developer Guide &#038; API Reference","datePublished":"2020-02-28T16:06:40+00:00","dateModified":"2021-09-24T13:08:41+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide"},"wordCount":248,"commentCount":0,"articleSection":["v1"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-popup-login\/v1\/devguide","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"},"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":"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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?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","targetHints":{"allow":["GET"]}}],"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}]}}