Re: Product image problems

2010-12-16 Thread Anne
On 17 December 2010 12:07, Paul Cullum  wrote:
...
>
>   3. Is there a way to pick which image is used for each product (on a
>   per product basis) when displaying the catalog or the product info
>   pages?
>

Not sure this if this is what you mean, but...

In the Content tab for the product, you can add an image in the
Override Simple Fields section. This is the one normally displayed
when there's only room for one image.

You can add extra images further down the same screen, under Add
Additional Images. These are displayed when viewing the product (i.e.
not a catalog) in ecommerce.

If you need different behaviour, you may need to alter the relevant .ftl file.

Cheers,
Anne.

-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: sa...@cohsoft.com.au

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/


Re: Product image problems

2010-12-16 Thread BJ Freeman

not sure what your asking.
you use the original size then the software re-sizes the images.
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductContent?productId=dropShip1
which of the re-sized images is hard coded in the widgets.
but view source of a page you can see what widget is being used and see 
what image size is used. By image size I mean by label not actual sizes.


Paul Cullum sent the following on 12/16/2010 5:07 PM:

Well... with a bit more experimenting I answered almost all of my own
questions.

1. GIF resizing doesn't seem to deal properly with transparency.

2. Still not sure if there is an ideal size but given the answer for
number 4 and whatever the answer for number 3 happens to be it may not
really matter.

3. I'm still not sure how to pick the image size to be used for the
products shown in the catalog.

4. Sized are defined here... I'm not sure how I missed
this:{ofbiz.home}/applications/product/config/ImageProperties.xml

5. (or the second number 4) PNGs seem to work. In fact they work better
than GIFs since transparency is respected when resizing.

Having gone through the bunch I'll make a point of stating that if you
could only answer one question it would be great if it were number 3:

3. Is there a way to pick which image is used for each product (on a
per product basis) when displaying the catalog or the product info
pages?

Thanks,
Paul

On 10-12-16 02:41 PM, Paul Cullum wrote:

I've only just installed OFBiz for the first time so hopefully I'm not
asking question that have already been asked. I couldn't find any
related issues and nothing came out of my feeble attempt to search the
archive.

In my testing I added a product to a catalog, then on the product
content page I uploaded an image. When I opened the main page of the
ecommerce app which shows the catalog containing the product, the
image looked unrecognizable. When I clicked into product info page it
showed a recognizable image but the image background was black.

My questions are:

1. Are transparent GIFs supported? I uploaded a GIF with a transparent
background but when I load the images directly by their URLs it
appears that the resized images all have a black background so it
appears that transparency isn't handled well. It looks terrible if the
item happens to be black.

2. Is there an optimal image size or ratio for uploading? The image I
uploaded was a picture of a downhill ski that was much wider than it
was tall (2496x214). I also tried an image that was 1/4 in size
(599x51). The image that appears on the catalog page was still
unrecognizable. The image (apparently the "small" image) on this page
was 50x4 but it was stretched to 625x50 (due to the smallimage class
height of 50px). I suppose that this is something that can be
addressed through editing the CSS.

3. Is there a way to pick which image is used for each product (on a
per product basis) when displaying the catalog or the product info pages?

4. Is there a way to configure what the image dimensions should be for
the different image sizes? For example, if one decided that small
should be 75px instead of 50px in width.

4. Are PNG images supported? (And with transparency?)

Thanks in advance,
Paul







Re: Product image problems

2010-12-16 Thread Paul Cullum
Well... with a bit more experimenting I answered almost all of my own 
questions.


1. GIF resizing doesn't seem to deal properly with transparency.

2. Still not sure if there is an ideal size but given the answer for 
number 4 and whatever the answer for number 3 happens to be it may not 
really matter.


3. I'm still not sure how to pick the image size to be used for the 
products shown in the catalog.


4. Sized are defined here... I'm not sure how I missed 
this:{ofbiz.home}/applications/product/config/ImageProperties.xml


5. (or the second number 4) PNGs seem to work.  In fact they work better 
than GIFs since transparency is respected when resizing.


Having gone through the bunch I'll make a point of stating that if you 
could only answer one question it would be great if it were number 3:


   3. Is there a way to pick which image is used for each product (on a
   per product basis) when displaying the catalog or the product info
   pages?

Thanks,
Paul

On 10-12-16 02:41 PM, Paul Cullum wrote:
I've only just installed OFBiz for the first time so hopefully I'm not 
asking question that have already been asked.  I couldn't find any 
related issues and nothing came out of my feeble attempt to search the 
archive.


In my testing I added a product to a catalog, then on the product 
content page I uploaded an image.  When I opened the main page of the 
ecommerce app which shows the catalog containing the product, the 
image looked unrecognizable.  When I clicked into product info page it 
showed  a recognizable image but the image background was black.


My questions are:

1. Are transparent GIFs supported? I uploaded a GIF with a transparent 
background but when I load the images directly by their URLs it 
appears that the resized images all have a black background so it 
appears that transparency isn't handled well.  It looks terrible if 
the item happens to be black.


2.  Is there an optimal image size or ratio for uploading?  The image 
I uploaded was a picture of a downhill ski that was much wider than it 
was tall (2496x214).  I also tried an image that was 1/4 in size 
(599x51).  The image that appears on the catalog page was still 
unrecognizable.  The image (apparently the "small" image) on this page 
was 50x4 but it was stretched to 625x50  (due to the smallimage class 
height of 50px).  I suppose that this is something that can be 
addressed through editing the CSS.


3. Is there a way to pick which image is used for each product (on a 
per product basis) when displaying the catalog or the product info pages?


4. Is there a way to configure what the image dimensions should be for 
the different image sizes?  For example, if one decided that small 
should be 75px instead of 50px in width.


4. Are PNG images supported?  (And with transparency?)

Thanks in advance,
Paul






RE: Changing database names

2010-12-16 Thread James Lawton
Thanks!

Must have had a blind spot - even took two tries after you pointed it out to
clue in

time for a break :-)

Thanks
James

-Original Message-
From: Scott Gray [mailto:scott.g...@hotwaxmedia.com] 
Sent: December-16-10 6:41 PM
To: user@ofbiz.apache.org
Subject: Re: Changing database names

Hi James,

It is in the entityengine.xml file, see the datasource.inline-jdbc[jdbc-uri]
attribute.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 17/12/2010, at 12:27 PM, James Lawton wrote:

> I want to have multiple database schemas in MySQL which I alternate using.
> 
> 
> 
> The standard schema names seem to be ofbiz, ofbizolap, and ofbiztenant
> 
> 
> 
> I would like to rename the schemas to something else like ofbdemo,
> ofbdemoolap, ofbdemotenant
> 
> 
> 
> I have been through the entityengine.xml file - which is where I set up
the
> connections to mySQL - and I can't see where in the file it refers to the
> schema names.
> 
> 
> 
> If it's not in the entityengine.xml where would I reference the database
> schema names?
> 
> 
> 
> Thanks
> 
> Jams
> 





Edits missed in OFBIZ-3765

2010-12-16 Thread Anne
Hi

There are still some files that refer to the deprecated (as of
OFBIZ-3765)  invoiceSequenceEnumId, quoteSequenceEnumId and
orderSequenceEnumId fields of PartyAcctgPreference.

Files I know of are:

applications/accounting/servicedef/services_admin.xml
applications/accounting/widget/GlSetupForms.xml
applications/commonext/script/org/ofbiz/setup/SetupEvents.xml

Cheers,
Anne.

-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: sa...@cohsoft.com.au

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/


Re: Changing database names

2010-12-16 Thread Scott Gray
Hi James,

It is in the entityengine.xml file, see the datasource.inline-jdbc[jdbc-uri] 
attribute.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 17/12/2010, at 12:27 PM, James Lawton wrote:

> I want to have multiple database schemas in MySQL which I alternate using.
> 
> 
> 
> The standard schema names seem to be ofbiz, ofbizolap, and ofbiztenant
> 
> 
> 
> I would like to rename the schemas to something else like ofbdemo,
> ofbdemoolap, ofbdemotenant
> 
> 
> 
> I have been through the entityengine.xml file - which is where I set up the
> connections to mySQL - and I can't see where in the file it refers to the
> schema names.
> 
> 
> 
> If it's not in the entityengine.xml where would I reference the database
> schema names?
> 
> 
> 
> Thanks
> 
> Jams
> 



smime.p7s
Description: S/MIME cryptographic signature


Changing database names

2010-12-16 Thread James Lawton
I want to have multiple database schemas in MySQL which I alternate using.

 

The standard schema names seem to be ofbiz, ofbizolap, and ofbiztenant

 

I would like to rename the schemas to something else like ofbdemo,
ofbdemoolap, ofbdemotenant

 

I have been through the entityengine.xml file - which is where I set up the
connections to mySQL - and I can't see where in the file it refers to the
schema names.

 

If it's not in the entityengine.xml where would I reference the database
schema names?

 

Thanks

Jams



Product image problems

2010-12-16 Thread Paul Cullum
I've only just installed OFBiz for the first time so hopefully I'm not 
asking question that have already been asked.  I couldn't find any 
related issues and nothing came out of my feeble attempt to search the 
archive.


In my testing I added a product to a catalog, then on the product 
content page I uploaded an image.  When I opened the main page of the 
ecommerce app which shows the catalog containing the product, the image 
looked unrecognizable.  When I clicked into product info page it showed  
a recognizable image but the image background was black.


My questions are:

1. Are transparent GIFs supported? I uploaded a GIF with a transparent 
background but when I load the images directly by their URLs it appears 
that the resized images all have a black background so it appears that 
transparency isn't handled well.  It looks terrible if the item happens 
to be black.


