Introduction

This extension provides the possibility to set a product tier prices based on a percentage instead of a fixed price amount.

Magento tier pricing is an effective marketing tool that lets you have lower price for purchasing highest product quantities. Our extension helps you provide a percentage that the customer saves buying more than a product instead of applying the amount per set.  




Compatibility

This extension is compatible with Magento versions 1.7.x – 1.9.x




Installation

If you have compilation enabled, please disable it before installing this extension. You can check compilation status in System → Tools → Compilation under 'Compiler status'.

1. Copy the folders (and its content): "app" and "skin" to your root Magento directory.

3. Clear the Magento cache.

4. Log out and log in again in your Magento admin.





Configuration 

System -> Configuration -> B2B Extensions -> Percentage Tier Pricing


1. Info & Support: An overview of the extension information such as version number, compatibility, documentation and support.

2. License: Add your license key to this section.

 

3. Settings:

Extension Enabled: Yes/No 


4. Setting Tier price on Product level

To set tier price browse to back-end product edit screen and click 'Prices' tab in the left bar. There is a 'Tier price' table, which by default has 'Customer Group', 'Qty' and 'Price'.

Tier Percentage extension adds a custom field named 'Type' with two options: 'Fixed' and '% Off':




  1. If you chose type:'Fixed' default Magento behavior will apply i.e specified price will take effect at the quantity specified.
  2. If you chose type:'% Off' specified price will be a percentage discount (%) of the product price. Good to be mentioned that when applying a percentage in the Price column field the allowed values here will be maximum to 100%. Higher values set in this filed will result will Magento Fixed price calculation.


Integrated API functionality


The Percentage Tier Pricing module is also compatible with Magento v1 and v2 API calls and also it has WSDL and WSI compatibility.

The following  two examples are demonstrating the code needed for making the API calls:

 
1. Example how to do v1 call


<?php

$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');

$sessionId = $proxy->login('apiUser', 'apiKey');


$tierPrices = array(

             array( 'website' => 'all', 'customer_group_id' => 'all', 'qty' => 5, 'price' => 100, 'tier_type' => 1 ),

             array( 'website' => 'all', 'customer_group_id' => 'all', 'qty' => 8, 'price' => 90, 'tier_type' => 0 )  

); 


$product_identifier = 551; //Product ID or SKU


// Update tier prices

$result = $proxy->call($sessionId, 'product_tier_price.update', array($product_identifier, $tierPrices)); 


var_dump($result);



2. Example how to do a v2 call.


<?php  

$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy->login('apiUser', 'apiKey');


$productId = 551; //Product ID or SKU

$tierPrices = array(

              array('customer_group_id' => '0', 'website' => '0', 'qty' => '5', 'price' => '50', 'tier_type' => '1'),

              array('customer_group_id' => '0', 'website' => '0', 'qty' => '10', 'price' => '40', 'tier_type' => '1'),

              array('customer_group_id' => '0', 'website' => '0', 'qty' => '15', 'price' => '35', 'tier_type' => '0')

);


$result = $proxy->catalogProductAttributeTierPriceUpdate(

  $sessionId,

  $productId,

  $tierPrices

);


var_dump($result);




Front end


Product page

After the module configuration in admin section and setting the tier prices on a Product level on front on the Product Page we can see the tier price block shown with the calculated percentage discount.





 Cart page


After placing  more products in the cart the item price is changed accordingly the tier prices set in the product admin.







Uninstall

1.Change the “active” element to “false” in /etc/modules/Ecomwise_Percenttier.xml and save the file. 

2.Flush Magento cache.

This will set the extension to inactive. However, if more explicit action is needed:

1.Remove all files from file system.
2.Remove the entry with code='percenttier_setup' in the core_resource database table.

 




Updates

05 October 2015

  • Fixing bugs.

01  September 2015

  • Added API functionality


11 Feb. 2015

  • Code maintenance.


03 Feb. 2015 

  • Adding Info & Support tab.


02 January 2014

  • Fixed bug regarding price of configurable product with % off tier price, 'as low as' price on category page and the tier price in sales items admin grid.

18 July 2014
  • Fixed problems when using special/grouped prices, or catalog rules and tier percentage

11 July 2014

  • Compatible with Magento Community 1.5.x-1.9.x 


29 May 2014

  • Compatible with Magento Community 1.5.x-1.9.x 


30 April 2014

  • Compatible with Magento Community 1.5.x-1.8.x 

15 April 2013

  • Compatible with Magento Community version 1.5.x -1.7.0.2







Support

Please browse to our FAQ page for more details or contact http://support.b2b-extensions.com.