Users - product entity - images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - product entity - images

cjhowe
I have just completed a woozy of a product import from
a very poorly designed vendor's product listing.
Noticing some of their shortcomings, I took a look at
some of the product entity and wondered if it didn't
take a shortcut as well with the product images.
Shouldn't the images assigned to the product be
controlled by the content entity instead of product
entity?  Obviously it makes sense for the way that the
ecommerce app is displayed, but I could see where this
would be limiting for another GUI as well as a
headache for someone trying share a product catalog.
Any thoughts on the "correctness" of this as well as
the dificulty in moving it to the content entity?

,Chris Howe
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - product entity - images

David E. Jones

The ecommerce templates do look at Content information through the  
ProductContent entity. Unless you are looking at a fairly old version  
of OFBiz that is used automatically whenever an "overriding" field on  
the Product entity itself is empty, for cases where there is a field  
on the Product entity that corresponds to the given  
ProductContentType of course.

This pattern allows more efficient information retrieval by looking  
directly at the Product entity fields, and if they are entity then it  
looks for the applicable Content information (which obviously  
requires additional queries and so runs slower, though these are  
typically cached so it isn't too much slower).

-David


On Feb 9, 2006, at 7:04 PM, Chris Howe wrote:

> I have just completed a woozy of a product import from
> a very poorly designed vendor's product listing.
> Noticing some of their shortcomings, I took a look at
> some of the product entity and wondered if it didn't
> take a shortcut as well with the product images.
> Shouldn't the images assigned to the product be
> controlled by the content entity instead of product
> entity?  Obviously it makes sense for the way that the
> ecommerce app is displayed, but I could see where this
> would be limiting for another GUI as well as a
> headache for someone trying share a product catalog.
> Any thoughts on the "correctness" of this as well as
> the dificulty in moving it to the content entity?
>
> ,Chris Howe
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

smime.p7s (3K) Download Attachment