Commit Graph
138 Commits
Author SHA1 Message Date
Ashish Vijaywargiya 03578ad7f8 Minor fix - This was slipped from my mind in previous commit in eBay.
This will help to ignore already imported orders in the system.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814674 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 14:58:10 +00:00
Ashish Vijaywargiya 55acacfc14 Another pass on eBay Order Imports using GetOrders request.
Following things are done in this patch:

-- Moved commonly used methods to EbayHelper.java file.
-- Created two main methods "readGetOrdersResponse" & "createShoppingCart" to read xml data coming from Ebay and then create order in OFBiz respectively.
-- Also provided sample response XML data that is being generated from Ebay.
-- Changed the UI in which first it was searching orders and then from the orders list we were importing orders.
Now we have only one screen available in which search criteria for order is provided & on the basis of that search criteria order gets imported in OFBiz.
-- Previous work for importing Orders(Not exactly order - it was transaction) is working fine OOTB. 

Here are few things that I am thinking to do in this area soon:
-- Improve error handling code - code cleanup.
-- Provide scheduled service UI(or prepare demo data for scheduling job) in which the orders will be imported automatically in the system instead of searching and then importing done by end user. - Thinking the best way to handle it.

Thanks Rishi & Sumit for discussing few things/ issues in b/w the development of this pass.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814560 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 10:18:43 +00:00
Ashish Vijaywargiya d824f87f4f Initial pass on new call "GetOrders" (More to come in a day or so) - http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetOrders.html. OOTB we have "GetSellersTransactions" call implemented but we have observed something strange in its functionality.
Here are few reason for this implementation:
-- In "GetSellersTransactions" itemId(ProductId in ebay) is provided in the OrderHeader.externalId field which doesn't seems correct.
-- Suppose we have Single Order created in eBay if some one wins the auction and in that order we have 3 order items.
Then "GetSellersTransaction" call creates three orders in OFBiz for all those three items that are associated with Single Ebay order.
In short "GetSellersTransaction" request treat three item as three transactions.
-- "GetOrders" call will return the list of orders on the basis of search criteria and then we will create(Import) the Order in OFBiz from the resultant list of orders.
-- Current implementation for "GetSellersTransactions" will remain as it is in trunk - as we don't know if someone might be using it in their custom projects.

Also did miscellaneous cleanup.
Thanks Jacopo for providing your notes for this implementation & also discussing issues in b/w development - as always your notes were awesome.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813444 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 13:58:33 +00:00
Ashish Vijaywargiya ceea618353 Cleanup - Moved the screens definition to appropriate location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812948 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 13:25:25 +00:00
Ashish Vijaywargiya 7e4472151c Improved the eBay code for OrderImport - as it was broken due to missing ShipmentMethodType values.
Now I am able to import order successfully in ebay component.
Thanks Jacopo for discussing things with me in this Ebay component(like workflow and many more) and providing useful notes in achieving the goals.
My previous contribution in Ebay area was based on Jacopo's notes - more to come in a day or so.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812777 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 05:24:43 +00:00
Ashish Vijaywargiya ab2399edd3 Removed duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812462 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 11:15:20 +00:00
Ashish Vijaywargiya b9e1b86fd0 Moving a method that prepares EbayConfigurations to Helper class - These configuration settings can be used by few methods / services present inside ImportOrdersFromEbay.java. Will reduce the duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812437 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 10:28:55 +00:00
Ashish Vijaywargiya 0a735c1e4a Added following feature in ebay export:
-- Buy it now is the optional value for a product that you send to eBay. Once this value is entered by user - this option allow user to win auction immediately. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812343 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 05:00:56 +00:00
Ashish Vijaywargiya 1b3f6bd28b User friendly message will be displayed to User Interface. More improvements can be done in this commit.
Now the message looks like:

In case of success:
The following occurred:
The data exported successfully to eBay.

In case of error:
The Following Errors Occurred:
Input data for tag <Item.Quantity> is invalid or missing. Please check API documentation.

