Magento Not2Order Theme Integration Manual

back-propoza-manual

This document explains how to integrate Not2Order into your Magento theme. To follow this tutorial, you need to have basic theme development skills. If you’re not sure about this or looking for an easy way out, you could always consider purchasing our Theme Integration service

Preparation

Preparation

Clear and disable all cache before you start. You won’t be altering any base files, but it could be convenient to make a backup. After this, you’re good to go.

Back To Top

Theme Integration Not2Order

Step 1: Go to your Magento root

1. Connect with (s)FTP to your Magento (dev) store

2. Go to your Magento root directory

Back To Top

Step 2: Copy the Not2Order content

1. Go to: app/design/frontend/base/default/template/

2. Copy Not2Order to your computer.

1

Back To Top

Step 3: Copy Not2Order to your theme folder

1. Go to: app/design/frontend/ (your interface) / (your theme) /template

2. Copy Not2Order to this directory

1

Back To Top

Step 4: Copy the theme files to your computer.

1.1 – If you don’t have Cart2Quote installed:

Go to: app/design/frontend/ (your interface) / (your theme) /template/catalog/product

1.2 – If you have Cart2Quote installed:

Go to: app/design/frontend/ (your interface) / (your theme) /template/qquoteadv/catalog/product

2. Copy list.phtml and view.phtml temporarily to your computer.

1

Back To Top

Step 5: Replace the Not2Order List and View file

1. Go to: app/design/frontend/ (your interface) / (your theme) /template/not2order/catalog/product

(Create the folder structure if it doesn’t exist)

2. Copy the list.phtml and view.phtml

1

Back To Top

Step 6: Add Not2Order logic to prices

1. Open list.phtml: right mouse button and press View/Edit.

2. Look up this part of code:

<?php echo $this->getPriceHtml($_product, true) ?> 

3. Replace that with the following code:

<?php if (Mage::helper('not2order')->getShowPrice( $_product )) : ?>
    <?php echo $this->getPriceHtml($_product, true) ?>
<?php endif; ?>

If you use Not2Order in combination with Cart2Quote, replace this with the following code:

<?php if (Mage::helper('qquoteadv/not2order')->getShowPrice( $_product )) : ?>
    <?php echo $this->getPriceHtml($_product, true) ?>
<?php endif; ?>

4. Do this for all prices in the list.phtml.

5. Open view.phtml: right mouse button and press View/Edit.

6. Look up this part of code:

<?php echo $this->getTierPriceHtml(); //tier prices ?> 

7. Replace this with the following code:

<?php if (Mage::helper('not2order')->getShowPrice($_product)) : ?>
    <?php echo $this->getTierPriceHtml() ?>
<?php endif; ?> 

8. Do this for all prices in the view.phtml.

9. Finally, save your document and upload/update this on your FTP.

Back To Top

Step 7: Testing and configuring

You are done editing the code. Now it is time to test your quote button.

You need to check the following settings:

Go to: Magento back-end > System > Configuration > CART2QUOTE > Not2Order

General:

Set Use built-in template files to Yes

Go to: Magento back-end > Catalog > Manage Products > [Desired product for hiding the price]

Prices:

Set Hide price to Yes

Now test your front-end if the product does not show a price.

Back To Top