2.  Is there an optimal image size or ratio for uploading?  The image I 
uploaded was a picture of a downhill ski that was much wider than it was 
tall (2496x214).  I also tried an image that was 1/4 in size (599x51).  
The image that appears on the catalog page was still unrecognizable.  
The image (apparently the "small" image) on this page was 50x4 but it 
was stretched to 625x50  (due to the smallimage class height of 50px).  
I suppose that this is something that can be addressed through editing 
the CSS.


3. Is there a way to pick which image is used for each product (on a per 
product basis) when displaying the catalog or the product info pages?


4. Is there a way to configure what the image dimensions should be for 
the different image sizes?  For example, if one decided that small 
should be 75px instead of 50px in width.


4. Are PNG images supported?  (And with transparency?)

Thanks in advance,
Paul




Re: Is brands supported in ofbiz ?

2010-12-16 Thread Shailen
Yes Hans, Raj has got it right. We have brand name. A user can enter 
anything in that free text field. Also if I select a particular 
manufacturer then I should not be able to select brand of another 
manufacturer. So I idea to introduce a new brand table and 
manufacturer-brand table get points.


Regards,
Shailen (khichi.shailen...@gmail.com)
+91-9216020360
Mohali, Chandigarh - 160062


On Thursday 16 December 2010 06:39 PM, Raj Saini wrote:

Hi Hans,

Brand name field is a free text and there is no relationship with 
manufacturer. If a product is manufacturer A it it must be associated 
with brand related to that manufacturer. Brand Name field does not 
enforce such constraints.


Thanks,

Raj

On Thursday 16 December 2010 06:32 PM, Hans Bakker wrote:

A manufacturer = supplier which produces products, on the product you
can define suppliers. A product has a brandname field.

so what is missing?

Regards,
Hans





Re: OFBiz security issues.

2010-12-16 Thread Frein Mccain
Thanks Anil !!!

On Thu, Dec 16, 2010 at 12:29 PM, Anil Soni wrote:

> Frein,
>
> Refer this link
> http://www.bonsai-sec.com/en/research/vulnerabilities/apacheofbiz-multiple-xss-0103.phpfor
>  cross site scripting solution.
>
>
>
> -Original Message-
> From: Frein Mccain [mailto:frein.mcc...@gmail.com]
> Sent: Monday, December 13, 2010 7:14 PM
> To: user@ofbiz.apache.org
> Subject: Re: OFBiz security issues.
>
> My system is up and running with old code base of OFBiz and I am facing
> Cross-Site-Scripting security issue. I've referred the issue
> https://issues.apache.org/jira/browse/OFBIZ-1525 but not able to get the
> fix
> for the issue.
>
> Can anybody tell is this issue fixed in latest code, if yes than can you
> share some patch or commit version so that I can make changes in my code to
> fix fit.
>
> @ David : I've checked the browser cookie and found that the session id
> cookie has a future expiration date and there is no secure attribute.
>
> And I am using embedded Tomcat server only. Do you have any idea about
> cookie setting ?
>
>
>
> On Thu, Dec 9, 2010 at 9:39 PM, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
> >  Hi Frein,
> >
> > Please use rather the user ML for such questions. There have been a large
> > effort regarding security issues, refer to
> > https://issues.apache.org/jira/browse/OFBIZ-1525
> >
> > Jacques
> >
> > - Original Message -
> > *From:* Frein Mccain 
> > *To:* Jacques Le Roux 
> > *Sent:* Thursday, December 09, 2010 2:54 PM
> > *Subject:* Re: OFBiz security issues.
> >
> > Jacques,
> >
> > I've seen this post https://issues.apache.org/jira/browse/OFBIZ-260, I
> am
> > facing the same issue because I am using old code base.
> > In this post you've post the commented that "this issue has been Fixed by
> > recent security efforts", what does it mean ?
> >
> > I tried to search for patch for the fix so that I can make changes in my
> > code...can you please help on this?
> >
> > On Thu, Dec 9, 2010 at 3:14 PM, Jacques Le Roux <
> > jacques.le.r...@les7arts.com> wrote:
> >
> >> Frein,
> >>
> >> Did you check David's suggestion?
> >>
> >>
> >> Jacques
> >>
> >> From: "Frein Mccain" 
> >> Jacques,
> >>
> >> I am using 9.04 release.
> >>
> >> On Mon, Dec 6, 2010 at 11:45 PM, Jacques Le Roux <
> >> jacques.le.r...@les7arts.com> wrote:
> >>
> >> Which release.revision have you used?
> >>>
> >>> Jacques
> >>>
> >>> From: "Frein Mccain" 
> >>>
> >>> I've developed an application on OFBiz and found some security issues
> >>> during
> >>> testing. Here are the list :
> >>>
> >>> *A. Information Leakage through persistent cookies : The web
> application
> >>> stores sensitive session information in a permanent cookie (on disk)*
> >>> **
> >>> *Impact of this issue :*
> >>> **
> >>> * This information may be compromised or used for identity theft or
> user
> >>> impersonation.
> >>> * The account information may be stolen and used later by a malicious
> >>> user.
> >>>
> >>> I've checked the Set-Cookie header, and found that the session id
> cookie
> >>> has
> >>> a future expiration date.
> >>> So, my question is that why OFBiz stores sensitive information in
> >>> persistent
> >>> cookies instead of non-permanent cookie(RAM cookies) only and how to
> fix
> >>> it.
> >>> **
> >>> *B* *Sensitive Cookie in HTTPS Session Without 'Secure' Attribute : The
> >>> Secure attribute for sensitive cookies in HTTPS sessions is not set*
> >>> **
> >>> *Impact:*
> >>> **
> >>> *  It is possible to move the ability to enforce the cookie logic to
> the
> >>> client-side (the browser). This could allow an attacker to send cookies
> >>> he/she is
> >>>  not authorized to send.
> >>>
> >>> I've checked the the Set-Cookie header, and found that the "secure"
> >>> attribute is missing.
> >>>
> >>> Is there any property file where I can set that "secure" attribute for
> >>> the
> >>> cookie.
> >>>
> >>>
> >>> Cheers,
> >>> Frein
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
>
> __
>
> The contents of this e-mail and any attachment(s) may contain confidential
> or privileged information for the intended recipient(s). Unintended
> recipients are prohibited from taking action on the basis of information in
> this e-mail and  using or disseminating the information,  and must notify
> the sender and delete it from their system. L&T Infotech will not accept
> responsibility or liability for the accuracy or completeness of, or the
> presence of any virus or disabling code in this e-mail"
>
> __
>


Securing third party servlets and resources with ofbiz security.

2010-12-16 Thread Lukasz Kucharski
Hello there,

my company needs to integrate Isomorphic Smartclient into backoffice
module but my issue arises also for other technologies using dedicated
servlets to provide json data for JS (eg. GWT).

Use case is:

-browser requests 3rd party servlet configured in web.xml (say catalog module)
-ofbiz checks to see if user is logged in. If yes lets request
through. If not - redirects to login page.
-user logs in


1. What is best way to secure separate servlet with ofbiz security
mechanism? Any GET/POST request for this servlet should be checked
similar way request to ControlServlet is being checked.

2. What is best way to secure third party resources (js/images/static
html files)? Those files, I guess, should be checked by specifically
implemented filter and then if user is logged in  'default' Tomcat
servlet should be allowed to feed them to the browser. Now
ContextFilter filter prevents resources from being served so this
should also be reconfigured.

I expect I have to write filter for this and do sth similar to
checkLogin method in LoginWorker does but is it the right way?

Thanks for clues

Best
Lukasz


Re: Is brands supported in ofbiz ?

2010-12-16 Thread BJ Freeman
you have product.manufacturerPartyId which is many from relationship 
from party,


=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Shailen sent the following on 12/15/2010 11:43 PM:

Hi,

I have a requirement where I need to create manufacturers which I can
insert as parties. Manufacturers can have zero or more brands. Each
brand can have zero or more products.

- Is brands supported in ofbiz ? I have checked the data model but not
able to find.
- If not what would be the best way to achieve this ?

IMO I should extend ofbiz data model and create a new brand table and
manufacturer-brand table.
Brand table would have all the brands and manufacturer-brand table would
have the manufacturer brand association.
Also extend the product table and include brandId as a drop-down.
Product has OEM Party ID(which I think is nothing but manufacturer) and
based on the OEM Party Id the brandId can be populated.

Any design pointers are much welcomed.





Re: Widgets and screens

2010-12-16 Thread BJ Freeman

take the normal layout as it is now and change the CSS.
you can make components invisible even though they are still there.
so you can have all the components load and put the location off screen.
then when they select them bring them in view and make them visible.




=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
David van der Staak sent the following on 12/16/2010 5:09 AM:


The cache settings were indeed wrong, it does load em properly now.

I'm already working on a CSS Editor, however the larger problem is not so much 
how it looks, but what it shows on a page. An example would be the right bar. 
Perhaps that customer A wants to show their phone number, while customer B 
wants a related products colom there. My idea was to let them be able to edit 
the shop in that way, which would be more then CSS can achiev.

My idea thus far would be to create a seperate component per customer, and 
configure apache to figure out which site goes to which component.

The end idea of the project is to give customers a ready shop they can use, but 
also that they can edit all the way. They don't like the way it was positioned? 
Just click edit, drag'ndrop it, save, and it's the way they wanted it to be. If 
they want to create for example, a new widget somewhere, then they can click 
new, widget, insert whatever data would be needed and it'd be there, on the 
page they clicked new on. This would give customers a much greater freedom then 
the average webshop would give them.

