Commit Graph
327 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 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
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
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 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 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
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 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
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
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
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 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 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 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
Sascha Rodekamp 43fc6f20e8 IMPROVEMENT: phone number field length on OnePageCheckout.ftl don't match that of editcontactmech.ftl (https://issues.apache.org/jira/browse/OFBIZ-4449). I use set the maxlength in the OnePageCheckout.ftl to CountryCode = 10 AreaCode = 10 PhoneNumber = 15 Extension = 10. That is how it's defined in the editcontactmech.ftl .
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1177212 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 08:28:56 +00:00
Sascha Rodekamp 03ae9d15ee FIX: If no mail address for a user is set, an Error Trace was rendered in the ViewProfile.ftl. Simple check if the mail address attribute exists fixes this problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1177199 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 08:01:12 +00:00
Jacques Le Roux d5e264f76e Fix a bug reported by Amit Sharma on dev ML, introduced at r1175135
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1175143 13f79535-47bb-0310-9956-ffa450edef68
2011-09-24 10:10:53 +00:00
Jacques Le Roux aada52b19a Fix a bug reported by Kiran Gawde at https://issues.apache.org/jira/browse/OFBIZ-4440 "OnePageCheckout breaks when you are logged in with userid that belongs to PartyGroup"
OnePageCheckout breaks when you are logged in with userid that belongs to PartyGroup. But the quickcheckout doesn't break. This is due to the fact that EditShippingAddress has following line which returns null.

person = delegator.findByPrimaryKey("Person", [partyId : party.partyId]);


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1175135 13f79535-47bb-0310-9956-ffa450edef68
2011-09-24 09:24:39 +00:00
Sascha Rodekamp 63ea540270 OnePageCheckout should reuse UpdateCart while first time rendering (https://issues.apache.org/jira/browse/OFBIZ-4436) A patch from Kiran Gawde which reuses the UpdateCart Screen in the OnePageCheckout to avoid code duplication.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1173975 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 07:35:09 +00:00
Hans Bakker 1d2f4cec3b enable to add a rental product to the shopping cart...was disabled in history somehow...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1172967 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 03:53:32 +00:00
Jacques Le Roux 178e6f45e6 Fixes "QuickCheckout -> New Address -> Back functionality doesn't work" reported by Kiran Gawde https://issues.apache.org/jira/browse/OFBIZ-4411
Same fix than http://svn.apache.org/viewvc?rev=981288&view=rev for OFBIZ-3432. I guess the quirks were introduced by http://svn.apache.org/viewvc?rev=749979&view=rev

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1172243 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 10:43:17 +00:00
Erwan de Ferrieres 8217e134e2 typo corrections : lable -> label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1170985 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 07:39:16 +00:00
Sascha Rodekamp e08f288ea9 FIX: Missing UiLabel and typos on Anonymous Checkout (https://issues.apache.org/jira/browse/OFBIZ-4414) A patch from Carsten Schinzer: custsetting.ftl has typos: Opening tag <lable> is used on four occasions instead of <label> while closing tags correctly refer to </label>. Header of section refers to EcommerceUiLabel "EcommerceYourNamePhoneAndEmail" which is not present in specialpurpose/ecommerce/config/EcommerceUiLabels.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1170968 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:29:54 +00:00
Hans Bakker f1a6aa2ef8 New product type: Fixed Asset Usage For Rental of an asset which is shipped from and returned to inventory. Including Junit test and demo data. More explanation will follow in a blog on the 'what is new page'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1167015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:40:28 +00:00
Hans Bakker bcba2879df adapt the ecommerce component to the new websitecontactlist datamodel
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1159524 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 07:45:28 +00:00
Hans Bakker 732210fb1d update websiteContactlist entity according Jacopo's comments, added services and screens to website and contactlist to maintain the data, a contribution of 'M', an employee of antwebsystems.com
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1159508 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 05:57:25 +00:00
Jacques Le Roux da31f4f21c A patch from Ankit Jain "Update is not working in Shopping List." https://issues.apache.org/jira/browse/OFBIZ-4369
While trying to update any list item in Shopping List the Update is not working.

http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/editShoppingList




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1158608 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 10:07:31 +00:00
Hans Bakker dd4d61513a create a many to many relationship between contactlist and website, and update demo data...screens to follow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1158558 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 07:57:29 +00:00
Hans Bakker 3d2fecf51f add three optional parameters to the macro: <@ofbizUrl fullPath=true encode=false secure=false> which are pretty self explanatory and are needed to generate a proper url within emails
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1155240 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 07:28:04 +00:00
Jacques Le Roux 1509269a9e A patch from Mike (mz4wheeler@gmail.com) "With any browser on any platform, simple checkout displays all options below right column" https://issues.apache.org/jira/browse/OFBIZ-3133
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1153768 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 07:26:16 +00:00
Hans Bakker 9b93b51eff (un)subscribe contactlist did not select active records only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1152073 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 02:00:19 +00:00
Hans Bakker 44690a1d72 improved implementation of rev 1150271: only add contenturl prefix to javascript includes which do not start with http. Suggestion from Scott G.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1151030 13f79535-47bb-0310-9956-ffa450edef68
2011-07-26 09:06:31 +00:00
Hans Bakker c4eee65731 contactlist emails, chamge from forms to url's because forms not always work with several email clients.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1150558 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 06:30:19 +00:00
Hans Bakker 19f6852396 only add contenturl prefix to javascript includes which do not start with http
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1150271 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 03:37:20 +00:00
Hans Bakker 0f2377e834 change baselocation to baseLocation, a suggestion from Nicolas
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1148680 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 10:11:20 +00:00
Hans Bakker bb811085f0 correction on commit 1147733 to have the baseurl available in the contactlist email content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1148648 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 08:22:07 +00:00