@Service(value="bli18nUpdateCartServiceExtensionHandler") public class i18nUpdateCartServiceExtensionHandler extends AbstractUpdateCartServiceExtensionHandler implements UpdateCartServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected boolean |
clearCartOnLocaleSwitch |
protected UpdateCartServiceExtensionManager |
extensionManager |
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
i18nUpdateCartServiceExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fixTranslations(Order cart) |
void |
init() |
protected void |
translateOrderItem(OrderItem orderItem,
Sku sku) |
ExtensionResultStatusType |
updateAndValidateCart(Order cart,
ExtensionResultHolder resultHolder)
If the locale of the cart does not match the current locale, then this extension handler will
attempt to translate the order items.
|
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledprotected static final org.apache.commons.logging.Log LOG
@Value(value="${clearCartOnLocaleSwitch}")
protected boolean clearCartOnLocaleSwitch
protected CatalogService catalogService
protected UpdateCartServiceExtensionManager extensionManager
public i18nUpdateCartServiceExtensionHandler()
@PostConstruct public void init()
public ExtensionResultStatusType updateAndValidateCart(Order cart, ExtensionResultHolder resultHolder)
updateAndValidateCart in interface UpdateCartServiceExtensionHandlerupdateAndValidateCart in class AbstractUpdateCartServiceExtensionHandlercart - resultHolder - protected void fixTranslations(Order cart)
Copyright © 2014. All Rights Reserved.