When the user selects a shipping option and moves to the next step and then comes back to the "Shipping Options" step the previously selected value is not selected on the screen. This is because in the ftl a comparison is made between shippingMethod and chosenShippingMethod. chosenShippingMethod is being escaped so the values will never match. The solution is to use wrapString on chosenShippingMethod.
# Add a product to the cart
# login as any user I used "admin"
# Checkout Step "Shipping Address" (Step 1: Where shall we ship it?)
* Click Next
# Checkout Step "Shipping Options" (Step 2: How shall we ship it?)
* Choose "UPS Air"
* Click Next
# Checkout Step "Payment Options" (Step 3: How shall you pay?)
* Click "Browser" back button, in my code had a request that directed back a step, but this shows the issue
# ISSUE: Now "UPS Air" is no longer selected, after my patch it will be
JLR: this was only with modified code, but it makes sense and can't hurt. I will not backport though
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1068286 13f79535-47bb-0310-9956-ffa450edef68
Attaching patch fixes following issues in ebayStore component
1. Now user can export more than one product to ebay by selecting more than one product and processing them one by one.
2 Show error messages to user in case of any exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1064751 13f79535-47bb-0310-9956-ffa450edef68
one more patch to fix following issues in ebay and ebayStore components
1 Fixed issue of set complete order status in ebay when we complete order in ofbiz.
2 Created record of OrderPaymentPreference in PAYMENT_RECEIVED status.
3 Updated qty of cart item, if same product is adding again in cart during import order from ebay.
4 Set transactionId in cart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1063265 13f79535-47bb-0310-9956-ffa450edef68
Due to missing property "stateProvinceGeoId" in shippingAddressCtx the following call raises an NPE (EbayOrderServices.createShoppingCart, line 1118ff):
List<GenericValue> shipInfo = PartyWorker.findMatchingPersonPostalAddresses(delegator, shippingAddressCtx.get("shippingAddressStreet1").toString(),
(UtilValidate.isEmpty(shippingAddressCtx.get("shippingAddressStreet2")) ? null : shippingAddressCtx.get("shippingAddressStreet2").toString()), shippingAddressCtx.get("city").toString(),
shippingAddressCtx.get("stateProvinceGeoId").toString(), shippingAddressCtx.get("shippingAddressPostalCode").toString(), null, shippingAddressCtx.get("countryGeoId").toString(), firstName, null, lastName);
Checking whether the property is set (not empty) will solve this.
JLR: Norbert did the same for shippingAddressStreet2. I did not check if others were missing, hopefully there are none...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1062762 13f79535-47bb-0310-9956-ffa450edef68
The my time entry screen for hours in Project Mgr shows labels (in English) for the hour columns in following order: sun, mon,tue,wen,thu,fri,sat.
However when entering hours on in e.g the mon(day) column the actual date registered for the hours is for tuesday.
Seems like the week starts on monday, not on sunday
JLR: works well, would need more work for those who prefer to have weeks start on Monday...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1062138 13f79535-47bb-0310-9956-ffa450edef68
Patch to export single product to ebay in ebay store component. Added require attributes in item and call request of export product to ebay after successfully verify item.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061939 13f79535-47bb-0310-9956-ffa450edef68
Steps to test issue:
1. Go to ebayStore -> main
2 Select any demo user account and click on submit
3 Click on Export Product Listing tab in menu
4 Search any product from find screen
5 Select product from list and click on Export To Ebay button
6 Select any ebay category from drop down
7 Change event of this select box is not working properly due to blocking of JS.
JLR: I 1st got caught by the surprising behaviour of the eBay Category drop down (you have to select sub-categs one after the others in the same drop drow), but yes it works (ie you can publish an OFBiz product in the eBay store)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061307 13f79535-47bb-0310-9956-ffa450edef68
If I cancel an order item from ecommerce. I get, the below error displayed on the page.
The Following Errors Occurred:
Unable to cancel order line : WSCO11640 / 00001 / null
There have been a discussion about it in this thread http://markmail.org/message/dfkudyvbksvls333
How it works: you can cancel an order item if you create it or have the ORDERMGR_CREATE or ORDERMGR_UPDATE permissions (I added the later to Sascha's patch, else the order manager would be annoyed ;o)
I think this makes sense, because AFAIK there are no other UIs than
https://demo-trunk.ofbiz.apache.org/ordermgr/control/editOrderItems?orderId=...
and
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/orderstatus?orderId=...
to cancel an order item. So nobody should be able to bypass his/her permissions... Of course, let me know if you think I could have missed something, thanks
Note also that we had to remove fullPath="true" in <@ofbizUrl>cancelOrderItem</@ofbizUrl> (orderitems.ftl), to avoid InsecureFormPostToSecureRequest error. I don't think it raises any security issues though, has it's done from a javascript call with hidden orderItemSeqId parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1059180 13f79535-47bb-0310-9956-ffa450edef68
The reason for the bug was that the request was called with an additional orderId get parameter. But the orderId was still in the parameter map so the request handler created with these two orderIds a orderId List. These list couldn't be interpreted from the groovy script(because a string was expected). The result was the error message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058488 13f79535-47bb-0310-9956-ffa450edef68
Two reasons to this:
# we are not sure the descriptionFieldName is alwayd of the form formName_descriptionFieldName
# anyway we need a form name for call_fieldlookup3 and call_fieldlookup2 just above in htmlFormMacroLibrary.ftl.
While at it, I also removed all question marks in ${uiLabelMap.ProductIncludeSubCategories}? occurrences, it's already in the labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056731 13f79535-47bb-0310-9956-ffa450edef68
Rohit reported a bug in the jQuery implementation (ecommerce):
The find button is not working in the 'googlebase' application. The 'googlebase' application has a page using which u can to search for product to be submitted to google base. the find button is not submitting the page at all.
Sascha: This issue was related to the Lookup Call. The Form in Google Base hadn't a 'name' tag, so the form could not be found. I changed the target by name to a target by Id call (which is better anyways).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056701 13f79535-47bb-0310-9956-ffa450edef68
Rohit reported a bug in the jQuery implementation (ecommerce):
With the jQuery branch being merged into the trunk, 2 new issues have been identified in the onepagecheckout, and they are:
1) the remove item link does not work in the shoppingcart panel, and
2) the cart is not updated if cart quantity is changed or promo codes are entered.
There was also a caching problem in IE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056672 13f79535-47bb-0310-9956-ffa450edef68
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki
Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.
* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels
I simply fixed some typos. I did not test all cases but did a good review.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056497 13f79535-47bb-0310-9956-ffa450edef68
In: specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl:123
<#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress")>
is missing the ?if_exists causing errors in some cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056072 13f79535-47bb-0310-9956-ffa450edef68