Commit Graph
516 Commits
Author SHA1 Message Date
Scott Gray fa9a794cc4 CVE-2012-1621: Escape errors returned from ajax calls in the checkout pages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1302218 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 20:31:10 +00:00
Jacques Le Roux 814681d16b A patch from Markus M. May "Typo in CatalogScreens.xml - productCatagories" https://issues.apache.org/jira/browse/OFBIZ-4727
In the CatalogScreens.xml one screen is called productCatagories. Should be spelled productCategories

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1298963 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 18:27:44 +00:00
Scott Gray 27cf3b43dc Demo data bugfix: productTypeId is a required field of Product and records shouldn't be put into the db without supplying a value for it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1297416 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 10:54:36 +00:00
Hans Bakker 2c3efbdb2d reverting 1295029 on request from jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1297007 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 11:16:35 +00:00
Jacques Le Roux 6ed1929086 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Hans Bakker 7876671992 correct url generation for seo friendly url's
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1295029 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 09:23:36 +00:00
Jacques Le Roux 97da897c16 A patch from Markus M. May "Problem when saving a product to a shopping list" https://issues.apache.org/jira/browse/OFBIZ-4589
Steps to reproduce:

    Go to http://localhost:8080/ecommerce/control/editShoppingList
    Login as flexadmin
    Click "create new"
    Paste "WG-1111" in Quick Add to Shopping List SKU box
    Click "Add to Shopping List"




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1293379 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 18:45:36 +00:00
Jacques Le Roux a93bf68d75 A patch from Uwe Allner "Download link for digital products on order history page contains file name, preventing correct resolve of the request" https://issues.apache.org/jira/browse/OFBIZ-4711
I created a product with product type "Finished/Digital Good", and added product content of type "Digital download", providing a file (i.e. some.pdf).
The download link in the order history of the ecommerce application after purchasing the product is rendered as
"/ecommerce/control/downloadDigitalProduct/some.pdf?dataResourceId=10060".
The file name in this URL prevents resolving the correct service (method), and instead just a "404 Not found" is generated.
The link "/ecommerce/control/downloadDigitalProduct?dataResourceId=10060" works as expected.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1293376 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 18:36:04 +00:00
Hans Bakker 7845a2c8f4 changes for configurable service product:
1. Display the configuration button on a product on the catalog manager.
2. Check the config  if the product is the configurable product service then 
    create new product from config(Do the same step as the configurable product).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235698 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 09:01:53 +00:00
Hans Bakker 126bac2fc2 some confusion if allow is a valid parameter, perhaps Disallow is better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235123 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:41:21 +00:00
Hans Bakker ca3a744ab3 better allow all ecommerce
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235118 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:28:21 +00:00
Hans Bakker fed62cf5b1 add robots.txt to the ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235117 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:21:19 +00:00
Jacques Le Roux 02938e1e1e A patch from Kiran Gawde "cardType is not prepopulated on checkout page" https://issues.apache.org/jira/browse/OFBIZ-4665
On Checkout page, credit card information is prepopulated based upon earlier order. But the card Type shows always the first type in the list.

