Not2Order theme integration

warning-icon.png  This article will be removed shortly. Please take a look at our updated Not2Order theme integration manual.

------------------------

Before you start:

Clear and disable all the cache (also external cache and php cache if enabled).

 

Integrating Cart2Quote to a custom theme

Step 1: Go to your Magento root

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

2. Go to your Magento root directory

 

Step 2: Copy the Not2Order contents

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

2. Copy Not2Order to your computer.

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

 

 

Step 4: Copy the theme files to your computer.

1.1 - If you have Cart2Quote installed: 

Go to: app/design/frontend/ <your interface> / <your theme> /template/qquoteadv/catalog/product

1.2 - If you don't have Cart2Quote installed: 

Go to: app/design/frontend/ <your interface> / <your theme> /template/catalog/product

 

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

listandviewFTP.png

 

 

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

 

Step 6: Add the Add to Quote button to the list and grid view

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 this 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. 

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.

 

 

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk