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@1056072 13f79535-47bb-0310-9956-ffa450edef68
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@1043999 13f79535-47bb-0310-9956-ffa450edef68
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@1043998 13f79535-47bb-0310-9956-ffa450edef68
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@1042411 13f79535-47bb-0310-9956-ffa450edef68
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@1042196 13f79535-47bb-0310-9956-ffa450edef68
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@1042133 13f79535-47bb-0310-9956-ffa450edef68
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@1042024 13f79535-47bb-0310-9956-ffa450edef68
It was introduced by r1039574, related to OFBIZ-4031
I guess Bruno discovered it while working on MyPortal. So it could be that there are more errors like this (<value> tags outside of the <property> tags)
Unfortunately
* The are not reported as errors by XSD when you load the file in an XML editor
* The Label manager does not report them
* The patch is 93074 lines and 5MB
* It's hard to scan this kind of errors in a patch even a small one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039859 13f79535-47bb-0310-9956-ffa450edef68
Anne: some screen widgets set the field title-property instead of titleProperty. This causes errors in the logs, and means that the page title is not being set.
While preparing this patch, I discovered the labels referred to by some of these titleProperties were not available in Order component. However the missing ones were in Ecommerce. So I copied the missing ones to OrderUiLabels.xml.
JLR: instead of copying labels in OrderUiLabels.xml, I moved them to CommonUiLabels.xml: less and more consistent changes in the future.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037559 13f79535-47bb-0310-9956-ffa450edef68
To simplify the macro, I have also used a javascript call for the newmessage request even if it was unneeded (no event or service call)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037507 13f79535-47bb-0310-9956-ffa450edef68
Improve the Chinese translation of word 'Review' to make it same as the term used by local ecommerce suites.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036483 13f79535-47bb-0310-9956-ffa450edef68