Commit Graph
3703 Commits
Author SHA1 Message Date
Jacques Le Roux 79e70957d3 A patch from Arun Patidar "Some misc issues in ebay component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
JS is blocking during Export Product to ebay from ebay component.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1060236 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 08:28:58 +00:00
Adrian Crum 610023a681 Removed deprecated box* CSS styles from some screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1059364 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 16:27:42 +00:00
Jacques Le Roux a30d648b2a A modified patch from Sascha based on an intial patch from Abdullah Shaikh "permission error on cancel order item from ecommerce" (https://issues.apache.org/jira/browse/OFBIZ-3075) - OFBIZ-3075
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
2011-01-14 21:47:23 +00:00
Jacopo Cappellato 4940fd43be Another group of missing licence heders.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058590 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:51:38 +00:00
Jacques Le Roux 3c4dad66b2 A patch from Sascha Rodekamp <<Error when "Add All to Cart" or "Add Checked to Cart" viewing an order in ecommerce>> (https://issues.apache.org/jira/browse/OFBIZ-3881) - OFBIZ-3881
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
2011-01-13 10:27:49 +00:00
Ashish Vijaywargiya 8e18e90d86 Minor bug fixes.
1. Changed 'uiLabel' to 'uiLabelMap'.
2. Added condition to avoid null pointer exception.
3. Fixed issue of JS function. 
Thanks Arun! 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058057 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:45:00 +00:00
Jacopo Cappellato 9b9b427c44 Removed unused handler from controller files; replaced handlers that were still using the old ScreenWidgetViewHandler with the current MacroScreenViewHandler; deprecated compress.HTML property with output specific properties like screen.compress; this fixes a rather important issue happening when the compress.HTML setting is set to true: non html output screens like for example tab delimited exports were messed up.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:44:35 +00:00
Jacques Le Roux ba42a2a674 Since anyway we rely on a form name in renderLookupField, I changed the way Sascha fixed OFBIZ-4068 (see r1056701)
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
2011-01-08 16:30:15 +00:00
Jacques Le Roux b37b73cfc1 A patch from Sascha Rodekamp "Find button is not working in the 'googlebase' application" (https://issues.apache.org/jira/browse/OFBIZ-4068) - OFBIZ-4068
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
2011-01-08 13:14:19 +00:00
Jacques Le Roux 0966955c95 A patch from Sascha Rodekamp "jQuery ecommerce onepagecheckout issue" (https://issues.apache.org/jira/browse/OFBIZ-4067) - OFBIZ-4067
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
2011-01-08 09:18:05 +00:00
Jacques Le Roux 7fd830e291 3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964
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
2011-01-07 20:40:31 +00:00
Jacques Le Roux 8b3cf650b5 Fix bugs reported by Jeremy Wickersheimer at "Error in order email confirmation template" (https://issues.apache.org/jira/browse/OFBIZ-4096) - OFBIZ-4096
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
2011-01-06 20:57:48 +00:00
Hans Bakker f982ac8e17 add a popular categories section to the ecommerce frontpage which is generated from the data warehouse of real orders. Also adjusted the sales reports from the data warehouse by week/month/year. Demo data included is for display only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1055774 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 07:37:45 +00:00
Marco Risaliti 6322e71266 MULTIFLEX ecommerce Advanced Search layout issues (OFBIZ-3943)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1055188 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 21:38:10 +00:00
Bruno Busco 19b909d62f Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052890 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 14:28:16 +00:00
Hans Bakker 02ab5da288 also add alternative packaging on non variant products and include demo data for that
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052458 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 06:53:27 +00:00
Hans Bakker 29b43be89e some missing files on rev 105244: contact list update
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052457 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 06:50:56 +00:00
Hans Bakker 97be8d34db make the ecommerce 'contactus' not require login, add captcha and will try to match entered email address to party, whennot create the party.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052449 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 05:45:19 +00:00
Hans Bakker 0eb6c5f372 several improvements and completion of the email contactlist subscribe and unsubscribe functions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052447 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 04:37:20 +00:00
Marco Risaliti cb5e179cc1 Replace some fail-message to fail-property tag all specialpurpose components (OFBIZ-1874)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1052038 13f79535-47bb-0310-9956-ffa450edef68
2010-12-22 19:22:45 +00:00
Hans Bakker 8423bb4ed8 add demo product which is ordered when it is sold
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1051018 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 08:32:37 +00:00
Erwan de Ferrieres 5042c691e6 Migrating from lucene 2.4.1 to lucene 3.0.3
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1050811 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 11:12:53 +00:00
Adrian Crum 735da9ffdc Moved user login UI artifacts from the Party component to the Common component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1050766 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 06:07:53 +00:00
Adrian Crum d897e9ea52 Eliminated more redundant screens in Project Manager.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1050765 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 05:58:37 +00:00
Adrian Crum 71f65add97 Eliminated a redundant screen in Project Manager. This is in preparation for moving userlogin UI artifacts to the framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1050759 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 05:07:59 +00:00
Jacques Le Roux e2bcb4b858 A patch from Sascha Rodekamp "Update the Datepicker to version 0.9.1" (https://issues.apache.org/jira/browse/OFBIZ-4056) - OFBIZ-4056
Updates the timepicker. Seems that it's more stable and they fixed a few issues. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1049151 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:39:30 +00:00
Scott Gray d1d8905fef Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray b06aed2cb5 Remove unnecessary semicolons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044917 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:03 +00:00
Scott Gray 6a0b8b494c Replace empty if block with a condition for the else block
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044915 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:59 +00:00
Scott Gray f2fe9b9086 Access static fields in a static way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:51 +00:00
Jacques Le Roux c008c6ccb3 Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Adam Heath 1f5ae9d0c9 Remove some trailing whitespace from lines; only doing files that will
be modified by soon to be committed changesets.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044227 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:25 +00:00
Adam Heath 4447acce3e Fix several final newline problems, in files I will be changing in the
near future.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044226 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:05 +00:00
Adam Heath a1c6a4d758 Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Adam Heath 4c4151b05d Oops. Remove FIXME keywords, which were used by me as a reminder to fix
the lines properly, while I was in the process of deprecating other
delegator methods.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044047 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 17:39:13 +00:00
Adam Heath add495242a Yet another bad bug. The name/value pair was never actually turned into
a map.  findByAnd(entityName, field, value, list) was never a valid
call.  However, this code still compiled, as it ended up using the
vararg variant of findByAnd.  If this code had ever been run, then it
would have blown up.

broken since: 984366, initial commit
date: Wed Aug 11 10:39:10 2010 +0000

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1043999 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:14:47 +00:00
Adam Heath 60488eebb1 When thte findByAnd->findList change was done, the parameters to the new
findList method were added, but the actual method name itself was not
changed.  However, since there was a vararg version of
findByAnd(Object...), this meant the code actually compiled anyways, so
the problem was not detected.

broken since: 654934
date: Fri May 9 20:57:23 2008 +0000

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1043998 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:14:41 +00:00
Jacques Le Roux b1003c251b A patch from Anne Jessel "Wrong product displayed as associated product" (https://issues.apache.org/jira/browse/OFBIZ-4023) - OFBIZ-4023
To reproduce:
    * add two associated products to a main product, both with "Complementary or Cross-Sell" association type
    * view the main product in ecommerce

Expected behaviour: the two associated products are listed near the bottom of the page
Actual behaviour: two products are listed at the bottom of the page, but only one of them is an associated product. The other is the main product.
The problem is caused by the value of a freemarker variable changing at a point where other freemarker code assumes the variable does not change. The execution path is complicated.
The patch fixes the problem by saving the value of the key variable into another variable, and restoring it later. However I do wonder if there is a better solution.

JLR: I did not try to find a better solution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042411 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:09:57 +00:00
Bruno Busco 867a0de69b Reverted revision 1042196 as suggested by Adam.
This change introduces framework dependencies from applications.
More work is needed to the patch in https://issues.apache.org/jira/browse/OFBIZ-4037 before committing again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042250 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 22:29:33 +00:00
Bruno Busco e93bb3d607 https://issues.apache.org/jira/browse/OFBIZ-4037
Moved the feature that allows a new user to register for an account from MyPortal to the framework so that it is available in any application.
It has also been slightly reworked (code cleaning and internationalization).
Two flags in general.properties allows to configure if the register function must be enabled or not and if the captcha function should be used.
The captcha function needs to be improved because at the moment the code is contained in an hidden field so that it is very easy for a computer to bypass it.
A possible fix for this could be to put the MD5 coding of the captcha code in the hidden field.
Then the event that checks the code should compare the MD5 codes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042196 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 14:58:18 +00:00
Bruno Busco 432de09046 No funtional changes. Only code formatting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042136 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:51:59 +00:00
Bruno Busco d63b6fa1e3 Changed several ecommerce ftl files rendering screenlets so that the HTML is the same as the one that is rendered by the screenlet widget.
Added screenlet styles to the ecommain.css
Added several missin screenlet-body tags.
This allows better and more omogeneus rendering when mixing together FTL and screenlet widgets.
To be continued...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042133 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:34:47 +00:00
Jacques Le Roux a3d313f747 A patch from Anne Jessel "Improve handling and display of additional product images" (https://issues.apache.org/jira/browse/OFBIZ-4024) - OFBIZ-4024
This patch adds several closely-related features, intended to improve the display of products and their images in the ecommerce webapp.

When additional images for a product are uploaded via the Catalog, the scaled versions that were already being created in service addAdditionalViewForProduct are now recorded as ProductContent. This makes them easily available for use elsewhere.

New ProductContentType values were added to identify these content types. The obviously consistent string to use for these was too long, and so I had to choose something less consistent, but shorter and hopefully still clear. I used XTRA instead of ADDITIONAL.

The sizes to which additional images are rescaled has been changed, so they better fit in the ecommerce display. Relevant sizes in productdetail.ftl have been updated to match these sizes.

The ecommerce product display now uses the scaled additional images if available, rather than relying on the web browser to scale the images.

When displaying a single product in ecommerce, the main image is larger than the additional images. Hovering over an additional image displays a larger version in place of the main image.

Clicking on an additional image displays a popup with a detailed version of the image.

To use the new features, one or more large images (suggest at least 600x600) should be attached as additional images to a product, using the form on the bottom of the content tab for a product in Catalog. Viewing the product in ecommerce should then exhibit the above behaviour.

I have tried to maintain backwards compatibility, so that products with the old-style use of additional images will continue to display as they did previously. This means some of the code is not as streamlined as it might be.

JLR: You might prefer to keep the old ImageProperties.xml values...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042024 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 22:05:19 +00:00
Hans Bakker 8c3ebac579 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Hans Bakker c897f8d9d6 allow single pieces and boxes with a numkber of pieces share the same inventory location but can however be sold at optionally different prices. More explanation will be given in the new feature list of december 2010. Contribution of tukkata.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040908 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:26:47 +00:00
Adam Heath 734cea79c3 Fix several xml files that had DOS line endings; converted them to UNIX,
so that on fresh checkouts they will be auto-converted to native.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040833 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:15:17 +00:00
Adam Heath 650c9fb483 Fix some missing " in attribute value definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040804 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:04:16 +00:00
Erwan de Ferrieres a911e5c903 Closing a not closed tc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040188 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 16:56:36 +00:00
Jacques Le Roux 40fdd4e6df According to Dukian at OFBIZ-4031 those lines should be removed. I just kept 2 duplicates in Chinese, and one in German
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1040078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 11:46:56 +00:00
Jacques Le Roux d62d950736 Fixes the last error remaining from r1039574, OFBIZ-4031
Thanks to Dukian's help

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1039892 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 15:31:28 +00:00