TEST MODE
Show details for 7 _ ErrorExample

7 _ ErrorExample

This Product

This product gives an example of an pricing script & configuration combination that will result in an error.

In this case, the configuration is looking for a file which does not exist.

When an error occurs, the price shown on the product landing page will show as the default value. This is 10,000 and aims to give a clear indication there is a problem.

The line in the pricing script configuration enabling debug mode allows an administrator to see additional log information when testing a pricing script. Click the Test button to see this additional information. Test mode will use the default configuration and attribute selection of your product.

Pricing script configuration

{
    "filePath": "ThisFileDoesNotExist.csv",
    "debugMode": true,
    "quantityColumnName": "Quantity"

}

A *
£10,000.00
Config qty column name Quantity
Config qty useTierPrice false
Attributes length 1
Attribute name: A with value: 1
Cached attributes length: 1
filename = ThisFileDoesNotExist.csv
CSV file was not found by name ThisFileDoesNotExist.csv
return default price