Method Summary |
|
public void | addAdjustment(GenericValue adjustment) |
public void | addContactMech(String contactMechPurposeTypeId, String contactMechId) |
public void | addFreeShippingProductPromoAction(GenericValue productPromoAction) Adds a ProductPromoAction to be used for free shipping (must be of type free shipping, or nothing will be done). |
public int | addItem(int index, ShoppingCartItem item) Add an item to the shopping cart. |
public int | addItemToEnd(String productId, double amount, double quantity, HashMap features, HashMap attributes, String prodCatalogId, LocalDispatcher dispatcher) Add an item to the shopping cart. |
public int | addItemToEnd(ShoppingCartItem item) Add an item to the shopping cart. |
public int | addNonProductItem(String itemType, String description, String categoryId, double price, double quantity, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) Add a non-product item to the shopping cart. |
public int | addOrIncreaseItem(String productId, double selectedAmount, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) Add an item to the shopping cart, or if already there, increase the quantity. |
public int | addOrIncreaseItem(String productId, double quantity, Map features, Map attributes, String prodCatalogId, LocalDispatcher dispatcher) |
public void | addPaymentMethodTypeId(String paymentMethodTypeId) Add the Payment Method Type Id to the cart. |
public void | addPaymentMethodTypeId(String paymentMethodTypeId, Double amount) Add the Payment Method Type Id with amount to the cart. |
public String | addProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher) Adds a promotion code to the cart, checking if it is valid. |
public void | addProductPromoUse(String productPromoId, String productPromoCodeId, double totalDiscountAmount, double quantityLeftInActions) |
public void | clear() Clears out the cart. |
public void | clearAllPromotionAdjustments() |
public void | clearAllPromotionInformation() |
public void | clearCartItemUseInPromoInfo() |
public void | clearPaymentMethodId(String paymentMethodId) Clears a specific Payment Method Id. |
public void | clearPaymentMethodIds() Clears the list of Payment Method Ids. |
public void | clearPaymentMethodTypeIds() Clears the list of Payment Method Type Ids. |
public void | clearProductPromoUseInfo() |
public synchronized void | confirmPromoRuleUse(String productPromoId, String productPromoRuleId) |
protected void | finalize() |
public List | findAllCartItems(String productId) Get all ShoppingCartItems from the cart object with the given productId. |
public ShoppingCartItem | findCartItem(String productId, Map features, Map attributes, String prodCatalogId, double selectedAmount) Get a ShoppingCartItem from the cart object. |
public ShoppingCartItem | findCartItem(int index) Get a ShoppingCartItem from the cart object. |
public List | getAdjustments() |
public GenericValue | getAutoUserLogin() |
public double | getBillingAccountAmount() Returns the amount to be billed to the billing account. |
public String | getBillingAccountId() Returns the billing message string. |
public String | getCarrierPartyId() |
public String | getContactMech(String contactMechPurposeTypeId) |
public String | getCurrency() Get the current currency setting. |
public GenericDelegator | getDelegator() |
public Map | getFeatureIdQtyMap() Returns a Map of all features applied to products in the cart with quantities. |
public String | getFirstAttemptOrderId() Returns the first attempt order ID associated with this cart or null if no order has been created yet. |
public List | getFreeShippingProductPromoActions() |
public List | getGiftCards() |
public String | getGiftMessage() |
public double | getGrandTotal() Returns the total from the cart, including tax/shipping. |
public Boolean | getIsGift() |
public int | getItemIndex(ShoppingCartItem item) Returns this item's index. |
public double | getItemTotal() Returns the item-total in the cart (not including discount/tax/shipping). |
public List | getLineListOrderedByBasePrice(boolean ascending) |
public Locale | getLocale() |
public Boolean | getMaySplit() |
public String | getOrderAdditionalEmails() |
public Map | getOrderContactMechIds() |
public String | getOrderId() Returns the order ID associated with this cart or null if no order has been created yet. |
public double | getOrderOtherAdjustmentTotal() |
public GenericValue | getOrderShipmentPreference() |
public double | getOrderShipping() |
public String | getOrderType() Returns the order type. |
public Double | getPartyDaysSinceCreated(Timestamp nowTimestamp) |
public String | getPartyId() |
public Double | getPaymentMethodAmount(String paymentMethodId) Returns set amount of the Payment Method. |
public List | getPaymentMethodIds() Returns the Payment Method Ids. |
public List | getPaymentMethodTypeIds() Returns the Payment Method Ids. |
public List | getPaymentMethods() |
public String | getPoNumber() Returns the po number. |
public int | getProductPromoCodeUse(String productPromoCodeId) |
public Set | getProductPromoCodesEntered() |
public int | getProductPromoUseCount(String productPromoId) |
public Iterator | getProductPromoUseInfoIter() |
public double | getProductPromoUseTotalDiscount(String productPromoId) |
public String | getProductStoreId() |
public List | getSelectedPaymentMethods() Returns a list of PaymentMethod value objects selected in the cart. |
public double | getSelectedPaymentMethodsTotal() Returns the total amount of the selected Payment Method(s). |
public String | getShipmentMethodTypeId() |
public double | getShippableQuantity() Returns the total SHIPPABLE quantity in the cart. |
public List | getShippableSizes() Returns a List of shippable item's size. |
public double | getShippableTotal() Returns the SHIPPABLE item-total in the cart. |
public double | getShippableWeight() Returns the total SHIPPABLE weight in the cart. |
public GenericValue | getShippingAddress() |
public String | getShippingContactMechId() Returns the shipping message string. |
public String | getShippingInstructions() Returns the shipping instructions. |
public double | getSubTotal() Returns the sub-total in the cart (item-total - discount). |
public double | getSubTotalForPromotions() Returns the sub-total in the cart (item-total - discount). |
public double | getTotalQuantity() Returns the total quantity in the cart. |
public double | getTotalSalesTax() Returns the tax amount from the cart object. |
public double | getTotalShipping() Returns the shipping amount from the cart object. |
public double | getTotalWeight() Returns the total weight in the cart. |
public GenericValue | getUserLogin() |
public String | getWebSiteId() |
public void | handleNewUser(LocalDispatcher dispatcher) |
public boolean | isPaymentMethodSelected(String paymentMethodId) Checks to see if a Payment Method is selected. |
public List | items() Returns a Collection of items in the cart object. |
public Iterator | iterator() Returns an iterator of cart items. |
public List | makeAllAdjustments() |
public List | makeAllOrderContactMechs() |
public List | makeAllOrderItemContactMechs() |
public List | makeAllOrderItemPriceInfos() |
public List | makeAllOrderItemSurveyResponses() |
public List | makeAllOrderPaymentPreferences() |
public List | makeAllOrderShipmentPreferences() |
public Map | makeCartMap(LocalDispatcher dispatcher, boolean explodeItems) |
public List | makeOrderItems() |
public List | makeOrderItems(boolean explodeItems, LocalDispatcher dispatcher) |
public List | makeProductPromoUses() |
public void | moveCartItem(int fromIndex, int toIndex) Moves a line item to a differnt index. |
public void | removeAdjustment(int index) |
public void | removeAdjustmentByType(String orderAdjustmentTypeId) |
public void | removeAllFreeShippingProductPromoActions() |
public void | removeCartItem(int index, LocalDispatcher dispatcher) Remove an item from the cart object. |
public String | removeContactMech(String contactMechPurposeTypeId) |
public void | removeEmptyCartItems() Remove quantity 0 ShoppingCartItems from the cart object. |
public void | removeFreeShippingProductPromoAction(GenericPK productPromoActionPK) Removes a free shipping ProductPromoAction by trying to find one in the list with the same primary key. |
public synchronized void | resetPromoRuleUse(String productPromoId, String productPromoRuleId) |
public void | setAutoUserLogin(GenericValue autoUserLogin, LocalDispatcher dispatcher) |
public void | setBillingAccount(String billingAccountId, double amount) Sets the billing account id string. |
public void | setCarrierPartyId(String carrierPartyId) |
public void | setCurrency(LocalDispatcher dispatcher, String currencyUom) Sets the currency for the cart. |
public void | setFirstAttemptOrderId(String orderId) Sets the first attempt orderId for this cart. |
public void | setGiftMessage(String giftMessage) |
public void | setIsGift(Boolean isGift) |
public void | setLocale(Locale locale) |
public void | setMaySplit(Boolean maySplit) |
public void | setOrderAdditionalEmails(String orderAdditionalEmails) |
public void | setOrderId(String orderId) Sets the orderId associated with this cart. |
public void | setOrderType(String orderType) Sets the order type. |
public void | setPaymentMethodAmount(String paymentMethodId, Double amount, boolean isSingleUse) Sets the amount of a Payment Method. |
public void | setPaymentMethodAmount(String paymentMethodId, Double amount) |
public void | setPoNumber(String poNumber) Sets the PO Number in the cart. |
public void | setProductStoreId(String productStoreId) |
public void | setShipmentMethodTypeId(String shipmentMethodTypeId) Sets the shipment method type. |
public void | setShippingContactMechId(String shippingContactMechId) Sets the shipping contact mech id. |
public void | setShippingInstructions(String shippingInstructions) Sets the shipping instructions. |
public void | setUserLogin(GenericValue userLogin, LocalDispatcher dispatcher) |
public void | setViewCartOnAdd(boolean viewCartOnAdd) Returns true if the user wishes to view the cart everytime an item is added. |
public void | setWebSiteId(String webSiteId) |
public int | size() Returns the number of items in the cart object. |
public boolean | viewCartOnAdd() Returns true if the user wishes to view the cart everytime an item is added. |