Regards


Van: BJ Freeman [bjf...@free-man.net]
Verzonden: donderdag 16 december 2010 5:00
Aan: user@ofbiz.apache.org
Onderwerp: Re: Widgets and screens

look at the rendering code use by ofbiz to get an html output for the
WYSIWYG.

=
BJ Freeman
Strategic Power Office with Supplier 
Automation
Specialtymarket.com
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/15/2010 7:54 PM:

though widgets and ftl give you the components to display, the CSS is
the final determination of the display.
you can have (skins) themes that they select from, that are copied to a
specfic themename for that user, then assigned to them. you could use
webtools code to import the data, into their db. this ofcourse is a
customization.

Going into widgets and ftl's as a WYSIWYG is a Great development tool
but I would not expect users to be able to create and or modify those,
especially if your using multi-tenent shared code.
Getting into the Entities is not something I would allow a user to do.

you could consider putting a class on each field which could be effected
by the CSS. the WYSIWYG would then modify the CSS files in the selected
theme as far as a component/field showing, and placement, as well as
font and type.





=
BJ Freeman
Strategic Power Office with Supplier Automation

Specialtymarket.com
Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man
David van der Staak sent the following on 12/15/2010 3:55 AM:


Hello,

I'm trying to create a functionality which would allow a store owner
to dynamically edit their website via a WYSIWYG like editor.
The editor itself is nearly complete, but I'm unsure how to save the
changes.

The thing I thought of first, is try to interpret the files myself,
present them in a way the user can edit them graphically, then store
the files again. However, to make the changes effective a run-install
seems to be needed or at the very least a restart, which is less then
desirable.
I know the installation of those files is done at some point, and I
was hoping to be able to trigger that again or perhaps call it only on
the files that have been edited.

Could someone perhaps give me a few pointers on where to look?
Specifically, i'm editing the .ftl and .xml files which are related to
the looks and feel of the ecommerce store.

If it's possible to let ofbiz give me an interpretation of the files
that'd even be better. I'll have to adjust my editor ofcourse, but
that's manageable.

Regards

David van der Staak






__ NOD32 5706 (20101215) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




Re: Is brands supported in ofbiz ?

2010-12-16 Thread Abhishake Agarwal
Hi,

You can give a type to category as brand category and restrict the
association with only one manufacturer.

Regards,
Abhsihake

On Thu, Dec 16, 2010 at 6:13 PM, Shailen wrote:

> Thanks Abhishake for your inputs. but IMO brand and categories are two
> different things as a brand can only be associated with only one
> manufacturer while a category can be associated with multiple manufacturers.
> So how can I restrict this association of multiple manufacturers?
>
> Regards,
>
> Shailen (khichi.shailen...@gmail.com)
> +91-9216020360
> Mohali, Chandigarh - 160062
>
>
> On Thursday 16 December 2010 05:26 PM, Abhishake Agarwal wrote:
>
>> Hi,
>>
>> you can create a party with role manufacturer. Then you can add party in
>> category which can act as a brand.
>>
>> Regards,
>> Abhishake
>>
>> On Thu, Dec 16, 2010 at 1:13 PM, Shailen> >wrote:
>>
>>  Hi,
>>>
>>> I have a requirement where I need to create manufacturers which I can
>>> insert as parties. Manufacturers can have zero or more brands. Each brand
>>> can have zero or more products.
>>>
>>>  - Is brands supported in ofbiz ?  I have checked the data model but not
>>> able to find.
>>>  - If not what would be the best way to achieve this ?
>>>
>>> IMO I should extend ofbiz data model and create a new brand table and
>>> manufacturer-brand table.
>>> Brand table would have all the brands and manufacturer-brand table would
>>> have the manufacturer brand association.
>>> Also extend the product table and include brandId as a drop-down. Product
>>> has OEM Party ID(which I think is nothing but manufacturer) and based on
>>> the
>>> OEM Party Id the brandId can be populated.
>>>
>>> Any design pointers are much welcomed.
>>>
>>> --
>>>
>>> Thanks,
>>> Shailen (khichi.shailen...@gmail.com)
>>> +91-9216020360
>>> Mohali, Chandigarh - 160062
>>>
>>>
>>>


Re: Widgets and screens

2010-12-16 Thread Adrian Crum

Take a look at the portlets feature.

-Adrian

On 12/16/2010 5:09 AM, David van der Staak wrote:

The cache settings were indeed wrong, it does load em properly now.

I'm already working on a CSS Editor, however the larger problem is not so much 
how it looks, but what it shows on a page. An example would be the right bar. 
Perhaps that customer A wants to show their phone number, while customer B 
wants a related products colom there. My idea was to let them be able to edit 
the shop in that way, which would be more then CSS can achiev.