jleroux: replaced tabs by 4 spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1232539 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 19:09:21 +00:00
Erwan de Ferrieres 5a26977691 Missing PageTitleTagResults label, and adding more French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226089 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:43:20 +00:00
Erwan de Ferrieres c3aa09d12a Removing orphan labels, imported at rev. 1039574
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226084 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:37:40 +00:00
Erwan de Ferrieres a5b9bcabac ProductCategories is already defined in ProductUiLabels, no need to have it twice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226080 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:27:59 +00:00
Erwan de Ferrieres 30c0fce678 Some French translations for tags-related uiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226079 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:25:20 +00:00
Hans Bakker b9547e917b add a tagcloud demo to the ecommerce home page, contribution of tom of antwebsystems.com
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1225452 13f79535-47bb-0310-9956-ffa450edef68
2011-12-29 07:05:42 +00:00
Erwan de Ferrieres 0501207d42 Removing JSON handlers as they are deprecated since December 2009. More info @ http://s.apache.org/6zF
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1225242 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 17:32:16 +00:00
Hans Bakker 30d3362fe3 implement the basic janrain package, which enables the login via most social sites, but can not recognize if the same user if logged in from 2 different sites. By default this function is disabled and will not change the functionality of the OFBiz login procedure in any way
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1224876 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 07:39:43 +00:00
Hans Bakker a68aee3f5d add the possibility of adding tags to products next to having keywords to products, can also optionally approve/reject via a status field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1222544 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 03:49:11 +00:00
Hans Bakker b2b3c3b6a1 in ecommerce a user could not update the filemanager section in the ecommerce profile. created a separate security group for that
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1221633 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 07:19:11 +00:00
Hans Bakker 2a8d6c30e4 implement 404 page tracking in google analytics also for the pages coming from the content component. more info at: http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=86927
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1221128 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 07:36:45 +00:00
Hans Bakker 224a972894 new producttype: configurable product service, using inventory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1220622 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 06:40:18 +00:00
Hans Bakker e1e90121cd now possible to add comments when adding a product to the cart which are stored in orderitem attributes and displayed in the shopping cart and order. Possible to switch off in order.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1212266 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 07:20:28 +00:00
Hans Bakker 915d3b1f8c will persist shopping cart even when a user is not logged (over cookie)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1211810 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 10:35:58 +00:00
Hans Bakker f82b05c285 files missing on last commit 1209351
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1209354 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 03:39:50 +00:00
Hans Bakker a5b097835a Return a 404 error and not redirect to control main in the ecommerce: https://issues.apache.org/jira/browse/OFBIZ-4390
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1208335 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 09:06:48 +00:00
Jacques Le Roux 53ca1f3920 Closes OFBIZ-4577 and its subtasks OFBIZ-4575 OFBIZ-4578, reported by Kiran Gawde "viewprofile has lost lot of functionality during refactoring"
jleroux: I simply restored the old screens, and make them default as we decided in the http://markmail.org/message/l2kxjxzdsqtcmedn  thread.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1206690 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 09:25:17 +00:00
Jacques Le Roux 0527f9035c A patch from Kiran Gawde "Dead code - CustomerEvents.xml ->setAnonUserLogin" https://issues.apache.org/jira/browse/OFBIZ-4593
Simple method "setAnonUserLogin" in CustomerEvents.xml is not referenced anywhere.
This method is also implemented in order app and that is referenced during onepagecheckout.

