Skip to content

Commit

Permalink
change installation guide Multiple Store View Pricing M1
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnguyenbss committed May 12, 2017
1 parent 70320bc commit 86b5263
Showing 1 changed file with 9 additions and 89 deletions.
98 changes: 9 additions & 89 deletions docs/magento_1/multi-store-pricing/installation-guide.rst
Original file line number Diff line number Diff line change
@@ -1,100 +1,20 @@
Installation Guide
==================

1. For Multiple Store View Pricing version 2.3.0
-------------------------------------------------
To install Multiple Store View Pricing, you follow our `Installation Guide for Magento 1 extensions<http://wiki.bsscommerce.com/en/latest/general/installation/installation_m1.html>`_ .

**Step 1:**
:step:`*Note`: Please remember that after you install Multiple Store View Pricing, you go to **System -> Configuration -> Catalog -> Catalog Price Scope** and choose **Store View**.

You copy all files in the extension folder to the Magento root folder.
Then you need to reindex product prices and also apply catalog price rules again.


**Step 2:**

You copy file **app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php** to **app/code/local/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php**

**Step 3:**

Open file **app/code/local/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php**, search **"public function afterLoad($object)"**
and find this line:
.. raw:: html

.. literalinclude:: code_examples/v2.2.1_after_load.py
<style>
p {text-align: justify;}
.step{font-size:125%; font-weight: bold;}
</style>

**- Then, you insert the following code behind that line:**

.. literalinclude:: code_examples/v2.2.1_step3.py

**=> After inserting, you will have a code snippert as below:**

.. literalinclude:: code_examples/v2.2.1_codesnippert.py

(You can see the example file in the example folder if you have not still got it well and please note that you use it only for Magento 1.9.2.x)

2. For Multiple Store View Pricing version < 2.2.1
--------------------------------------------------

2.1. For Magento 1.6 and above
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**Step 1:**

You copy all files in the extension folder to the Magento root folder.

**Step 2:**

You copy file **app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php** to **app/code/local/Mage/Catalog/Model/Resource/Product/Collection.php**

**Step 3:**

Open file **app/code/local/Mage/Catalog/Model/Resource/Product/Collection.php**, search **"protected function _productLimitationPrice($joinLeft = false)"**
and find this line:

.. literalinclude:: code_examples/magento_leftjoin_step3.py

**- Then, you insert the following code behind that line:**

.. literalinclude:: code_examples/magento_step3.py

**=> After inserting, you will have a code snippet as below:**

.. literalinclude:: code_examples/magento_codesnippet_step3.py

**Step 4:**

Copy file **app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php** to **app/code/local/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php**

**Step 5:**

Open file **app/code/local/Mage/Catalog/Model/Product/Attribute/Backend/Groupprice/Abstract.php** , search **"public function afterLoad($object)"** and find this line:

.. literalinclude:: code_examples/megento_group_price_step5.py

**- Then, you insert the following code behind that line:**

.. literalinclude:: code_examples/magento_step5.py

(You can see the example file in the example folder if you have not still got it well and please note that you use it only for Magento 1.9.2.x)

2.2. For Magento 1.5
^^^^^^^^^^^^^^^^^^^^

**Step 1:**

You copy file **app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php** to
**app/code/local/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php**

**Step 2:**

Open file **app/code/local/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.ph**, search **"protected function _productLimitationJoinPrice()"**
and find this line:

.. literalinclude:: code_examples/magento1.5_join_step3.py

**- Then, you insert the following code behind that line**:

.. literalinclude:: code_examples/magento1.5_step3.py

**=> After inserting, you will have a code snippert as below:**

.. literalinclude:: code_examples/magento1.5_codesnippet_step3.py

*Note: This installation guide is only used for Magento Multiple Store View Pricing version 2.1.6*

0 comments on commit 86b5263

Please sign in to comment.