Commit Graph
226 Commits
Author SHA1 Message Date
Adam Heath 0394196282 Missed some window->load document->dom:loaded changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@997440 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 18:20:42 +00:00
Adam Heath 400cc79931 Some places in ofbiz were doing dom manipulation without waiting for the
dom to be finished loading.  Wrap such code with a dom:loaded observer.

Also, change all window->load calls to dom:loaded observers.  The former
happens after all images have finished loading, while the later happens
just after the dom has finished parsing.  This is better, as sometimes
the images may take a long time to finish downloading, and until they do,
none of the manipulation will take place.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@997420 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:37 +00:00
Jacques Le Roux 935b8cb590 A quick workaround for a bug reported by Matt Warnock on user ML
When I go to the latest trunk demo, ecommerce store page, in the "browse forums" section on the left side bottom, there is an error that starts with "Expression forum.contentName is undefined on line 26".

It does not fix the reason though, which is somewhere upstream


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@987813 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 18:53:29 +00:00
Jacques Le Roux 17726bfc32 A patch from René Scheibe <<"createUpdateBillingAddressAndPaymentMethod" service called from one page checkout throws Exception due to incorrect field name>> (https://issues.apache.org/jira/browse/OFBIZ-3887) - OFBIZ-3887
Problem:
The method "createUpdateBillingAddressAndPaymentMethod" in CheckoutServices.xml refers to a "billToCardSecurityCode" parameter, which is not existing.
Instead OnePageCheckoutProcess.ftl defines this field with id="CVV2" and name="cardSecurityCode".

Solution:
1. Change the "id" and "name" in OnePageCheckoutProcess.ftl to meet the attribute name of "createUpdateBillingAddressAndPaymentMethod".
2. Extend the attribute mapping line in CheckoutServices.xml so that in case the CVV2 is not entered by the user, the field is defined anyway. (otherwise groovy.lang.MissingPropertyException is still thrown as the field is always accessed)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@983930 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 11:20:55 +00:00
Adam Heath 5b3b7e0c99 Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Jacques Le Roux 0203af4f69 Fix a bug reported by Ruth " eCommerce checkout -> Edit Contact Information -> Save -> Go Back does not return user to checkout" (https://issues.apache.org/jira/browse/OFBIZ-3432) - OFBIZ-3432
Mostly to test the change I just did in mergefromtrunk.bat. Else I'd like to fix also the way the options are shown when using the std checkout (far below, very bad for newcomers). But I have not enough faith, at least today...

I tested enough, and this should not not introduce any side-effects.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@981288 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 19:36:40 +00:00
Scott Gray 33910241f2 URLs defined as javascript variables shouldn't be xhtml encoded because when they are assigned to an element's url attribute (action, href, etc.) the browser doesn't decode them before using them.
Applied patch from Deepak Dixit OFBIZ-3860 and additionally fixed some others that I found.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@963915 13f79535-47bb-0310-9956-ffa450edef68
2010-07-14 00:38:19 +00:00
Jacques Le Roux 45229b0aa5 Improvement on r960336. Fix a problem reported by Scott on dev ML.
I tested locally, and I think I have done it right this time


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@960491 13f79535-47bb-0310-9956-ffa450edef68
2010-07-05 09:10:19 +00:00
Jacques Le Roux f089ea9488 Improvement on r960336 (should fix a problem reported by Scott on dev ML.)
I tested locally, but I'm not quite sure it's sufficient


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@960401 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 21:23:47 +00:00
Scott Gray 3bf464acb3 Update catalog urls to use the new OfbizCatalogUrl directive
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@956485 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 08:05:07 +00:00
Jacques Le Roux e263a69b74 A patch from BJ Freeman "complete web.xml for error reporting" (https://issues.apache.org/jira/browse/OFBIZ-3820) - OFBIZ-3820
BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.

JLR: This will maybe help to better understand some errors on demo servers, and can't hurt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@954135 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 20:47:08 +00:00
Anil Patel 845fa4c1bc Fix missing prefix for shipTo and billTo phone numbers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@951251 13f79535-47bb-0310-9956-ffa450edef68
2010-06-04 03:19:45 +00:00
Jacques Le Roux be88f832a2 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux ef2a1c044c We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Erwan de Ferrieres f719950393 XHTML validation errors round 2++ (specialpurpose/ecommerce) - OFBIZ-3757 (https://issues.apache.org/jira/browse/OFBIZ-3757)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@945852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 19:57:57 +00:00
Jacques Le Roux 49b018484f A patch from Ankit Jain "Incorrect Data Format" https://issues.apache.org/jira/browse/OFBIZ-3544 - OFBIZ-3544
After login to Ecommerce, go to Profile and update Personal Information. Enter a valid date for Birth Date and Passport Expire Date (format: yyyy-mm-dd). Click "Save". Once back to the main screen, click on "Update" again to update the Personal Information. You will see that the two dates are displayed in wrong date formats, e.g. "Aug 25, 1972". So, the date is formatted wrongly somewhere.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@945118 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 12:47:48 +00:00
Jacques Le Roux 7f698d1248 A patch from Nicolas Malin "Pass eCommerce label to Common Label" https://issues.apache.org/jira/browse/OFBIZ-3694 - OFBIZ-3694
Some labels changes, no functional changes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@942818 13f79535-47bb-0310-9956-ffa450edef68
2010-05-10 16:41:18 +00:00
Scott Gray 6547f20ff2 Applied patch from BJ Freeman OFBIZ-3741, layoutSettings.VT_SHORTCUT_ICON was unable to take effect because layoutSettings.shortcutIcon always has content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@942485 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 01:18:02 +00:00
Scott Gray 22639b37d9 Set svn properties on all freemarker files that were missing them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@942386 13f79535-47bb-0310-9956-ffa450edef68
2010-05-08 13:51:19 +00:00
Scott Gray 5ad22ab008 Set svn properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@942377 13f79535-47bb-0310-9956-ffa450edef68
2010-05-08 13:00:42 +00:00
Vikas Mayur 6c640f69aa Minor improvements:
Used prototype utility method to return all the anchor elements inside a form with id="cartForm"
Removed an unnecessary variable declaration


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@942059 13f79535-47bb-0310-9956-ffa450edef68
2010-05-07 12:38:07 +00:00
Bruno Busco 5704ff82af A patch from Blas Rodriguez Somoza
OFBIZ-3734 - XHTML validation errors round 2+ (specialpurpose/ecommerce)
https://issues.apache.org/jira/browse/OFBIZ-3734
Fixed attributes without values 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@939749 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 17:34:19 +00:00
Vikas Mayur 4bd6aa399b Fixed a typo varient -> variant in the comment. Also did minor formatting to the code.
if( -> if (
methodDeclaration () -> methodDeclaration() etc.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@937953 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 07:49:58 +00:00
Bilgin Ismet Ibryam 9cc0df7a6c Applied patch from jira issue OFBIZ-3515 - Use UiLabel for "required"
Thanks Deepak Dixit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@937278 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 13:06:54 +00:00
Jacques Le Roux ec9fb25e30 Fix a bug reported on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@936817 13f79535-47bb-0310-9956-ffa450edef68
2010-04-22 12:48:44 +00:00
Ashish Vijaywargiya 48957724cd Applied patch from jira issue: OFBIZ-3633 - Minimum order quantity.
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/specialpurpose@936228 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 09:36:40 +00:00
Scott Gray 98a41578cd Fix OFBIZ-3523, the demo order confirmation email wasn't including full urls
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@935146 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 08:17:19 +00:00
Bruno Busco 4116bbb5dc A patch from Blas Rodriguez Somoza
OFBIZ-3679 - XHTML validation errors round 2 (specialpurpose/ecommerce)
https://issues.apache.org/jira/browse/OFBIZ-3679

XHTML validation errors

    * Unclosed tags
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@934190 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:46:08 +00:00
Bruno Busco d48b4bf036 A patch from Blas Rodriguez Somoza
OFBIZ-3614 - XHTML validation errors (specialpurpose_ecommerce)
https://issues.apache.org/jira/browse/OFBIZ-3614

XHTML validation errors

    * Unclosed INPUT
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

viewprofile.ftl
Wrong markup at 248, 250. Entity without final ;
&nbsp</#if>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@932719 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 13:50:12 +00:00
Ashish Vijaywargiya 584df31323 Applied patch from jira issue - OFBIZ-3635 - Contact list unsubscription email notification.
Thanks Chandan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@930842 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 11:25:08 +00:00
Scott Gray a9c4e0436a OrderHeader isn't cached so there's no point in trying to do lookups via the cache
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924575 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:54 +00:00
Scott Gray 26464be78c xhtml fix: checked -> checked="checked"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924574 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:36 +00:00
Scott Gray 6c9f954cd6 Removed another superfluous closing div tag and also added a value to the checked attribute to be valid xhtml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924541 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 22:50:38 +00:00
Scott Gray fe395eb248 Removed two superfluous closing div tags
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924442 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:42:01 +00:00
Scott Gray f586eeceba Formatting fixes, no markups changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:41:57 +00:00
Scott Gray 168c56876a Fixed some bad xhtml, added a closing label tag and corrected a closing p tag
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924440 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:41:52 +00:00
Scott Gray 370e3b227a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath 62ede2cc16 Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Jacques Le Roux 6b2c9bbdf0 Fix a security issue reported by Heidi Dehaes at "unsubscribe from a contactlist in the "profile" screen in the ecommerce screens" (https://issues.apache.org/jira/browse/OFBIZ-3396) - OFBIZ-3396
Actually this commit fixes rather 2 security issues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@922042 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 22:25:32 +00:00
Ashish Vijaywargiya 95ee3b6181 Applied patch from jira issue OFBIZ-3493 - OFBiz Improvement on ecommerce product detail page for showing out of stock product.
Thanks Parimal & Pranay for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@912544 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 12:14:35 +00:00
Ashish Vijaywargiya 8b9bbe89db Applied patch from jira issue OFBIZ-3437 - Conversion of one page checkout events to services.
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/specialpurpose@907181 13f79535-47bb-0310-9956-ffa450edef68
2010-02-06 07:12:44 +00:00
Ashish Vijaywargiya 526fe39060 Added colon(:), it would increase the readability for end user.
Patch from Bharat Soni.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@904443 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 10:04:32 +00:00
Scott Gray 6651b16ee7 Applied patch from Mridul Pathak, OFBIZ-3427. A PartyContactMech lookup wasn't being filtered by date and was causing expired records to be retrieved.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@903428 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:34:12 +00:00
Ashish Vijaywargiya 0268aeba8b Applied patch from jira issue - OFBIZ-3416.
Email templates Layout improvement.
In this patch CSS added in email template(FTL).
These changes are done according to following article.
http://articles.sitepoint.com/article/designers-guide-html-email

Thanks Bharat & Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@902365 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 08:35:38 +00:00
Ashish Vijaywargiya 96253e7d7a Applied patch from jira issue OFBIZ-3417 - Add support for iterating shopping cart item in ShowCart.groovy.
Thanks Arpit & Vivek for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@900760 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 13:06:46 +00:00
Ashish Vijaywargiya 73a5cf8cbd Applied patch from jira issue OFBIZ-3415 - All json request should handled thru CommonEvents.jsonResponseFromRequestAttributes in ecommerce.
Thanks Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@900371 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 12:41:50 +00:00
Ashish Vijaywargiya 8076746028 Applied patch from jira issue - OFBIZ-3397- Advance Search should also support the feature base sorting.
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/specialpurpose@897170 13f79535-47bb-0310-9956-ffa450edef68
2010-01-08 11:33:19 +00:00
Scott Gray 3aecd2c831 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Scott Gray 0d32f9fe65 Convert all uses of json event types to chained requests with the common json event at the end.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Scott Gray dc9d13a4ea Reverted previous temporary security fix for request parameters being directly inserted into survey forms and changed all SurveyWrapper instances using this method to instead store the parameter map in the session temporarily.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@889040 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 00:53:47 +00:00