Import Tutorials

Margin plugin

21 October 2015
in Import

The Margin plugin let's you set a margin to the product price (for example) and imports the new price according to the value set. 


From Components -> CSVI pro ->Templates tab -> Rules, Click New to add a new rule for margin plugin.



For example to create a rule to set 20% margin for product_price field of a virtuemart product.

  1. Give a Descriptive name for the rule in name field.
  2. Select Action as Import.
  3. Select Plugin as CSVI margin.
  4. Click on load plugin button.

You will now see three new fields appears

  1. Value type field to select how the margin is calculated either percentage or value.
  2. Margin field to set how much percentage or value to be added, For example here its 20.
  3. Operation type used to calculate the margin.

Example

Here is an example on how to create a rule using margin plugin for a product_price field in virtuemart.



Now set this rule to template fields to use the margin plugin like below



When the fields are set with rules you can see a small fire icon next to the field name in Template fields tab.



Important Note :

  •  Make sure that  product_price (example used in this template) are added in template fields list.
  • Use file for configuration option in templates->template name->file tab set to No.

 

Now that all rules and fields are set, CSVI will automatically calculate the product_price according to the new margin set. Say here for an example the product_price in CSV file has been given as 100. While import CSVI will calculate the price and show as below.

Last Updated: Wednesday, 21 October 2015 09:08

My Member Software

My Member Software

My Member Software is the downloadable open source member administration program with which Associations, Clubs, Foundations and even companies can administrate their members and is integrated in the Joomla CMS.

You can use CSV Improved to easily import your user data into My Member Software.

Read all about My Member Software.