Previously the message was shown as it is in XML form returned from ebay server.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812213 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 16:04:16 +00:00
Hans Bakker 42ce8ca70c added dummy record to make ebay demo data load the first time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811965 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 01:32:43 +00:00
Ashish Vijaywargiya 0a7be805af Now added customXml on the User Interface so that user can change the values passed from there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811652 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 14:19:23 +00:00
Ashish Vijaywargiya 763c933850 Following things are done in this commit.
-- Moved eBay configuration settings to a new entity - EbayConfig. Property file configuration support also exists in current code.
-- Also prepared the demo data for this new entity.
-- For default webSiteUrl prepared demo data in WebSite entity so we can show default value on the form.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811645 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 13:32:12 +00:00
Ashish Vijaywargiya d60557d9b4 Removed Duplicate Code - Created new method that fetch values from property file and return those values in a map.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811619 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 10:47:59 +00:00
Ashish Vijaywargiya e5a723cb59 Few more improvements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811606 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 08:43:36 +00:00
Ashish Vijaywargiya 4b5702211c Minor Improvements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811600 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 08:01:59 +00:00
Jacopo Cappellato 53008d2f2b Misc enhancements to the eBay export: hardcoded values moved from source files to configuration file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811380 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 13:12:07 +00:00
Ashish Vijaywargiya 709ccb6927 Small fix - This was blocking Ebay request with empty description.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810981 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 14:51:29 +00:00
Jacopo Cappellato 094d1b184f A bunch of enhancements and cleanups for the eBay component; added ability to:
* export product images to eBay Action
* export a description based on content (a new product content type has been added for this purpose)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 11:24:43 +00:00
Jacopo Cappellato 21d7ea22e0 Enhancements to the way eBay categories are set:
* improved ui to better handle manual selection of the ebay category
* added support for automatic export of category based on the ProductCategory set (for eBay) for the product


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808972 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 17:59:39 +00:00
Jacopo Cappellato 4d6a38a7fb Better default values for export options for eBay auctions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808849 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 11:11:23 +00:00
Jacopo Cappellato 5e6b49a2f2 Added ability to define starting prices for eBay auctions in the ProductPrice entity. Misc cleanups to the export service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808848 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 11:07:35 +00:00
Jacopo Cappellato 1da9c2f1f5 Fix for demo xml settings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808839 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 10:16:27 +00:00
Jacopo Cappellato fb25ef2a2b Removed debug statement that I have committed in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808834 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 10:11:34 +00:00
Jacopo Cappellato 132b5a291a Misc enhancements to the eBay export process; the most relevant one is the ability to include xml elements to define static settings for the auctions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808833 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 10:09:31 +00:00
Jacques Le Roux 4c442ee379 Some fusiness
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Jacopo Cappellato 242fc07915 Misc fixes to the ebay export features: there are still a lot of hardcoded values but at least now it is possible to publish something. Still a lot to do here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803518 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 14:01:48 +00:00
Jacopo Cappellato b3fe77843b Slightly better error handling: at least now the xml error message response from eBay is printed in the screen, instead of the "Items published successfully" message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803469 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 12:13:58 +00:00
Jacopo Cappellato 4020fede41 Small fixes (but the codes will have to be improved) to make it a little easier to test the eBay interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803436 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 10:37:05 +00:00
Jacopo Cappellato 5f2f6f3115 Fix for NPE when emailAddress is not entered exporting products to eBay; thanks to Marco Risaliti for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803133 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 14:06:37 +00:00
Jacopo Cappellato 19b6b4b814 Fixes for error messages in the logs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@801069 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 06:00:38 +00:00
Jacopo Cappellato 84d0db6341 Added missing security element to request map.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@799871 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 14:33:29 +00:00
Jacopo Cappellato c18b134a9f Small enhancements to the eBay interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798909 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 13:57:00 +00:00
Jacopo Cappellato f1ab30832c Fixed wrong field name for the quantity IN parameters for eBay product exports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798851 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 10:46:05 +00:00
Adrian Crum ce1660b06a Chinese translation for the specialpurpose folder, provided by Shi Yusen - https://issues.apache.org/jira/browse/OFBIZ-2723.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798580 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 15:59:04 +00:00
Jacques Le Roux 999bd7c577 Fix following Chris Howe's message in dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764195 13f79535-47bb-0310-9956-ffa450edef68
2009-04-11 13:00:24 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux 76f5ca6638 Secure URLs, we don't need to duplicate in from-field when param-name is the same
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762215 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 06:25:24 +00:00
Jacques Le Roux e8426631e8 Securing URLs, link element in screens and menus : 22th set + tabs to 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@761214 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:14:40 +00:00
Jacques Le Roux 2ae583d0a1 Securing URLs, link element in screens and menus : 10th set + tabs to 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@760787 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 05:50:07 +00:00
Jacques Le Roux 40f5281303 20th set of changes explained in https://issues.apache.org/jira/browse/OFBIZ-2243
In hyperlink and sub-hyperlink elements, replacement of target parameters by parameter sub-elements


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759680 13f79535-47bb-0310-9956-ffa450edef68
2009-03-29 13:33:53 +00:00
Jacques Le Roux bb2d8d5bad 19th set of changes explained in https://issues.apache.org/jira/browse/OFBIZ-2243
In hyperlink and sub-hyperlink elements, replacement of target parameters by parameter sub-elements


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759667 13f79535-47bb-0310-9956-ffa450edef68
2009-03-29 11:14:57 +00:00
Adam Heath 543b1f29f7 Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759258 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 17:02:01 +00:00
Adam Heath b3b28b713f Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757101 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:47:53 +00:00
Marco Risaliti a5efbde64f A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755368 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 19:51:28 +00:00
Bruno Busco a36cb4dd3e Changed WebSiteId parameter description to be more general
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751214 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 07:19:07 +00:00
Jacques Le Roux 639a784790 while( => while (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750998 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:38:03 +00:00
Jacques Le Roux 13a934f823 In spirit of Adam's r749341 and following http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#489
The idea is also that a lot of code is duplicated and then changed (copy/paste). Hence having a rightly formatted code help to keep it rightly formatted
1st (simple) step : ){ => ) { (I checked all occurrences but of course other pairs of eyeballs are welcome)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750993 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:31:13 +00:00
Adam Heath ec2441c8dc Remove executability from these files, that make no sense.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749176 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 04:06:50 +00:00
Hans Bakker 041ccc0a7d rename applicationext component to commonext
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748388 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 04:05:47 +00:00
Hans Bakker 5192a24e48 introduction of a common component for applications. moved the 2 lines containing party info to this component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748144 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:36:51 +00:00