{"id":409,"date":"2020-02-28T16:07:20","date_gmt":"2020-02-28T16:07:20","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-private-sales-v3-x-developers-guide-and-api-reference"},"modified":"2021-07-27T03:56:41","modified_gmt":"2021-07-27T07:56:41","slug":"magento-private-sales-v3-x-developers-guide-and-api-reference","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide","title":{"rendered":"Magento Private Sales v3.x Developer Guide and API Reference"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"display-countdown-timer-for-a-product\">Display countdown timer for a product<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In order to display a countdown timer for any product in the <a href=\"\/magento-1-private-sales\">Magento Private Sales &amp; Flash Sales extension<\/a>, follow the instructions below.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-columns table-to-grid is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Changes to be made<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Website Frontend &#8211; Product Grid<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\">In order to display a countdown timer for products, say in the product list page &#8211; paste the following code into the file template:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">\/app\/design\/frontend\/THEME\/default\/template\/catalog\/product\/list.phtml<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Code Example<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is an example of the code to be used:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php if (!( ($_cc = Mage::registry(&#039;current_category&#039;))\n            &amp;&amp; $_cc-&gt;getData(&#039;privatesale_date_start&#039;))) { ?&gt;\n        &lt;?php echo $this-&gt;getLayout()-&gt;createBlock(&#039;privatesales\/event_product&#039;)\n            -&gt;setTemplate(&#039;privatesales\/event\/item.phtml&#039;)-&gt;setProduct($_product)-&gt;toHtml() ?&gt;\n        &lt;?php } ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Where &#8220;$_product&#8221; is a product object the countdown timer you need to set up for.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;ul class=&quot;products-list&lt;?php if($listClasses) echo $listClasses; ?&gt;&quot; id=&quot;products-list&quot;&gt;\n            &lt;?php foreach ($_productCollection as $_product): ?&gt;\n            &lt;li class=&quot;item&lt;?php if(++$_iterator == sizeof($_productCollection)): ?&gt;\n                last&lt;?php endif; ?&gt;&quot;&gt;\n                &lt;?php \/\/Product Image ?&gt;\n                &lt;div class=&quot;product-image-wrapper grid12-4 mobile-grid-half&quot;&gt;\n                    &lt;a href=&quot;&lt;?php echo $_product-&gt;getProductUrl() ?&gt;&quot;\n                        title=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel(\n                            $_product, &#039;small_image&#039;), null, true) ?&gt;&quot;\n                        class=&quot;product-image&quot; style=&quot;max-width:&lt;?php echo $imgWidth; ?&gt;px;&quot;&gt;\n                        &lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n                            src=&quot;&lt;?php echo $helpImg-&gt;getImg(\n                                $_product, $imgWidth, $imgHeight, &#039;small_image&#039;); ?&gt;&quot;\n                            alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel(\n                                $_product, &#039;small_image&#039;), null, true) ?&gt;&quot; \/&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The code should be replaced with the following:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;ul class=&quot;products-list&lt;?php if($listClasses) echo $listClasses; ?&gt;&quot; id=&quot;products-list&quot;&gt;\n            &lt;?php foreach ($_productCollection as $_product): ?&gt;\n            &lt;li class=&quot;item&lt;?php if(++$_iterator == sizeof($_productCollection)): ?&gt;\n                last&lt;?php endif; ?&gt;&quot;&gt;\n                &lt;?php \/\/Product Image ?&gt;\n                &lt;div class=&quot;product-image-wrapper grid12-4 mobile-grid-half&quot;&gt;\n                    &lt;?php if (!(($_cc = Mage::registry(&#039;current_category&#039;)) &amp;&amp;\n                        $_cc-&gt;getData(&#039;privatesale_date_start&#039;))) { ?&gt;\n                    &lt;?php echo $this-&gt;getLayout()-&gt;createBlock(&#039;privatesales\/event_product&#039;)\n                        -&gt;setTemplate(&#039;privatesales\/even\/item.phtml&#039;)\n                        -&gt;setProduct($_product)-&gt;toHtml() ?&gt;\n                    &lt;?php } ?&gt;\n                    &lt;a href=&quot;&lt;?php echo $_product-&gt;getProductUrl() ?&gt;&quot;\n                        title=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel(\n                            $_product, &#039;small_image&#039;), null, true) ?&gt;&quot;\n                        class=&quot;product-image&quot; style=&quot;max-width:&lt;?php echo $imgWidth; ?&gt;px;&quot;&gt;\n                        &lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n                            src=&quot;&lt;?php echo $helpImg-&gt;getImg(\n                                $_product, $imgWidth, $imgHeight, &#039;small_image&#039;\n                            ); ?&gt;&quot;\n                            alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel(\n                                $_product, &#039;small_image&#039;), null, true) ?&gt;&quot; \/&gt;<\/code><\/pre><\/div>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<ol class=\"wp-block-list\"><li><strong>Product countdown timer.<\/strong><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/docs\/wp-content\/uploads\/2020\/05\/Magento_private_sales_and_flash_sales_developers_guide.jpg\" alt=\"Magento private sales and flash sales developers guide.jpg\"\/><\/figure>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-private-sale-product-on-a-category-page\">Create Private Sale Product on a Category Page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the instructions below to create a private sale product on a Category Page.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Before you proceed, please make sure you are running Private Sale &amp; Flash Sale extension of at least 3.2.x version. Read <a title=\"Magento Private Sales and Flash Sales v3.x Updating\" href=\"\/docs\/magento-1-private-sales\/v3\/updating\n\">this guide<\/a> to learn how to update your extension version. <\/li><li>Check <a title=\"Magento Private Sales and Flash Sales v3.x Configuration\" href=\"\/docs\/magento-1-private-sales\/v3\/configuration\n#configuring-flash-sale-and-private-sale-event-for-a-product\">this guide<\/a> to configure the Private Sale event for the Product. <\/li><li>Follow the instructions below to create a private sale product on a Category Page for these popular themes: RWD, Porto, Ultimo.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"for-magento-rwd-theme\">For Magento RWD theme<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1. Open the file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">\/app\/design\/frontend\/rwd\/default\/template\/catalog\/product\/list.phtml<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">2. Make sure to check if you&#8217;re using the Grid mode or List mode on your Magento frontend. This will determine the location of the img tag you modify. Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n    src=&quot;&lt;?php echo $this-&gt;helper(&#039;catalog\/image&#039;)-&gt;init(\n        $_product, &#039;small_image&#039;)-&gt;resize($_imgSize); ?&gt;&quot;\n    alt=&quot;&lt;?php echo $this-&gt;stripTags(\n        $this-&gt;getImageLabel($_product, &#039;small_image&#039;), null, true) ?&gt;&quot; \/&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">3. This is the code to be added in order to make a private sale product on a Category Page:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php\n    $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n        -&gt;isProductPrivateEvent($_product);\n?&gt;\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">and:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php if($locked): ?&gt;\n        &lt;span class=&quot;pps-img-locktext&quot;&gt;\n            &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;\n        &lt;\/span&gt;\n    &lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">4. The resulting code will look as follows:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php\n    $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n        -&gt;isProductPrivateEvent($_product);\n?&gt;\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n&lt;?php endif; ?&gt;\n    &lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n        src=&quot;&lt;?php echo $this-&gt;helper(&#039;catalog\/image&#039;)-&gt;init(\n            $_product, &#039;small_image&#039;)-&gt;resize($_imgSize); ?&gt;&quot;\n        alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel(\n            $_product, &#039;small_image&#039;), null, true) ?&gt;&quot; \/&gt;\n&lt;?php if($locked): ?&gt;\n        &lt;span class=&quot;pps-img-locktext&quot;&gt;\n            &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;&lt;\/span&gt;\n    &lt;\/span&gt;\n &lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"for-magento-porto-theme\">For Magento Porto theme<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1. Open the following file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">\/app\/design\/frontend\/smartwave\/porto\/template\/catalog\/product\/list.phtml<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">2. Make sure to check if you&#8217;re using the Grid mode or List mode on your Magento frontend. This will determine the location of the img tag you modify. Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n    class=&quot;defaultImage&quot; src=&quot;&lt;?php if($aspect_ratio):?&gt;\n    &lt;?php echo $_image_helper-&gt;init($_product, &#039;small_image&#039;)-&gt;constrainOnly(FALSE)\n        -&gt;keepAspectRatio(TRUE)-&gt;keepFrame(FALSE)-&gt;resize($ratio_width);?&gt;\n    &lt;?php else: ?&gt;&lt;?php echo $_image_helper-&gt;init($_product, &#039;small_image&#039;)\n        -&gt;resize($ratio_width,$ratio_height); ?&gt;\n    &lt;?php endif; ?&gt;&quot; width=&quot;&lt;?php echo $ratio_width; ?&gt;&quot;\n&lt;?php if(!$aspect_ratio):?&gt;height=&quot;&lt;?php echo $ratio_height; ?&gt;&quot;&lt;?php endif; ?&gt;\n    alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#039;small_image&#039;), null, true) ?&gt;&quot;\/&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">3. This is the code to be added in order to make a private sale product on a Category Page:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php\n    $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n       -&gt;isProductPrivateEvent($_product);\n?&gt;\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">and:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php if($locked): ?&gt;\n        &lt;span class=&quot;pps-img-locktext&quot;&gt;\n            &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;\n        &lt;\/span&gt;\n    &lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">4. The resulting code will look as follows:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n        -&gt;isProductPrivateEvent($_product); ?&gt;\n&lt;?php if($locked): ?&gt;\n&lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n    &lt;?php endif; ?&gt;\n    &lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n        class=&quot;defaultImage&quot; src=&quot;&lt;?php if($aspect_ratio):?&gt;\n        &lt;?php echo $_image_helper-&gt;init($_product, &#039;small_image&#039;)-&gt;constrainOnly(FALSE)\n            -&gt;keepAspectRatio(TRUE)-&gt;keepFrame(FALSE)-&gt;resize($ratio_width);?&gt;\n&lt;?php else: ?&gt;\n    &lt;?php echo $_image_helper-&gt;init($_product, &#039;small_image&#039;)\n        -&gt;resize($ratio_width,$ratio_height); ?&gt;&lt;?php endif; ?&gt;&quot; width=&quot;&lt;?php echo $ratio_width; ?&gt;&quot;\n        &lt;?php if(!$aspect_ratio):?&gt;height=&quot;&lt;?php echo $ratio_height; ?&gt;&quot; &lt;?php endif; ?&gt;\n        alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#039;small_image&#039;),\n            null, true) ?&gt;&quot; \/&gt;\n\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-locktext&quot;&gt;\n        &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;&lt;\/span&gt;\n    &lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"for-magento-ultimo-theme\">For Magento Ultimo theme<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1. Open the following file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\" data-line=\"\">\/app\/design\/frontend\/ultimo\/default\/template\/catalog\/product\/list.phtml<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">2. Make sure to check if you&#8217;re using the Grid mode or List mode on your Magento frontend. This will determine the location of the img tag you modify. Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n    src=&quot;&lt;?php echo $helpImg-&gt;getImg($_product, $imgWidth, $imgHeight, &#039;small_image&#039;); ?&gt;&quot;\n    alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#039;small_image&#039;),\n        null, true); ?&gt;&quot; \/&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">3. This is the code to be added in order to make a private sale product on a Category Page:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n    -&gt;isProductPrivateEvent($_product); ?&gt;\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">and:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-locktext&quot;&gt;\n        &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;&lt;\/span&gt;\n    &lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">4. The resulting code will look as follows:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php $locked = Mage::getModel(&#039;privatesales\/privateEvent&#039;)\n    -&gt;isProductPrivateEvent($_product); ?&gt;\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-wrap-lock&quot;&gt;\n&lt;?php endif; ?&gt;\n\n&lt;img id=&quot;product-collection-image-&lt;?php echo $_product-&gt;getId(); ?&gt;&quot;\n     src=&quot;&lt;?php echo $helpImg-&gt;getImg($_product, $imgWidth, $imgHeight, &#039;small_image&#039;); ?&gt;&quot;\n     alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#039;small_image&#039;),\n         null, true); ?&gt;&quot; \/&gt;\n\n&lt;?php if($locked): ?&gt;\n    &lt;span class=&quot;pps-img-locktext&quot;&gt;\n        &lt;?php echo $this-&gt;__(&#039;Become a member to shop this event&#039;); ?&gt;&lt;\/span&gt;\n     &lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension, follow the instructions below. Changes to be made Website Frontend &#8211; Product Grid In order to display a countdown timer for products, say in the product list page &#8211; paste &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento Private Sales v3.x Developer Guide and 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":[207],"tags":[],"class_list":["post-409","post","type-post","status-publish","format-standard","hentry","category-magento-1-private-sales-v3","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Magento Private Sales v3.x Developer Guide and API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension,\" \/>\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-private-sales\/v3\/devguide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento Private Sales v3.x Developer Guide and API Reference - Plumrocket Documentation\" \/>\n<meta property=\"og:description\" content=\"Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:07:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-27T07:56: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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento Private Sales v3.x Developer Guide and API Reference - Plumrocket Documentation","description":"Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension,","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-private-sales\/v3\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento Private Sales v3.x Developer Guide and API Reference - Plumrocket Documentation","og_description":"Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension,","og_url":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:07:20+00:00","article_modified_time":"2021-07-27T07:56:41+00:00","author":"Plumrocket","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide"},"author":{"name":"Plumrocket","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"headline":"Magento Private Sales v3.x Developer Guide and API Reference","datePublished":"2020-02-28T16:07:20+00:00","dateModified":"2021-07-27T07:56:41+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide"},"wordCount":399,"commentCount":0,"articleSection":["v3"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide","url":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide","name":"Magento Private Sales v3.x Developer Guide and API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2020-02-28T16:07:20+00:00","dateModified":"2021-07-27T07:56:41+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Display countdown timer for a product In order to display a countdown timer for any product in the Magento Private Sales &amp; Flash Sales extension,","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento Extensions","item":"https:\/\/plumrocket.com\/magento-1-extensions"},{"@type":"ListItem","position":2,"name":"Magento Private Sales &amp; Flash Sales","item":"https:\/\/plumrocket.com\/magento-1-private-sales"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-1-private-sales\/v3"},{"@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\/409","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=409"}],"version-history":[{"count":1,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/409\/revisions"}],"predecessor-version":[{"id":22752,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/409\/revisions\/22752"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}