79 ElephantMarker marker =
new ElephantMarker(constructor);
80 marker.put(
"contact", contact);
81 marker.put(
"checkout",
this);
82 marker.put(
"cart", cart);
85 marker.process(
"cart",
"none");
89 marker.process(
"cart",
"confirm");
92 marker.put(
"address", getAddress(ShopContext.getInstance().getDelivery()));
93 marker.put(
"mobile", contact.
getConnector(ShopContext.getInstance().getContactPhone()));
94 marker.put(
"pickup", cart.
isPickup());
95 marker.process(
"cart",
"delivery");
98 marker.put(
"address", getAddress(ShopContext.getInstance().getFiscal()));
99 marker.process(
"cart",
"billing");
104 Address delivery = getAddress(ShopContext.getInstance().getDelivery());
105 if(delivery !=
null && !delivery.isEmpty()) {
106 DeliveryContexts dcs = ShopContext.getInstance().getDeliveryContexts();
107 Product product = dcs.getDeliveryProduct(delivery);
108 if(product !=
null) {
109 cart.
addDeliveryItem(product.getId(), 1, product.getTax(), product.getPrice());
112 if(product !=
null) {
113 cart.
addDeliveryItem(product.getId(), 1, product.getTax(), product.getPrice());
116 if(product ==
null) {
118 marker.process(
"cart",
"outofscope");
122 marker.put(
"address", delivery);
124 marker.put(
"fiscal", getAddress(ShopContext.getInstance().getFiscal()));
125 marker.put(
"mobile", contact.
getConnector(ShopContext.getInstance().getContactPhone()));
126 if(ShopContext.getInstance().isSelfTestScope()) {
129 marker.put(
"notificationURL", ElephantContext.getServerUrl(
"http") + ShopContext.getInstance().getNotificationPath());
130 marker.put(
"okURL", ElephantContext.getServerUrl(
"http") + ShopContext.getInstance().getOKPath());
131 marker.put(
"koURL", ElephantContext.getServerUrl(
"http") + ShopContext.getInstance().getKOPath());
132 marker.process(
"cart",
"self-test");
136 marker.process(
"cart",
"proceed");
String getDeliveryValue()
void setStatus(int status)
boolean addDeliveryItem(long productId, double quantity, double tax, double price)
void removeDeliveryItem()
void serializeForOrder(IContact contact)