My idea thus far would be to create a seperate component per customer, and 
configure apache to figure out which site goes to which component.

The end idea of the project is to give customers a ready shop they can use, but 
also that they can edit all the way. They don't like the way it was positioned? 
Just click edit, drag'ndrop it, save, and it's the way they wanted it to be. If 
they want to create for example, a new widget somewhere, then they can click 
new, widget, insert whatever data would be needed and it'd be there, on the 
page they clicked new on. This would give customers a much greater freedom then 
the average webshop would give them.

Regards


Van: BJ Freeman [bjf...@free-man.net]
Verzonden: donderdag 16 december 2010 5:00
Aan: user@ofbiz.apache.org
Onderwerp: Re: Widgets and screens

look at the rendering code use by ofbiz to get an html output for the
WYSIWYG.

=
BJ Freeman
Strategic Power Office with Supplier 
Automation
Specialtymarket.com
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/15/2010 7:54 PM:

though widgets and ftl give you the components to display, the CSS is
the final determination of the display.
you can have (skins) themes that they select from, that are copied to a
specfic themename for that user, then assigned to them. you could use
webtools code to import the data, into their db. this ofcourse is a
customization.

Going into widgets and ftl's as a WYSIWYG is a Great development tool
but I would not expect users to be able to create and or modify those,
especially if your using multi-tenent shared code.
Getting into the Entities is not something I would allow a user to do.

you could consider putting a class on each field which could be effected
by the CSS. the WYSIWYG would then modify the CSS files in the selected
theme as far as a component/field showing, and placement, as well as
font and type.





=
BJ Freeman
Strategic Power Office with Supplier Automation

Specialtymarket.com
Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man
David van der Staak sent the following on 12/15/2010 3:55 AM:


Hello,

I'm trying to create a functionality which would allow a store owner
to dynamically edit their website via a WYSIWYG like editor.
The editor itself is nearly complete, but I'm unsure how to save the
changes.

The thing I thought of first, is try to interpret the files myself,
present them in a way the user can edit them graphically, then store
the files again. However, to make the changes effective a run-install
seems to be needed or at the very least a restart, which is less then
desirable.
I know the installation of those files is done at some point, and I
was hoping to be able to trigger that again or perhaps call it only on
the files that have been edited.

Could someone perhaps give me a few pointers on where to look?
Specifically, i'm editing the .ftl and .xml files which are related to
the looks and feel of the ecommerce store.

If it's possible to let ofbiz give me an interpretation of the files
that'd even be better. I'll have to adjust my editor ofcourse, but
that's manageable.

Regards

David van der Staak






__ NOD32 5706 (20101215) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




Re: Associated products bug

2010-12-16 Thread Jacques Le Roux

Thanks for your report Jonatan,

I have fixed following your suggestion but a different syntax, only in trunk at 
r1049967 (comes from jQuery merge)

Jacques

From: "Jonatan Soto" 

Hi,

There is an error regarding to associated products for a product.
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductAssoc?productId=dropShip1

This is how I solved:

EditProductAssoc.ftl (line 144)

<#if useValues> <#assign value>${productAssoc.thruDate?if_exists} 
<#else> <#assign value>${(request.getParameter("THRU_DATE"))?if_exists}

<@htmlTemplate.renderDateTimeField name="THRU_DATE" event="" action=""
value="${value}" className="" alert="" title="Format: -MM-dd
HH:mm:ss.SSS" size="25" maxlength="30" id="thruDate1" dateType="date"
shortDateInput=false timeDropdownParamName="" defaultDateTimeString=""
localizedIconTitle="" timeDropdown="" timeHourName="" classString=""
hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName=""
amSelected="" pmSelected="" compositeType="" formName=""/>

HTH

--
-

Jonatan Soto





RE: Widgets and screens

2010-12-16 Thread David van der Staak
The cache settings were indeed wrong, it does load em properly now. 

I'm already working on a CSS Editor, however the larger problem is not so much 
how it looks, but what it shows on a page. An example would be the right bar. 
Perhaps that customer A wants to show their phone number, while customer B 
wants a related products colom there. My idea was to let them be able to edit 
the shop in that way, which would be more then CSS can achiev. 

My idea thus far would be to create a seperate component per customer, and 
configure apache to figure out which site goes to which component. 

The end idea of the project is to give customers a ready shop they can use, but 
also that they can edit all the way. They don't like the way it was positioned? 
Just click edit, drag'ndrop it, save, and it's the way they wanted it to be. If 
they want to create for example, a new widget somewhere, then they can click 
new, widget, insert whatever data would be needed and it'd be there, on the 
page they clicked new on. This would give customers a much greater freedom then 
the average webshop would give them. 

Regards


Van: BJ Freeman [bjf...@free-man.net]
Verzonden: donderdag 16 december 2010 5:00
Aan: user@ofbiz.apache.org
Onderwerp: Re: Widgets and screens

