{"id":262,"date":"2020-02-28T16:02:30","date_gmt":"2020-02-28T16:02:30","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-cart-reservation-v1-x-developers-guide-and-api-reference"},"modified":"2021-09-24T08:28:17","modified_gmt":"2021-09-24T12:28:17","slug":"magento-1-cart-reservation-v1-developer-guide","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide","title":{"rendered":"Magento 1 Cart Reservation v1.x Developer Guide &#038; API Reference"},"content":{"rendered":"\n<p>In this developer documentation for the&nbsp;<a href=\"\/magento-1-cart-reservation\">Magento Cart Reservation Extension<\/a>, you will find step-by-step instructions, sample code, and API references to fully customize your plugin.<\/p>\n\n\n\n<h2 id=\"h-configuring-independent-elements\">Configuring Independent Elements<\/h2>\n\n\n\n<p>Sometimes you may need to change default module messages concerning reserved items. Below you will learn how to do it.<\/p>\n\n\n\n<p>The texts <strong>&#8220;This item is no longer reserved.&#8221;<\/strong>, <strong>&#8220;The cart is no longer reserved.&#8221;<\/strong>,  <strong>&#8220;The cart is reserved forever&#8221;<\/strong> can be changed in the following file.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">\/web\/app\/locale\/en_US\/Plumrocket_Cartreservation.csv<\/code><\/pre><\/div>\n\n\n\n<p>As you edit the text, you should enter the existing word in inverted commas, then put a comma and enter the new word or sentence in inverted commas too. For example:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">\"This item is no longer reserved.\",\"Oops.. Your item is no longer reserved.\"<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\"><strong>Important Information:<\/strong><\/p>\n\n\n\n<p>Don&#8217;t forget to clear the cache after you edit the text. (To learn how to clear the cache read <a href=\"\/docs\/magento-1-cart-reservation\/v1\/installation\n\">The Installation section<\/a> of the module)<\/p>\n<\/div><\/div>\n\n\n\n<p>Our Magento Cart Extension will automatically add timers on Cart and Checkout Page if enabled in back-end. However, you can change standard timer display or position in the front-end. To do this follow the instructions below.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-block-columns table-to-grid\">\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>Changes to be made<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Website Frontend &#8211; Checkout Page<\/strong><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>The following code can be placed on any page of the website. It is universal and will display different timer depending on the store page.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<ul><li>If used anywhere on &#8220;Shopping Cart Page&#8221; &#8211; the code will display &#8220;Global timer for all items in cart&#8221; (if global cart timer is enabled in back-end).<\/li><li>If used anywhere on &#8220;Checkout Page&#8221; &#8211; the code will display &#8220;Checkout timer&#8221; (if checkout timer is enabled in back-end).<\/li><li>If used anywhere else on the website (homepage, product list, product page, etc&#8230;) &#8211; the code will display &#8220;Global timer for all items in cart&#8221; (if global cart timer is enabled in back-end).<\/li><\/ul>\n\n\n\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <p>To add Timer anywhere on the website, please do the following:<\/p>\n    \n    <p>1. Edit the corresponding layout file:<\/p>\n    \n    <p>For example to change position of timer on Checkout Page, add following code:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">theme_path\/default\/default\/layout\/checkout.xml<\/code><\/pre><\/div>\n\n    <p>by adding this part of code:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"1\"><code class=\"language-markdown\">&lt;block type=\"cartreservation\/cart\" name=\"cart.reservation\" template=\"cartreservation\/cart.phtml\" as=\"cartreservation\" \/&gt;<\/code><\/pre><\/div>\n\n    <p>After you make this change, your code will look similar to this one:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"7\"><code class=\"language-markup\">&lt;checkout_onepage_index translate=\"label\"&gt;\n    &lt;label&gt;One Page Checkout&lt;\/label&gt;\n    &lt;!-- Mage_Checkout --&gt;\n    &lt;remove name=\"left\"\/&gt;\n    &lt;reference name=\"content\"&gt;\n    &lt;block type=\"checkout\/onepage\" name=\"checkout.onepage\" template=\"checkout\/onepage.phtml\"&gt;\n    &lt;block type=\"cartreservation\/cart\" name=\"cart.reservation\" template=\"cartreservation\/cart.phtml\" as=\"cartreservation\" \/&gt; \n    &lt;block type=\"checkout\/onepage_login\" name=\"checkout.onepage.login\" as=\"login\" template=\"checkout\/onepage\/login.phtml\"&gt;\n    &lt;block type=\"page\/html_wrapper\" name=\"checkout.onepage.login.before\" as=\"login_before\" translate=\"label\"&gt;\n    &lt;label&gt;Login\/Registration Before&lt;\/label&gt;\n    &lt;action method=\"setMayBeInvisible\"&gt;&lt;value&gt;1&lt;\/value&gt;&lt;\/action&gt;\n    &lt;\/block&gt;\n    &lt;\/block&gt;\n    &lt;\/block&gt;\n    &lt;\/reference&gt;\n   &lt;\/checkout_onepage_index&gt;<\/code><\/pre><\/div>\n\n   <p>2. Now edit the corresponding html file:<\/p>\n   \n   <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">theme_path\/default\/default\/template\/checkout\/onepage.phtml<\/code><\/pre><\/div>\n\n   <p>by adding this part of code:<\/p>\n   \n   <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"1\"><code class=\"language-php\">&lt;?php echo $this-&gt;getChildHtml('cartreservation') ?&gt;<\/code><\/pre><\/div>\n\n   <p>After you make this change, your code will look similar to this one:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"6\"><code class=\"language-markup\">&lt;div class=\"page-title\"&gt;\n    &lt;h1&gt;&lt;?php echo $this-&gt;__('Checkout') ?&gt;&lt;\/h1&gt;\n   &lt;\/div&gt;\n   &lt;script type=\"text\/javascript\" src=\"&lt;?php echo $this-&gt;getJsUrl('varien\/accordion.js') ?&gt;\"&gt;&lt;\/script&gt;\n   &lt;script type=\"text\/javascript\" src=\"&lt;?php echo $this-&gt;getSkinUrl('js\/opcheckout.js') ?&gt;\"&gt;&lt;\/script&gt;\n   &lt;?php echo $this-&gt;getChildHtml('cartreservation') ?&gt;\n   &lt;ol class=\"opc\" id=\"checkoutSteps\"&gt;\n   &lt;?php $i=0; foreach($this-&gt;getSteps() as $_stepId =&gt; $_stepInfo): ?&gt;\n   &lt;?php if (!$this-&gt;getChild($_stepId) || !$this-&gt;getChild($_stepId)-&gt;isShow()): continue; endif; $i++ ?&gt;\n    &lt;li id=\"opc-&lt;?php echo $_stepId ?&gt;\" class=\"section&lt;?php echo !empty($_stepInfo['allow'])?' allow':'' ?&gt;&lt;?php echo !empty($_stepInfo['complete'])?' saved':'' ?&gt;\"&gt;\n    &lt;div class=\"step-title\"&gt;\n    &lt;span class=\"number\"&gt;&lt;?php echo $i ?&gt;&lt;\/span&gt;\n    &lt;h2&gt;&lt;?php echo $_stepInfo['label'] ?&gt;&lt;\/h2&gt;\n    &lt;a href=\"#\"&gt;&lt;?php echo $this-&gt;__('Edit') ?&gt;&lt;\/a&gt;\n    &lt;\/div&gt;\n    &lt;div id=\"checkout-step-&lt;?php echo $_stepId ?&gt;\" class=\"step a-item\" style=\"display:none;\"&gt;\n    &lt;?php echo $this-&gt;getChildHtml($_stepId) ?&gt;\n    &lt;\/div&gt;\n    &lt;\/li&gt;\n   &lt;?php endforeach ?&gt;\n   &lt;\/ol&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>1. Checkout Page Timer.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_timer_code.png\" alt=\"Magento 2 social login developer guide\"><\/figure>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-block-columns table-to-grid\">\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>Changes to be made<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Website Frontend &#8211; Shopping Cart Page<\/strong><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <p>To change position or design of single product reservation timer, edit following file:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">theme_path\/default\/template\/checkout\/cart\/item\/default.phtml<\/code><\/pre><\/div>\n\n    <p>And place the following code in desired place on page:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"1-8\"><code class=\"language-php\"> &lt;?php if ($this-&gt;modeReserveItem()) { ?&gt;\n    &lt;div class=\"reserved-item\"&gt;\n     &lt;span class=\"cntdown\"&gt;&lt;\/span&gt;\n     &lt;span class=\"cntdown-source\" style=\"display: none;\"&gt;\n    &lt;?php echo Mage::helper('cartreservation')-&gt;getItemTime($this-&gt;getItem()); ?&gt;\n    &lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;?php } ?&gt; <\/code><\/pre><\/div>\n\n    <p>After you make this change, your code will look similar to this one:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"9-16\"><code class=\"language-markdown\">&lt;td&gt;\n     &lt;h2 class=\"product-name\"&gt;\n     &lt;?php if ($this-&gt;hasProductUrl()):?&gt;\n     &lt;a href=\"&lt;?php echo $this-&gt;getProductUrl() ?&gt;\"&gt;&lt;?php echo $this-&gt;htmlEscape($this-&gt;getProductName()) ?&gt;&lt;\/a&gt;\n     &lt;?php else: ?&gt;\n     &lt;?php echo $this-&gt;htmlEscape($this-&gt;getProductName()) ?&gt;\n     &lt;?php endif; ?&gt;\n     &lt;\/h2&gt;\n     &lt;?php if ($this-&gt;modeReserveItem()) { ?&gt;\n     &lt;div class=\"reserved-item\"&gt;\n     &lt;span class=\"cntdown\"&gt;&lt;\/span&gt;\n     &lt;span class=\"cntdown-source\" style=\"display: none;\"&gt;\n     &lt;?php echo Mage::helper('cartreservation')-&gt;getItemTime($this-&gt;getItem()); ?&gt;\n     &lt;\/span&gt;\n     &lt;\/div&gt;\n     &lt;?php } ?&gt; \n     &lt;?php if ($messages = $this-&gt;getMessages()): ?&gt;\n     &lt;?php foreach ($messages as $message): ?&gt;\n     &lt;p class=\"item-msg &lt;?php echo $message['type'] ?&gt;\"&gt;* &lt;?php echo $this-&gt;escapeHtml($message['text']) ?&gt;&lt;\/p&gt;\n     &lt;?php endforeach; ?&gt;\n     &lt;?php endif; ?&gt;\n     &lt;?php $addInfoBlock = $this-&gt;getProductAdditionalInformationBlock(); ?&gt;\n     &lt;?php if ($addInfoBlock): ?&gt;\n     &lt;?php echo $addInfoBlock-&gt;setItem($_item)-&gt;toHtml() ?&gt;\n     &lt;?php endif;?&gt;\n    &lt;\/td&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n\n\n\n<p>Please note, the above code showing single product reservation can be used only on Shopping Cart Page (e.g. default.phtml file).<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>1. <strong>Shoping Cart Page (Independent timer for each item)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_cart_timer_code.png\" alt=\"Magento 2 social login developer guide\"><\/figure>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\"><\/div><\/div>\n\n\n\n<h2 id=\"h-insert-reservation-countdown-in-product-grid\"><em><em>Insert reservation countdown in product grid<\/em><\/em><\/h2>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-block-columns table-to-grid\">\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>Changes to be made<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Website Frontend &#8211; Product Grid<\/strong><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n\n    <p>The file can be found at this access path on your server:<\/p>\n    \n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">\/app\/design\/frontend\/THEME_NAME\/default\/template\/catalog\/product\/list.phtml<\/code><\/pre><\/div>\n\n    <p>Find the code:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"7\"><code class=\"language-markup\">&lt;div class=\"actions\"&gt;\n    &lt;?php if(!$_product-&gt;canConfigure() &amp;amp;&amp;amp; $_product-&gt;isSaleable()): ?&gt;\n    &lt;button type=\"button\" title=\"&lt;?php echo $this-&gt;quoteEscape($this-&gt;__('Add to Cart')) ?&gt;\" class=\"button btn-cart\" onclick=\"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')\"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;\/button&gt;\n    &lt;?php elseif($_product-&gt;getStockItem() &amp;amp;&amp;amp; $_product-&gt;getStockItem()-&gt;getIsInStock()): ?&gt;\n    &lt;a title=\"&lt;?php echo $this-&gt;quoteEscape($this-&gt;__('View Details')) ?&gt;\" class=\"button\" href=\"&lt;?php echo $_product-&gt;getProductUrl() ?&gt;\"&gt;&lt;?php echo $this-&gt;__('View Details') ?&gt;&lt;\/a&gt;\n    &lt;?php else: ?&gt;\n    &lt;p class=\"availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;\/span&gt;&lt;\/p&gt;\n    &lt;?php endif; ?&gt;\n    &lt;ul class=\"add-to-links\"&gt;\n    &lt;?php if ($this-&gt;helper('wishlist')-&gt;isAllow()) : ?&gt;\n    &lt;li&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('wishlist')-&gt;getAddUrl($_product) ?&gt;\" class=\"link-wishlist\"&gt;&lt;?php echo $this-&gt;__('Add to Wishlist') ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;?php endif; ?&gt;\n    &lt;?php if($_compareUrl=$this-&gt;getAddToCompareUrl($_product)): ?&gt;\n    &lt;li&gt;&lt;span class=\"separator\"&gt;|&lt;\/span&gt; &lt;a href=\"&lt;?php echo $_compareUrl ?&gt;\" class=\"link-compare\"&gt;&lt;?php echo $this-&gt;__('Add to Compare') ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;?php endif; ?&gt;\n    &lt;\/ul&gt;\n    &lt;\/div&gt;<\/code><\/pre><\/div>\n\n    <p>The code should be replaced with the following:<\/p>\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"7-12\"><code class=\"language-markup\">&lt;div class=\"actions\"&gt;\n    &lt;?php if(!$_product-&gt;canConfigure() &amp;amp;&amp;amp; $_product-&gt;isSaleable()): ?&gt;\n    &lt;button type=\"button\" title=\"&lt;?php echo $this-&gt;quoteEscape($this-&gt;__('Add to Cart')) ?&gt;\" class=\"button btn-cart\" onclick=\"setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')\"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;\/button&gt;\n    &lt;?php elseif($_product-&gt;getStockItem() &amp;amp;&amp;amp; $_product-&gt;getStockItem()-&gt;getIsInStock()): ?&gt;\n    &lt;a title=\"&lt;?php echo $this-&gt;quoteEscape($this-&gt;__('View Details')) ?&gt;\" class=\"button\" href=\"&lt;?php echo $_product-&gt;getProductUrl() ?&gt;\"&gt;&lt;?php echo $this-&gt;__('View Details') ?&gt;&lt;\/a&gt;\n    &lt;?php else: ?&gt;\n    &lt;?php if ($_product-&gt;getIsReserved()) { ?&gt;\n    &lt;p class=\"action availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Reserved') ?&gt;&lt;\/span&gt;&lt;\/p&gt;\n    &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cartreservation\/product')-&gt;setProduct($_product)-&gt;toHtml() ?&gt;\n    &lt;?php } else { ?&gt;\n    &lt;p class=\"action availability out-of-stock\"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;\/span&gt;&lt;\/p&gt;\n    &lt;?php } ?&gt;\n    &lt;?php endif; ?&gt;\n    &lt;ul class=\"add-to-links\"&gt;\n    &lt;?php if ($this-&gt;helper('wishlist')-&gt;isAllow()) : ?&gt;\n    &lt;li&gt;&lt;a href=\"&lt;?php echo $this-&gt;helper('wishlist')-&gt;getAddUrl($_product) ?&gt;\" class=\"link-wishlist\"&gt;&lt;?php echo $this-&gt;__('Add to Wishlist') ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;?php endif; ?&gt;\n    &lt;?php if($_compareUrl=$this-&gt;getAddToCompareUrl($_product)): ?&gt;\n    &lt;li&gt;&lt;span class=\"separator\"&gt;|&lt;\/span&gt; &lt;a href=\"&lt;?php echo $_compareUrl ?&gt;\" class=\"link-compare\"&gt;&lt;?php echo $this-&gt;__('Add to Compare') ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;?php endif; ?&gt;\n    &lt;\/ul&gt;\n    &lt;\/div&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>1. Item Reserved notification.<\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"\/docs\/wp-content\/uploads\/2020\/12\/Magent_cart_reservation_developer_guide_v1-1.jpg\" alt=\"\" class=\"wp-image-16355\"\/><\/figure>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<h2 id=\"h-insert-reservation-countdown-on-product-page\"><em>Insert reservation countdown on Product Page<\/em><\/h2>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-block-columns table-to-grid\">\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p>Changes to be made<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Website Frontend &#8211; Product Grid<\/strong><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><div class=\"example-block\">\n    <p class=\"example-block-title\">Code Example<\/p>\n        \n    <p>The file can be found at this access path on your server:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">app\/design\/frontend\/THEME_PACKAGE\/default\/template\/catalog\/product\/view\/type\/availability\/default.phtml<\/code><\/pre><\/div>\n\n    <p>Find the code:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;div class=\"actions\"&gt;\n    &lt;?php else: ?&gt;\n     &lt;p class=\"availability out-of-stock\"&gt;\n     &lt;span class=\"label\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Availability:') ?&gt;&lt;\/span&gt;\n     &lt;span class=\"value\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Out of stock') ?&gt;&lt;\/span&gt;\n     &lt;\/p&gt;\n    &lt;?php endif; ?&gt;\n    &lt;\/div&gt;    <\/code><\/pre><\/div>\n\n    <p>The code should be replaced with the following:<\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;div class=\"actions\"&gt;\n    &lt;?php elseif ($_product-&gt;getIsReserved()) : ?&gt;\n     &lt;p class=\"availability out-of-stock\"&gt;\n     &lt;span class=\"label\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Availability:') ?&gt;&lt;\/span&gt;\n     &lt;span class=\"value\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Reserved') ?&gt;&lt;\/span&gt;\n     &lt;\/p&gt;\n    &lt;?php else: ?&gt;\n     &lt;p class=\"availability out-of-stock\"&gt;\n     &lt;span class=\"label\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Availability:') ?&gt;&lt;\/span&gt;\n     &lt;span class=\"value\"&gt;&lt;?php echo $this-&gt;helper('catalog')-&gt;__('Out of stock') ?&gt;&lt;\/span&gt;\n     &lt;\/p&gt;\n    &lt;?php endif; ?&gt;\n    &lt;\/div&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<ol><li>Item Reserved notification.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"\/docs\/wp-content\/uploads\/2020\/12\/Magent_cart_reservation_developer_guide_v1.jpg\" alt=\"Magento 2 social login developer guide\"><\/figure>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references to fully customize your plugin. Configuring Independent Elements Sometimes you may need to change default module messages concerning reserved items. Below you will learn how to do it. The texts &#8220;This item is no longer reserved.&#8221;, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 1 Cart Reservation 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":[242],"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 Cart Reservation v1.x Developer Guide &amp; API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references\" \/>\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-cart-reservation\/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 Cart Reservation v1.x Developer Guide &amp; API Reference\" \/>\n<meta property=\"og:description\" content=\"In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:02:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-24T12:28:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_timer_code.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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Magento Cart Reservation v1.x Developer Guide & API Reference - Plumrocket Documentation","description":"In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references","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-cart-reservation\/v1\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento 1 Cart Reservation v1.x Developer Guide & API Reference","og_description":"In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references","og_url":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:02:30+00:00","article_modified_time":"2021-09-24T12:28:17+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_timer_code.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"6 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-cart-reservation\/v1\/devguide#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_timer_code.png","contentUrl":"\/docs\/wp-content\/uploads\/2020\/12\/Magento_cart_reservation_1.6.0_timer_code.png"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide","name":"Magento 1 Cart Reservation v1.x Developer Guide & API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide#primaryimage"},"datePublished":"2020-02-28T16:02:30+00:00","dateModified":"2021-09-24T12:28:17+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"In this developer documentation for the&nbsp;Magento Cart Reservation Extension, you will find step-by-step instructions, sample code, and API references","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/v1\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento Extensions","item":"https:\/\/plumrocket.com\/magento-1-extensions"},{"@type":"ListItem","position":2,"name":"Magento Cart Reservation","item":"https:\/\/plumrocket.com\/magento-1-cart-reservation"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-1-cart-reservation\/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\/262"}],"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=262"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":24430,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/262\/revisions\/24430"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}