You are viewing: Cart Reservation
Contents |
Here you will learn how to correctly install the Magento Cart Reservation Extension.
First of all make sure your system meet the requirements necessary for the correct functioning of our Magento extension. For more details on system requirements read Magento system requirements.
Make sure that Compilation is disabled in your Magento. Please follow the steps outlined in this Wiki article to disable Compilation.
Make sure to enable Magento Cache.
To install this shopping cart extension, you will need the archive containing it. The unpacked archive and catalog of files are shown below.
![]() |
|
In order to perform FULL installation of Magento Cart Reservation Extension, please do the Step 1 and Step 2 below:
![]() |
|
You may use any FTP-client in order to upload files to the server. (To show how it works we used the FTP-client FileZilla.)
![]() |
|
The screenshot below depicts possible difficulties that can occur when you upload the files. In case there are identical files on the server, they should be overwritten. Below you will find detailed tips on how to overwrite files (when using the FTP-client FileZilla):
Code for displaying cart reservation timer on Product Page
To add cart reservation timer anywhere on the product page, edit the corresponding html file:
theme_path/default/default/template/catalog/product/view.phtml
by adding the following code:
<?php echo $this->getChildHtml('cartreservation_product') ?>
Code for all product types on Product List page
Attention: Skip this step if you are using Plumrocket Private Sales Theme.
First, find the file that can be reached at this access path on your server:
/app/design/frontend/THEME_NAME/default/template/catalog/product/list.phtml
where THEME_NAME is the name of the theme you are using.
Changes to be made for List mode | Website Frontend |
---|---|
Find the code:
<?php if($_product->isSaleable()): ?> <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span> <?php echo $this->__('Add to Cart') ?></span></span></button></p> !!-<?php else: ?>-!! <p class="availability out-of-stock"><span> <?php echo $this->__('Out of stock') ?> </span></p> <?php endif; ?> and replace it with this one: <?php if($_product->isSaleable()): ?> <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"> <span><span> <?php echo $this->__('Add to Cart') ?></span></span></button> <?php else: !!-if ($_product->getIsReserved()) { ?> <p class="availability out-of-stock"> <span> <?php echo $this->__('Reserved') ?> </span></p> <?php } else { -!!?> <p class="availability out-of-stock"> <span> <?php echo $this->__('Out of stock') ?> </span></p> !!-<?php } ?>-!! <?php endif; ?> |
|
Changes to be made for Grid mode | Website Frontend |
---|---|
Find the code:
<?php if($_product->isSaleable()): ?> <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span> <?php echo $this->__('Add to Cart') ?> </span></span> </button> !!-<?php else: ?>-!! <p class="availability out-of-stock"> <span><?php echo $this->__('Out of stock') ?> </span></p> <?php endif; ?> and replace it with this one: <?php if($_product->isSaleable()): ?> <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?> </span></span></button> <?php else: !!-if ($_product->getIsReserved()) {-!! ?> !!-<p class="availability out-of-stock"> <span><?php echo $this->__('Reserved') ?></span></p> <?php } else { ?>-!! <p class="availability out-of-stock"> <span><?php echo $this->__('Out of stock') ?></span></p> <?php !!-}-!! endif; ?> |
|
Code for Simple, Configurable and Virtual product pages
Attention: Skip this step if you are using Plumrocket Private Sales Theme.
Find the file that can be reached at this access path on your server:
/app/design/frontend/THEME_NAME/default/template/catalog/product/view/type/default.phtml
where THEME_NAME is the name of the theme you are using.
Changes to be made | Website Frontend |
---|---|
Find the code:
<?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> !!-<?php else: ?>-!! <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p> <?php endif; ?> and replace it with this one either: <?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> <?php else: !!-if ($_product->getIsReserved()) { ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Reserved') ?></span></p> <?php } else { -!!?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p> !!-<?php } ?>-!! <?php endif; ?> |
|
Code for Grouped product pages
Attention: Skip this step if you are using Plumrocket Private Sales Theme.
For grouped products find the file that can be reached at this access path on your server:
/app/design/frontend/THEME_NAME/default/template/catalog/product/view/type/grouped.phtml
Step #1. Find and replace these two snippets of code. First find the code:
<?php if ($_product->isAvailable() && $_hasAssociatedProducts): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> !!-<span><?php echo $this->__('Out of stock') ?></span></p>-!! <?php endif; ?>
and replace it with this one either:
<?php if ($_product->isAvailable() && $_hasAssociatedProducts): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> !!-<span><?php echo $this->__(($_product->getIsReserved()? 'Reserved': 'Out of stock')) ?></span></p>-!! <?php endif; ?>
Step #2. Next, find the second snippet of code in the same file
<?php if ($_item->isSaleable()) : ?> <input type="text" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" /> <?php else: ?> !!-<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?>-!! </span></p> <?php endif; ?>
and replace it with this one either:
<?php if ($_item->isSaleable()) : ?> <input type="text" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" /> <?php else: ?> !!-<p class="availability out-of-stock"><span><?php echo $this->__(($_item->getIsReserved()? 'Reserved': 'Out of stock')) ?>-!! </span></p> <?php endif; ?>
Code for Downloadable product pages
Attention: Skip this step if you are using Plumrocket Private Sales Theme.
For downloadable products find the file that can be reached at this access path on your server:
/app/design/frontend/THEME_NAME/default/template/downloadable/catalog/product/type.phtml
Find the code:
<?php if($_product->isSaleable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> !!-<span><?php echo $this->__('Out of stock') ?></span></p>-!! <?php endif; ?>
and replace it with this one either:
<?php if($_product->isSaleable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> !!-<span><?php echo $this->__(($_product->getIsReserved()? 'Reserved': 'Out of stock')) ?></span></p>-!! <?php endif; ?>
To do this, follow the instructions below:
![]() |
|
![]() |
|
![]() |
After the extension is installed successfully you can enable the magento compilation. Note: You don't have to enable compilation if it was disabled prior to extension installation. Please follow the steps outlined in this Wiki article if you decide to run the compilation. |
Sign-out and Sign-in back to Admin Panel. Then you will see the installed module as shown below. For more information on the extension preview and settings visit our "Configuration" section. You can install the next module if needed.
![]() |
|
![]() |
|
Note: After you've successfully installed and enabled our cart reservation extension, but the timers do not appear in the shopping cart or shopping cart popup - this may be due to your custom magento theme layouts.
In this case please follow the steps from Cart Reservation Developer's Guide online manual to display the timers on your website.
Next Step > Configuring and Enabling Cart Reservation Extension
On Top