look at the rendering code use by ofbiz to get an html output for the
WYSIWYG.

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/15/2010 7:54 PM:
> though widgets and ftl give you the components to display, the CSS is
> the final determination of the display.
> you can have (skins) themes that they select from, that are copied to a
> specfic themename for that user, then assigned to them. you could use
> webtools code to import the data, into their db. this ofcourse is a
> customization.
>
> Going into widgets and ftl's as a WYSIWYG is a Great development tool
> but I would not expect users to be able to create and or modify those,
> especially if your using multi-tenent shared code.
> Getting into the Entities is not something I would allow a user to do.
>
> you could consider putting a class on each field which could be effected
> by the CSS. the WYSIWYG would then modify the CSS files in the selected
> theme as far as a component/field showing, and placement, as well as
> font and type.
>
>
>
>
>
> =
> BJ Freeman
> Strategic Power Office with Supplier Automation
> 
> Specialtymarket.com 
> Systems Integrator-- Glad to Assist
>
> Chat Y! messenger: bjfr33man
> David van der Staak sent the following on 12/15/2010 3:55 AM:
>
>> Hello,
>>
>> I'm trying to create a functionality which would allow a store owner
>> to dynamically edit their website via a WYSIWYG like editor.
>> The editor itself is nearly complete, but I'm unsure how to save the
>> changes.
>>
>> The thing I thought of first, is try to interpret the files myself,
>> present them in a way the user can edit them graphically, then store
>> the files again. However, to make the changes effective a run-install
>> seems to be needed or at the very least a restart, which is less then
>> desirable.
>> I know the installation of those files is done at some point, and I
>> was hoping to be able to trigger that again or perhaps call it only on
>> the files that have been edited.
>>
>> Could someone perhaps give me a few pointers on where to look?
>> Specifically, i'm editing the .ftl and .xml files which are related to
>> the looks and feel of the ecommerce store.
>>
>> If it's possible to let ofbiz give me an interpretation of the files
>> that'd even be better. I'll have to adjust my editor ofcourse, but
>> that's manageable.
>>
>> Regards
>>
>> David van der Staak
>>
>


__ NOD32 5706 (20101215) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl



Re: Is brands supported in ofbiz ?

2010-12-16 Thread Raj Saini

Hi Hans,

Brand name field is a free text and there is no relationship with 
manufacturer. If a product is manufacturer A it it must be associated 
with brand related to that manufacturer. Brand Name field does not 
enforce such constraints.


Thanks,

Raj

On Thursday 16 December 2010 06:32 PM, Hans Bakker wrote:

A manufacturer = supplier which produces products, on the product you
can define suppliers. A product has a brandname field.

so what is missing?

Regards,
Hans

   




Re: Is brands supported in ofbiz ?

2010-12-16 Thread Hans Bakker
A manufacturer = supplier which produces products, on the product you
can define suppliers. A product has a brandname field.

so what is missing?

Regards,
Hans

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.

On Thu, 2010-12-16 at 18:13 +0530, Shailen wrote:
> Thanks Abhishake for your inputs. but IMO brand and categories are two 
> different things as a brand can only be associated with only one 
> manufacturer while a category can be associated with multiple manufacturers.
> So how can I restrict this association of multiple manufacturers?
> 
> Regards,
> Shailen (khichi.shailen...@gmail.com)
> +91-9216020360
> Mohali, Chandigarh - 160062
> 
> 
> On Thursday 16 December 2010 05:26 PM, Abhishake Agarwal wrote:
> > Hi,
> >
> > you can create a party with role manufacturer. Then you can add party in
> > category which can act as a brand.
> >
> > Regards,
> > Abhishake
> >
> > On Thu, Dec 16, 2010 at 1:13 PM, Shailenwrote:
> >
> >> Hi,
> >>
> >> I have a requirement where I need to create manufacturers which I can
> >> insert as parties. Manufacturers can have zero or more brands. Each brand
> >> can have zero or more products.
> >>
> >>   - Is brands supported in ofbiz ?  I have checked the data model but not
> >> able to find.
> >>   - If not what would be the best way to achieve this ?
> >>
> >> IMO I should extend ofbiz data model and create a new brand table and
> >> manufacturer-brand table.
> >> Brand table would have all the brands and manufacturer-brand table would
> >> have the manufacturer brand association.
> >> Also extend the product table and include brandId as a drop-down. Product
> >> has OEM Party ID(which I think is nothing but manufacturer) and based on 
> >> the
> >> OEM Party Id the brandId can be populated.
> >>
> >> Any design pointers are much welcomed.
> >>
> >> --
> >>
> >> Thanks,
> >> Shailen (khichi.shailen...@gmail.com)
> >> +91-9216020360
> >> Mohali, Chandigarh - 160062
> >>
> >>




Re: Is brands supported in ofbiz ?

2010-12-16 Thread Shailen
Thanks Abhishake for your inputs. but IMO brand and categories are two 
different things as a brand can only be associated with only one 
manufacturer while a category can be associated with multiple manufacturers.

So how can I restrict this association of multiple manufacturers?

Regards,
Shailen (khichi.shailen...@gmail.com)
+91-9216020360
Mohali, Chandigarh - 160062


On Thursday 16 December 2010 05:26 PM, Abhishake Agarwal wrote:

Hi,

you can create a party with role manufacturer. Then you can add party in
category which can act as a brand.

Regards,
Abhishake

On Thu, Dec 16, 2010 at 1:13 PM, Shailenwrote:


Hi,

I have a requirement where I need to create manufacturers which I can
insert as parties. Manufacturers can have zero or more brands. Each brand
can have zero or more products.

  - Is brands supported in ofbiz ?  I have checked the data model but not
able to find.
  - If not what would be the best way to achieve this ?

IMO I should extend ofbiz data model and create a new brand table and
manufacturer-brand table.
Brand table would have all the brands and manufacturer-brand table would
have the manufacturer brand association.
Also extend the product table and include brandId as a drop-down. Product
has OEM Party ID(which I think is nothing but manufacturer) and based on the
OEM Party Id the brandId can be populated.

Any design pointers are much welcomed.

--

Thanks,
Shailen (khichi.shailen...@gmail.com)
+91-9216020360
Mohali, Chandigarh - 160062




Re: Is brands supported in ofbiz ?

2010-12-16 Thread Abhishake Agarwal
Hi,

you can create a party with role manufacturer. Then you can add party in
category which can act as a brand.

Regards,
Abhishake

On Thu, Dec 16, 2010 at 1:13 PM, Shailen wrote:

> Hi,
>
> I have a requirement where I need to create manufacturers which I can
> insert as parties. Manufacturers can have zero or more brands. Each brand
> can have zero or more products.
>
>  - Is brands supported in ofbiz ?  I have checked the data model but not
> able to find.
>  - If not what would be the best way to achieve this ?
>
> IMO I should extend ofbiz data model and create a new brand table and
> manufacturer-brand table.
> Brand table would have all the brands and manufacturer-brand table would
> have the manufacturer brand association.
> Also extend the product table and include brandId as a drop-down. Product
> has OEM Party ID(which I think is nothing but manufacturer) and based on the
> OEM Party Id the brandId can be populated.
>
> Any design pointers are much welcomed.
>
> --
>
> Thanks,
> Shailen (khichi.shailen...@gmail.com)
> +91-9216020360
> Mohali, Chandigarh - 160062
>
>


Associated products bug

2010-12-16 Thread Jonatan Soto
Hi,

There is an error regarding to associated products for a product.
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductAssoc?productId=dropShip1

This is how I solved:

EditProductAssoc.ftl (line 144)

<#if useValues> <#assign value>${productAssoc.thruDate?if_exists} 
<#else> <#assign value>${(request.getParameter("THRU_DATE"))?if_exists}

<@htmlTemplate.renderDateTimeField name="THRU_DATE" event="" action=""
value="${value}" className="" alert="" title="Format: -MM-dd
HH:mm:ss.SSS" size="25" maxlength="30" id="thruDate1" dateType="date"
shortDateInput=false timeDropdownParamName="" defaultDateTimeString=""
localizedIconTitle="" timeDropdown="" timeHourName="" classString=""
hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName=""
amSelected="" pmSelected="" compositeType="" formName=""/>

HTH

-- 
-

Jonatan Soto


RE: OFBiz WebDAV Setting.

2010-12-16 Thread Anil Soni
How to disable HTTP methods PUT and DELETE in OFBiz ?

-Original Message-
From: Anil Soni [mailto:anil.s...@lntinfotech.com]
Sent: Wednesday, December 15, 2010 11:52 AM
To: user@ofbiz.apache.org
Subject: OFBiz WebDAV Setting.

Anybody aware about WebDAV setting in OFBiz ? I want to disable WebDAV from 
OFBiz side, I checked that its disabled from Apache HTTP server but don't know 
how to disable it from OFBiz.

Any Idea?

Regards,
Anil Soni
Cell : +91-9930302283



The contents of this e-mail and any attachment(s) may contain confidential or 
privileged information for the intended recipient(s). Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail and 
using or disseminating the information, and must notify the sender and delete 
it from their system. L&T Infotech will not accept responsibility or liability 
for the accuracy or completeness of, or the presence of any virus or disabling 
code in this e-mail"

__

__

The contents of this e-mail and any attachment(s) may contain confidential or 
privileged information for the intended recipient(s). Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail and  
using or disseminating the information,  and must notify the sender and delete 
it from their system. L&T Infotech will not accept responsibility or liability 
for the accuracy or completeness of, or the presence of any virus or disabling 
code in this e-mail"

__