Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<OrderManager>
    <!-- enable-external-part-number will allow user to add part numbers not in the database -->
    <!-- In version 5.1 order preview may show two buttons instead of one, default is false -->
	<OrderManager enable-external-part-number="true" allow-order-line-errors="false" add-availability-on-orderline="true" next-step-button-enabled-at-order-preview="true" >
		<!-- External part numbers will be accepted if they meet this regex -->
		<ExternalPartNumberValidationPattern>^\d+$</ExternalPartNumberValidationPattern>
		
		<!-- Generate an order number which will be passed in PlaceOrder call. From version 5.1.5 and later. -->
		<AutoOrderNumberSetting auto-order-number-enabled="true" prefix="SIGOrder" divider="-" sequnce-number-length="5" start-sequnce-number="1"/>
		
		<!-- Delivery options loaded from API will be cached for X minutes -->
		<DeliveryOptionsCache cache-time="20" site="true" type="true" />
		
		<!-- Order type loaded from API will be cached for X minutes -->
		<OrderTypesCache cache-time="20" site="true" user="true"/>
		
		<!-- Regex for formatting part numbers in order view quick order area -->
		<AddToOrdertPartNumberFormatter pattern="((?'a'\d{3,4})[ ]{0,1}(?'b'\d{0,4})[ ]{0,1}(?'c'\d{0,4})[ ]{0,1}(?'d'\d{0,1}))" format="${a}${b}${c}${d}"/>
		
		<!-- Version 5.1. Messages on PlaceOrder messages, process, return messages and redirects, will be shown as a popup. Default is false. -->
		<OrderProcessMessagePopupEnabled>true</OrderProcessMessagePopupEnabled>
		
		<!-- Settings for the order cart -->
		<OrderCartSettings display-stock="true" display-total-price="false" display-total-price-information="false" display-order-sub-total-price="false" display-order-total-price="false">
			<!-- In verstion 5.1 and later it is possible to add configurations on order lines. -->
			<!-- Line tag can be used to add classes to items on the order line as Name, Description etc -->
			<Line>
				<Name tag="h4"/>
			</Line>
			<!-- Menu tag is used to control menu items on the line, eg to hide the copy line icon -->
			<Menu template="order-cart" id="order-cart">
				<Item id="copy" ignore = "true" />
			</Menu>
			<!-- Column id can have values image, GrossTotalPrice,  -->
			<Column id="GrossTotalPrice" class="total-price" display="none"/>
		</OrderCartSettings>
		
		<!-- Configuration of which process steps shall be shown -->
		<OrderCartMenus>
			<!-- <MenuNames>ShoppingCart, AdditionalInformation, ReviewOrder, OrderConfirmation</MenuNames> -->
			<MenuNames>ShoppingCart, ReviewOrder</MenuNames>
		</OrderCartMenus>
		
		<!-- Allows to purchase items also when no stock exist. Also has an impact on how replacements are presented depending on stock level. From version 5.1 setting is located in OrderManager. -->
		<!-- Note that this is a global setting and normally it is better to use the response from providers to control if parts are purchaseable or not. Use with care. -->
		<NeedsStockToOrder>false</NeedsStockToOrder>
		
		<!-- Allows to purchase items also when no price exist. From version 5.1 setting is located in OrderManager. -->
		<!-- Note that this is a global setting and normally it is better to use the response from providers to control if parts are purchaseable or not. Use with care. -->
		<NeedsPriceToOrder>false</NeedsPriceToOrder>
		
		<!-- Show a message on parts which have sellable=false, default is true from version 5.0.7. -->
		<ShowNotSellableMessage>true</ShowNotSellableMessage> 
		<!-- From version 5.2 format of this tag is changed to the below. -->
		<ShowNotSellableMessage enable="false" message-level="Error"/>

		
		<!-- In version 5.1 it is possible to add a carousel for related documents on order page -->
		<DocumentDownloadCarousel class="round" outofbounds-slides-visible="true" all-slides-visible="true" indicators-layout="below"/>
		
		<!-- In version 5.1 and 5.0.6 a message will display on parts which are not sellable (sellable=false). The message is default enabled, but can be disabled -->
		<!-- It is also possible to configure the message level as information, warning or error. It will only effect the styling. -->
		<ShowNotSellableMessage enable="true" message-level="Error"/>
		
		<!-- In version 5.1 and 5.0.9 it is possible to omitt header in csv download of order lines. By default header is included. -->
		<OrderCartDownloadAsCsvIncludeHeader>false</OrderCartDownloadAsCsvIncludeHeader>
		
		<!-- Version 5.1.8 and later. A special tag that will trigger an error to be returned from PlaceOrder call. Intended for testing purposes only and not active by default. -->
		<!-- Currently this setting is available in RESTPlaceOrder and selected customer integrations. -->
		<PartNumberToRaiseException>123456</PartNumberToRaiseException>
	</OrderManager>
	
</OrderManager>

...