jleroux: moreover the code seems to have been duplicated from there




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1206059 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 04:41:13 +00:00
Hans Bakker 39cf66d0d8 simplify webanalytics entity and moved from product to content, this entity has nomally only a single record so a conversion program is not provided. After upgrade, save the content of the entitye web_analytics_config and drop it in webtools. Then restart and re-enter the saved record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1204455 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 11:34:32 +00:00
Sascha Rodekamp 3068b2da06 OnePageCheckout creates new billing/shipping phone number even if user selects the default values (https://issues.apache.org/jira/browse/OFBIZ-4446, https://issues.apache.org/jira/browse/OFBIZ-4447) A patch from Kiran Gawd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1203129 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 09:50:21 +00:00
Jacques Le Roux a6c362e8ca A patch from Jonatan Soto https://issues.apache.org/jira/browse/OFBIZ-4549
It is missing the related 'ElectronicText' record for a 'DataResource' when dataResourceId=SV-1000-ALT

An error stack trace is shown when displaying the category that uses this content when a locale different to English is set.
http://demo-trunk.ofbiz.apache.org/ecommerce/service-product-SERV-001-c


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1201294 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 18:12:22 +00:00
Jacques Le Roux c3ea2d3060 A patch from Anne Jessel https://issues.apache.org/jira/browse/OFBIZ-4510 "List css before js in ecommerce header"
Trivial patch to list css before js in ecommerce pages. This helps some browsers display pages faster.

jleroux: found also this article http://stackoverflow.com/questions/3967216/order-of-css-and-script-calls-in-a-aspx-page

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1201137 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 00:54:43 +00:00
Hans Bakker 7c6c7e044a fix pagination in productlisting in the order entry screen, but still have different pagination in order and ecommerce
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1200211 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 08:25:48 +00:00
Jacques Le Roux 0bfea05e27 A patch from Kiran Gawde "OnePageCheckout billToAddress2 label has style info" https://issues.apache.org/jira/browse/OFBIZ-4554
shipToAddress2 doesn't have any style specified. So seems like the style for billToAddress2 was left over from old coding or someone added it by mistake. After removing style, it still looks good 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1200207 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 07:45:23 +00:00
Jacques Le Roux 016e3602ba A patch from Kiran Gawde https://issues.apache.org/jira/browse/OFBIZ-4553 "Duplicate 'Continue Shopping' link on order complete page"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1199450 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 20:50:36 +00:00
Sascha Rodekamp 8d3fd03e5c Update jQuery:
jQuery library to version 1.7
jQuery UI to version 1.8.16
jQuery Validation to version 1.9
jQuery Flot to version 0.7
jQuery datetimepicker to version 0.9.7
and jsTree

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1199218 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 12:35:33 +00:00
Hans Bakker 2f26fe782a move blog labels from ecommerce to content and use them from there.....
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1190180 13f79535-47bb-0310-9956-ffa450edef68
2011-10-28 07:17:34 +00:00
Jacques Le Roux fb12c29778 A patch from Kiran Gawde https://issues.apache.org/jira/browse/OFBIZ-4491
"CommonUiLabels resource is missing from EmailOrderScreens.xml#OrderConfirmNotice"

Due to this various labels are not expanded in the email.
Added <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1187515 13f79535-47bb-0310-9956-ffa450edef68
2011-10-21 19:19:45 +00:00
Jacques Le Roux bde9be70d7 Following a message on dev ML removes a whole useless commented out block certainly forgotten in both configproductdetail.ftl files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1183451 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 18:11:56 +00:00
Jacques Le Roux 2654b23bcc Better French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1182257 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 08:27:59 +00:00
Sascha Rodekamp 2b030615e4 UPDATE: Ajax callings in CheckoutProcess.js are not handling server-side errors correctly (https://issues.apache.org/jira/browse/OFBIZ-4342) A patch from Jonatan Soto: All methods that do ajax calls in CheckoutProcess.js are not dealing with the server-side errors. They should be treated in the success callback using an existing method called getServerError(data). This method looks for the _ERROR_MESSAGE* keys of the JSON object returned by the server.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1179340 13f79535-47bb-0310-9956-ffa450edef68
2011-10-05 17:29:13 +00:00
Hans Bakker 26b8ef743e removing debug code from last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178366 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 10:01:05 +00:00
Hans Bakker 1448d07f98 add paging to the shopping list, contribution of tukkata
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178344 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 09:04:58 +00:00
Hans Bakker fb2a3d41c9 seo friendly url did not work on blog entries: reported by Ruth on the ofbiz mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178317 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 07:37:01 +00:00
Jacques Le Roux 398776de54 Closes "The time part (cursors) of the Date Time picker is not internationalized" https://issues.apache.org/jira/browse/OFBIZ-4015
Fixes the problem by:
* Updating datetimepicker from 0.9.3 to 0.9.6 (where a localization folder exists)
* Use the fantastic createJsLanguageFileMapping service Sascha introduced (I just removed the confusing wrong comment about JsLanguageFilesMapping.ftl being generated and added a block for datetimepicker, also in JsLanguageFileMappingCreator.java). A very good dynamic+static tool, kudos Sascha!

Should work also in eCommerce though I did not found any uses

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178199 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 15:59:12 +00:00
Jacques Le Roux 99324e26a1 When you think about the product snippet is useless: there are no products in the categories tree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178131 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 06:41:47 +00:00
Jacques Le Roux 43d3bfb5aa Forgot this file in r1178092
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178093 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 21:49:46 +00:00
Jacques Le Roux 7d43c23fe1 I missed this in r1175130
For a better formatting of breadcrumbs in all cases, fixes a bug introduced (for Visual themes) at r737506, and propagated in r1128983



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1178092 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 21:44:16 +00:00