Amount box in the configurable PC and the variant products in ecommerce?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Amount box in the configurable PC and the variant products in ecommerce?

Alex D. Fleming-2
Why Amount box in the configurable PC and the variant products in ecommerce
is provided ?
I noticed that the add_amount field has been removed from the parameters map
in the ShoppingCartEvents.java / addToCart method.

String selectedAmountStr = "0.00";
if (paramMap.containsKey("ADD_AMOUNT")) {
selectedAmountStr = (String) paramMap.remove("ADD_AMOUNT");
} else if (paramMap.containsKey("add_amount")) {
selectedAmountStr = (String) paramMap.remove("add_amount");
}

Please help me to come out from this.

--
Regards
Alex D. Fleming
Reply | Threaded
Open this post in threaded view
|

Re: Amount box in the configurable PC and the variant products in ecommerce?

Bilgin Ibryam
Hi Alex,

The amount field should be hidden in these screens.
I suppose it is css styling issue only.

selectedAmountStr = (String) paramMap.remove("ADD_AMOUNT");
removes the entry from the map, but also returns the value of ADD_AMOUNT
key.

Bilgin