It will work as follows;
We will set the special type price as 'MINIMUM_ORDER_PRICE' for a Product in ProductPrice entity. On the basis of it we will get the minimum order quantity of the product on the basis of this price and sale price.
Will get the minimum order quantity for product by division. For example we have selling price of product P1 is $10.00 and its MINIMUM_ORDER_PRICE is $100.00 then minimum order quantity for the product will be --> 100/10 ==> 10.
To achieve the above ;
write a getMinimumOrderQuantity() method in ShoppingCart.java which takes the itemBasePrice and productId as in parameter, and call it where we add, update the cart items and change the quantity to minmumOrderQuantity if it is less then minimum.
Thanks Deepak & Rishi for the contribution and others for providing valuable comments / suggestions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936228 13f79535-47bb-0310-9956-ffa450edef68
Done following:
1. Converted events createUpdateCustomerAndShippingAddress and createUpdateBillingAndPayment to services.
2. Written services in order component.
3. Removed dependency form ecommerce.
4. Moved checkout map processor to order and corrected its reference at all other places in ecommerce.
5. Introduced and seca setAnonUserLogin instead of using event from ecommerce.
6. Small respective changes in OnePageCheckoutProcess.ftl and checkoutProcess.js.
7. Also fixed some of the issues found during testing in old createUpdateShippingAddress and createUpdateBillingAddress services.
Thanks Pranay for the contribution and Arun for your help in testing the patch for Anonymous & Registered user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907181 13f79535-47bb-0310-9956-ffa450edef68
User should be able to sort on SIZE and COLORS kind of features associated with Products. This sort will be additional sort with ProductFields and ProductPrice. Here we need to add the additional sort not to change the existing.
This will be achieve in the similar manner the ProductPrice in the ProductSearch.java and ProductSearchSession.java.
Thanks Deepak & Rishi for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897170 13f79535-47bb-0310-9956-ffa450edef68
And generalized to all FTL files where needed.
I only tested for lookups, but should be ok, since the same trick is used in other FTL files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887166 13f79535-47bb-0310-9956-ffa450edef68
Patch for update cart on one page checkout page when a gift item a added in cart after applying valid coupon code.
Steps to test:
1. Create a new product promo for 'Gift With Purchase' action with require coupon code.
2. Go to ecommerce -> main
3. Purchase X product and go for one page checkout page.
4. Enter coupon code
5 If this coupon code is valid according to condition given in promotion then a you will get Y product as gift in cart with 0.0 price.
Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885425 13f79535-47bb-0310-9956-ffa450edef68
Order Confirmation Notice
NOTE: This is a DEMO store-front. Orders placed here will NOT be billed, and will NOT be fulfilled.
Order not found with ID [WSCO10040], or not allowed to view.
Thanks Akash for the contribution - Good find.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884903 13f79535-47bb-0310-9956-ffa450edef68
Working Area: OnePageCheckout >> ShoppingCart.
Change minicart item price according to the price rule that will change according to the item quantity.
A product have different price as following:
A product feature contain different price rule with different condition for action like
1 product ---> Price $10.00
50 product ----> Price $8.00 (productPriceAction.amount = "-20.0" with productPriceActionTypeId="PRICE_POL").
If we change the quantity on shoppincart in OnePageCheckout the item price is not reflecting in the cart.
For this we need to add an out item price from getShoppingCartData service so that we can update value in the OnePageCheckout shoppingcart.
Thanks Brajesh & Rishi for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884780 13f79535-47bb-0310-9956-ffa450edef68
In this patch table are removed for non tabular data and used div, and add CSS code for layout issue that created due to this cleanup.
Thanks Rohit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835861 13f79535-47bb-0310-9956-ffa450edef68
Layered navigation in an Ecommerce application allows the user to filter the product listing based on categories, features and price ranges. The user can apply multiple filters to the given product listing. He can narrow or expand his search and try different filter combinations so as to find the desired product.
I have implemented Layered Navigation in OFBiz ecommerce with following filters:
1. Sub Categories: This filter is shown whenever there are sub-categories present under the top-level category or current selected category. Count of products within the category is shown against each category, works with multilevel deep category hierarchy. Selecting a sub category will show products within that category and filters will be updated accordingly for the new product list.
2. Features: Feature filters are grouped by Feature Types. Count of products that has the feature associated as standard, selectable or distinguishing is shown against that feature. Current Implementation has feature filters for ProductFeatureType="COLOR".
3. List Price Range: This filter will always show. When applied filters product based on List Price Range. Current implementation is done by listing static price ranges at code level.
The above implementation is completely based on the OOTB Product Search functionality with few additional methods in ProductSearchSession to derive count against different type of filters.
This is collaborative contribution from Mridul Pathak, Jacopo Cappellato & Scott Gray.
Thanks Guys for such a nice contribution - I am sure community will love seeing the existence of "Layered Navigation" in OFBiz trunk.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835372 13f79535-47bb-0310-9956-ffa450edef68
On onePageCheckout page in Shopping Cart(step1), if we enter any character(not numeric value) in quantity text box, then this text box become empty and show 'required' validation message, It should show "Please enter a valid number in this field."
Step to reproduce:-
1) Add item in cart.
2) Move on onePageCheckout page.
3) Enter any character in item quantity text box.
4) Then it show validation message "required".
Thanks Amit and Rohit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834493 13f79535-47bb-0310-9956-ffa450edef68
Patrick : The goal of this improvement is to allow at the view level, through setup in the controller.xml file, to generate no-cache http headers. Example is included for the showcart view of the ecommerce application.
JLR : I have commented out Patrick's example in controller and put a comment about its usage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833096 13f79535-47bb-0310-9956-ffa450edef68
geoAutoCompleter.js currently resides in specialpurpose/ecommerce component. But now it is also used in OrderViewScreen.xml#OrderHeaderView screen. First of all we can't have dependency of ordermgr on ecommerce component. Secondly, if I am developing a custom ecommerce application with mount point /ecommerce, thus overriding specialpurpose/ecommerce webapp, and copying the geoAutoCompleter.js to my custom application (to customize) in a directory structure other than that of specialpurpose/ecommerce, then the JS file is not loaded in OrderHeaderView screen due to change of location. The only reason is the dependency stated above. Hence this change is vital.
While doing this change, all the references to geoAutoCompleter.js will need to be updated too.
Thanks Arpit for the contribution.
Special thanks to Mridul for providing notes for the implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833026 13f79535-47bb-0310-9956-ffa450edef68
Rohit : There Should be a link with name "About us" that will be shown detail for ofbiz.
Jacques : Not sure it's very helpful OOTB (there is already the same link from "Powered by OFBiz'), but may be used by third parties.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832402 13f79535-47bb-0310-9956-ffa450edef68
Ecommerce, Webtools and hhfacility components
Moved forms from webapp to widget folder
Removed empty folders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829443 13f79535-47bb-0310-9956-ffa450edef68