< Back
Print

Configuring volume discounts/scale prices

Please note: in order to use this feature properly, ValueRanges must be licensed for your CONTENTSERV platform. If it is not licensed, you will only have the default values explained on the following pages available; you will not be able to add values manually.
In order to configure the value ranges for price or stock tables, navigate to the value range lists in the CONTENTSERV settings:

valueranges1

Here you can define price types for price tables and delivery types for stock tables. The two standard price types (pruchase price & retail price) are available by default. If you wish to add more price types, you can add them here. Please make sure to use a proper external key (see the “External Key” column in the screenshot above) – those are needed for unique identification for exporting prices to satellite systems/eCommerce platforms.

Placeholder attributes

You can manage volume discounts with price tables. In order to do so, set up a placeholder attribute for each scale in the PIM attributes. The following example shows the setup of a placeholder attribute that will display the first discounted price on the first possible volume:

For “plugin”, set the SCPricePlaceholder plugin.

SAWSConnector price

The plugin will load a variety of additional settings for the placeholder attribute. The following table explains those settings further:

 

Output format of price

Without currency, currency to the right/to the left of the value

Display setting; defines where the currency sign of your price will be displayed

Format using PHP code (prioritized)

Enter PHP code to determine the formatting of a price

If code is entered here, it will overrule the setting above.

$objView = product or view
$objItem = product
$arrPrice = array of found price
$objConfiguration = this attribute

Validity date of the price

Select an attribute from the PIM that contains the validity date

Validity date refers to the validity of a view for example, not the price table itself. The date selected here will decide which prices from the price table are included in any output. Example: a PIM view can have a validity date (e.g. for catalogue production, online shops). The date set here can decide which lines from the price table will be used to determine the correct price.

Determine validity date using PHP code (prioritized)

Enter PHP code to determine the validity date of a price


If code is entered here, it will overrule the setting above.

The following objects are available for the code:

$objView = product or view
$objItem = product
$objConfiguration = this attribute

Currency

The selection available here is determined by the entries from the ValueRange set in the system settings. Please note: ValueRanges must be licensed in your CS platform; otherwise you will not be able to extend the default list (EUR,USD)

SAWSConnector pricetable

Determine currency using PHP code (country/language etc.; prioritized)

Enter PHP code to determine the currency of a price

If code is entered here, it will overrule the setting above.

The following objects are available for the code:

$objView = product or view
$objItem = product
$objConfiguration = this attribute

Price type

Set the price type here. The available choices are from the ValueRange settings (see screenshot under “Currency”)


Set the type of price here that is suppored to be used for your volume discounts. For example, use your standard prices to discount from there.

Determine price type using PHP code (purchase/retail price; prioritized)

Enter PHP code to determine the price type.


If code is entered here, it will overrule the setting above.

The following objects are available for the code:

$objView = product or view
$objItem = product
$objConfiguration = this attribute

Volume discounts (starting volume)

Set the first volume here.


If you wish to discount from a volume of 50 units or more, please set 50 here.

Determine volume discount (starting volume) using PHP Code (prioritized)

Enter PHP code to determine volume discounts.


If code is entered here, it will overrule the setting above.

The following objects are available for the code:

$objView = product or view
$objItem = product
$objConfiguration = this attribute

Display price even when no valid volume discount was found


Set the checkbox to active if you would still like to display a price even when no valid discount was found.

Output when no valid price was found (e.g. -,-).

Set an alternative here.

Set an alternative sign or several signs that you wish to be displayed if no valid prices were found.

Select user(s) who will see output values that were calculated for price determination (debug mode)

Set a user here from the CONTENTSERV users.


Select any users who will see all output values that are neccessary for the price determination. This choice should ideally be limited to people who need to be able to see results from the debug mode.

Setting volumes

In order to set the different volume scales, please create an attribute and add it to your product class:

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents